54 lines
2.6 KiB
XML
54 lines
2.6 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<Style x:Key="BaseWindowStyle" TargetType="Window">
|
|
<Setter Property="Background" Value="#FF98638f"/>
|
|
<Setter Property="Foreground" Value="#FF666666"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<!-- 其他样式设置 -->
|
|
|
|
</Style>
|
|
<Style x:Key="BaseNoneBorderWindowStyle" TargetType="Window">
|
|
<Setter Property="Background" Value="#FF98638f"/>
|
|
<Setter Property="BorderBrush" Value="#6b5393"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="Foreground" Value="#FF666666"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="WindowStyle" Value="None"/>
|
|
<Setter Property="AllowsTransparency" Value="True"/>
|
|
</Style>
|
|
<!--使用自定义属性模板去除Button高亮显示框-->
|
|
<!--<Style TargetType="Button">
|
|
<Setter Property="Cursor" Value="Hand"></Setter>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
<!--<Style TargetType="Button">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Padding="{TemplateBinding Padding}">
|
|
<Grid Background="Transparent">
|
|
<ContentPresenter Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
</ContentPresenter>
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>-->
|
|
</ResourceDictionary> |