What do you mean by dependency properties in WPF?

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

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