Dependency Property vs Attached Property - WPF
Posted on 2011-03-10
I have the following statement:
Attached properties differ from normal dependency properties in that they are not wrapped in CLR properties (i.e. standard .NET properties).
Dependency Properties Example:
<Rectangle Height="72" Width="131" Canvas.Left="74" Canvas.Top="77" />
Attached Properties Example:
<Button x:Name="Button1" DockPanel.Dock="Left" />
Can you please let me know what is the difference between these two ? It looks like both are same but i am missing something !