【发布时间】:2017-04-10 18:22:44
【问题描述】:
有一个边框,我想同时改变它的边框颜色和背景颜色。 所以,我在下面定义了一个样式
<Style x:Key="EoE" TargetType="{x:Type Border}">
<Setter Property="BorderBrush" Value="{StaticResource LightGreen}"/>
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="{Binding Path=BorderBrush }" Opacity="1"/>
</Setter.Value>
</Setter>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect ShadowDepth="0" Color="White" Opacity="0.5" BlurRadius="10"/>
<!--<BlurEffect Radius="3" RenderingBias="Quality"/>-->
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" Value="2"></Setter>
我想在运行时改变的是borderbrush,然后我想同时改变背景solidcolorbrush。
【问题讨论】: