20230724_MBJC_upperpc/App.xaml

47 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

2023-11-15 05:34:33 +00:00
<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"
2023-12-18 09:31:28 +00:00
StartupUri="MainWindow.xaml">
2023-10-24 02:41:55 +00:00
<Application.Resources>
2023-11-15 05:34:33 +00:00
<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>
2023-12-18 09:31:28 +00:00
2023-12-23 03:35:57 +00:00
<!-- =============== 按钮样式 =============== -->
<Style x:Key="ControlButtonStyle" TargetType="Button">
2024-02-21 02:24:56 +00:00
<Setter Property="Width" Value="55" />
2023-12-23 03:35:57 +00:00
<Setter Property="Background" Value="#11FFFFFF" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontFamily" Value="Assets/Fonts/#iconfont" />
2023-12-18 09:31:28 +00:00
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Background="{TemplateBinding Background}">
<Border Name="root">
2023-12-23 03:35:57 +00:00
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
2023-12-18 09:31:28 +00:00
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
2023-12-23 03:35:57 +00:00
<Setter TargetName="root" Property="Background" Value="#33FFFFFF" />
2023-12-18 09:31:28 +00:00
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
2023-11-15 05:34:33 +00:00
</ResourceDictionary>
2023-10-24 02:41:55 +00:00
</Application.Resources>
</Application>