tags:

views:

28

answers:

1

When creating a style or trigger e.g. for a TextBlock in XAML you can easily do:

        <Setter Property="Width" Value="64" />

How to do the same with 'DockPanel.Dock', which is an attached property?

+3  A: 

I guess

<Setter Property="DockPanel.Dock" TargetName="ControlName" Value="Right"/> 
Faisal