我已经创建了一个静态资源来定义我的xaml中特定项的边框,但我找不到为每个边定义唯一颜色的好方法!
XAML:
<Border Style="{StaticResource SidePanelBorder}">
<!-- rest of the xaml -->
</Border>
Run Code Online (Sandbox Code Playgroud)
静态资源:
<Style x:Key="SidePanelBorder">
<Setter Property="Control.BorderBrush" Value="#FF363636" />
<Setter Property="Control.BorderThickness" Value="1" />
</Style>
Run Code Online (Sandbox Code Playgroud)
但是我想为边框的每一边定义一种颜色,最后还要有不同的边框厚度.
有没有什么好的技术呢?