忱 沈 4 years ago
parent
commit
3fa6bc7706
  1. 2
      MainWindow.xaml
  2. 3
      MainWindow.xaml.cs

2
MainWindow.xaml

@ -136,7 +136,7 @@
<!--自定义标题栏--> <!--自定义标题栏-->
<Border HorizontalAlignment="Stretch" Height="35" Margin="140,0,0,0" VerticalAlignment="Top" Background="#FFE6E6E6" /> <Border HorizontalAlignment="Stretch" Height="35" Margin="140,0,0,0" VerticalAlignment="Top" Background="#FFE6E6E6" />
<Button Style="{StaticResource Button_Menu}" Content="➖" HorizontalAlignment="Right" Height="35" Margin="0,0,0,0" VerticalAlignment="Top" Width="45" Click="Button_Click" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF100F0F" <Button Style="{StaticResource Button_Menu}" Content="➖" HorizontalAlignment="Right" Height="35" Margin="0,0,0,0" VerticalAlignment="Top" Width="40" Click="Button_Click" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="#FF100F0F"
BorderThickness="0,0,0,0" FontSize="24" OpacityMask="#FFA4A4A4" WindowChrome.IsHitTestVisibleInChrome="True" VerticalContentAlignment="Center" Padding="0,0,0,0" FontWeight="Bold" FontStyle="Normal" Cursor="Hand"/> BorderThickness="0,0,0,0" FontSize="24" OpacityMask="#FFA4A4A4" WindowChrome.IsHitTestVisibleInChrome="True" VerticalContentAlignment="Center" Padding="0,0,0,0" FontWeight="Bold" FontStyle="Normal" Cursor="Hand"/>
<!--用户窗体--> <!--用户窗体-->

3
MainWindow.xaml.cs

@ -40,7 +40,8 @@ namespace SUNLIGHT_Audit.git
help.ShowDialog();//实例化并置顶打开信息窗口 help.ShowDialog();//实例化并置顶打开信息窗口
} }
private void RadioButton_Checked(object sender, RoutedEventArgs e)//工具栏 private void RadioButton_Checked(object sender, RoutedEventArgs e)//最小化按钮
{
if (!(sender is RadioButton button)) return; if (!(sender is RadioButton button)) return;
if (string.IsNullOrEmpty(button.Content.ToString())) return; if (string.IsNullOrEmpty(button.Content.ToString())) return;
switch (button.Content.ToString()) switch (button.Content.ToString())