Tuesday, March 1, 2011

Properties in WPF

There are 3 types of property in wpf:
1. Normal Legacy CLR property
2. Dependency property
3. Attached Property

Attached property is defined on 1 control and used by other control...Column in Grid is attached property, say used by button but is the property of grid.So you can say :
<Button Name="btn" Grid.Column=2...
So though the property is in grid,but is used by button.

Dependency property that can be made dependent on some other property of some othe control.

Click on links to see in detail.

No comments:

Post a Comment