What is Dependency Properties and its Use in WPF?

 Posted by Shantanupatel on 3/6/2012 | Category: WPF Interview questions | Views: 2245 | Points: 40

* Dependency properties are used to enable styling, automatic data binding, templates, animation etc.
* All types that want to use DependencyProperties must derive from 'DependencyObject' class.
* The value of a DependencyProperty is resolved dynamically when read.
* The value of a dependency property is stored in a dictionary of keys and values provided by 'DependencyObject' class.
* Advantages:
1) Reduced memory footprint
2) Value Inheritance
3) Change Notification

Source: Interview | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response