Bruie
Bruie

Reputation: 1235

Silverlight Dockpanel Border Style

Does anyone know how to add a border to a Dockpanel. i have this:

<Style x:Key="DockPanelStyle" TargetType="controlsToolkit:DockPanel">        
    <Setter Property="Border">
        <Setter.Value>
            <Border BorderBrush="Gray" BorderThickness="1"/>
        </Setter.Value>
    </Setter>
    <Setter Property="HorizontalAlignment" Value="Stretch" />
    <Setter Property="VerticalAlignment" Value="Stretch" />
</Style>

However it sends an error that Property border is not correct

thank you

Upvotes: 0

Views: 658

Answers (1)

Rafal Spacjer
Rafal Spacjer

Reputation: 4918

You can do something like this:

<Border BorderBrush="Black" BorderThickness="4" Width="200" Height="150">
  <controlsToolkit:DockPanel ... />
</Border>

Upvotes: 1

Related Questions