47 lines
2.5 KiB
XML
47 lines
2.5 KiB
XML
<Application
|
|
x:Class="_20230724_MBJC_upperpc.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:_20230724_MBJC_upperpc"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
StartupUri="MainWindow.xaml">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<!--<materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime"/>-->
|
|
<!-- 使用资源字典提供的内置主题,和下面这个二选一 -->
|
|
<materialDesign:CustomColorTheme
|
|
BaseTheme="Light"
|
|
PrimaryColor="LightSkyBlue"
|
|
SecondaryColor="DarkGreen" />
|
|
<!-- 为主题使用自定义的颜色,可以使用资源字典执行此操作,和上面这个二选一 -->
|
|
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- =============== 按钮样式 =============== -->
|
|
<Style TargetType="Button" x:Key="ControlButtonStyle">
|
|
<Setter Property="Width" Value="40"/>
|
|
<Setter Property="Background" Value="#11FFFFFF"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="FontFamily" Value="Assets/Fonts/#iconfont"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Grid Background="{TemplateBinding Background}">
|
|
<Border Name="root">
|
|
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="root" Property="Background" Value="#33FFFFFF"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|