|
|
|
|
<mah:MetroWindow
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:local="clr-namespace:Audit"
|
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
|
|
|
x:Class="Audit.MainWindow"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="绍兴尚彩自动化科技有限公司" Height="800" Width="1280" WindowStartupLocation="CenterScreen">
|
|
|
|
|
<mah:MetroWindow.Resources>
|
|
|
|
|
<Style x:Key="RadioButtonStyle" TargetType="{x:Type RadioButton}">
|
|
|
|
|
<Setter Property="Background" Value="{DynamicResource MahApps.Brushes.ThemeBackground}"/>
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource MahApps.Brushes.CheckBox}"/>
|
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{DynamicResource {x:Static SystemParameters.FocusVisualStyleKey}}"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="{DynamicResource MahApps.Fonts.Family.Control}"/>
|
|
|
|
|
<Setter Property="FontSize" Value="{DynamicResource MahApps.Font.Size.Content}"/>
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource MahApps.Brushes.Text}"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
|
|
|
<Setter Property="Padding" Value="6 0 0 0"/>
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
|
|
|
|
<Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Border Background="{TemplateBinding Background}">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition>
|
|
|
|
|
</ColumnDefinition>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{TemplateBinding Tag}" FontFamily="Fonts/#FontAwesome" HorizontalAlignment="Left" Width="40" FontSize="30" Margin="10,10,0,0"/>
|
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="1" Text="{TemplateBinding Content}" FontFamily="Fonts/#FontAwesome" HorizontalAlignment="Center" Width="60" FontSize="30" Margin="10,10,0,0"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</mah:MetroWindow.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<RadioButton Content="查询" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,115,0,0" VerticalAlignment="Top" Width="150" Background="#FF66CCFF" Style="{DynamicResource RadioButtonStyle}"/>
|
|
|
|
|
<RadioButton Content="统计" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,170,0,0" VerticalAlignment="Top" Width="150" Background="#FF66CCFF" Style="{DynamicResource RadioButtonStyle}"/>
|
|
|
|
|
<RadioButton Content="退出" Tag="" HorizontalAlignment="Left" Height="55" Margin="0,675,0,0" VerticalAlignment="Top" Width="150" Background="#FF66CCFF" Style="{DynamicResource RadioButtonStyle}"/>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</mah:MetroWindow>
|