开发者

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


You can do something like this:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜