How to set DockPanel.Dock value in a Setter?
When creating a style or trigger e.g. for a TextBlock in XAML you can easily do:
<Sette开发者_如何学Cr Property="Width" Value="64" />
How to do the same with 'DockPanel.Dock'
, which is an attached property?
I guess
<Setter Property="DockPanel.Dock" TargetName="ControlName" Value="Right"/>
精彩评论