优化UI, 提取公共样式

This commit is contained in:
BookerLiu
2023-04-21 22:33:05 +08:00
parent 2e1cc7ee3c
commit ece8787b8e
11 changed files with 47 additions and 32 deletions

View File

@@ -120,4 +120,20 @@
</Style>
<!--text box style-->
<Style x:Key="MyTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource TextBoxBaseStyle}">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.7"/>
</Setter.Value>
</Setter>
<Setter Property="BorderThickness" Value="0" />
<Style.Triggers>
<Trigger Property="IsFocused" Value="True">
<Setter Property="BorderThickness" Value="0" />
</Trigger>
</Style.Triggers>
</Style>
</ResourceDictionary>