开发者

How to set DockPanel.Dock value in a Setter?

开发者 https://www.devze.com 2023-01-14 21:55 出处:网络
When creating a style or trigger e.g. for a TextBlock in XAML you can easily do: <Sette开发者_如何学Cr Property=\"Width\" Value=\"64\" />

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

精彩评论

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