开发者

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"/> 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜