我在“Application.Resources”中创建了一个linearGradientBrush,并尝试使用其中一个样式设置器来调用它。编译器说无法解析名称。看不懂为什么....
<Style x:Key="GridTextBoxStyle" TargetType="TextBox">
<Setter Property="Background" Value="{StaticResource TextBlinearBrush}"/>
</Style>
<LinearGradientBrush x:Key="TextBlinearBrush" EndPoint="1,0.5" StartPoint="0,0.5">
<GradientStop Color="Black" Offset="0" />
<GradientStop Color="Gray" Offset="1" />
<GradientStop Color="DarkGray" Offset="0.541" />
</LinearGradientBrush>