What do you mean by dependency properties in WPF?

 Posted by Sumank on 5/16/2013 | Category: WPF Interview questions | Views: 3562 | Points: 40
Answer:

Dependency properties are properties of one class and used by another class.

Let’s understand by an example:

<Ellipse Height=”70” Width=”70” Canvas.Right=”20” Canvas.Top=”30” />
Here ‘Canvas.Right’ and ‘Canvas.Top’ are dependency properties as it used by Ellipse to specify position within Canvas though it’s not properties of Ellipse.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response