|
|
|
@ -58,6 +58,50 @@ |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
<Style x:Key="Style" 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 x:Name="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"> |
|
|
|
<Setter Property="Background" Value="#FFA0A0A0" TargetName="border"/> |
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
</mah:MetroWindow.Resources> |
|
|
|
<Grid> |
|
|
|
|
|
|
|
@ -74,17 +118,17 @@ |
|
|
|
|
|
|
|
<RadioButton Content="退出" Tag="" HorizontalAlignment="Left" |
|
|
|
Height="55" Margin="0,745,0,0" VerticalAlignment="Top" Width="180" |
|
|
|
Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}" Checked="exit"/> |
|
|
|
Background="#FFCCCCCC" Style="{DynamicResource Style}" Checked="exit"/> |
|
|
|
|
|
|
|
<RadioButton Content="帮助" Tag="" HorizontalAlignment="Left" |
|
|
|
Height="55" Margin="0,685,0,0" VerticalAlignment="Top" Width="180" |
|
|
|
Background="#FFCCCCCC" Style="{DynamicResource RadioButtonStyle}" Checked="help"/> |
|
|
|
Background="#FFCCCCCC" Style="{DynamicResource Style}" Checked="help"/> |
|
|
|
|
|
|
|
<Rectangle HorizontalAlignment="Left" Height="150" Margin="15,15,0,0" VerticalAlignment="Top" Width="150"> |
|
|
|
<Rectangle.Fill> |
|
|
|
<ImageBrush ImageSource="/Logo/sunlight_sc.png"/> |
|
|
|
</Rectangle.Fill> |
|
|
|
</Rectangle> |
|
|
|
|
|
|
|
|
|
|
|
</Grid> |
|
|
|
</mah:MetroWindow> |