终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

78 line
4.1 KiB

  1. <Window x:Class="BPASmart.UserManagement.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmart.UserManagement"
  7. xmlns:vm="clr-namespace:BPASmart.UserManagement.ViewModel"
  8. xmlns:view="clr-namespace:BPASmart.UserManagement.View"
  9. mc:Ignorable="d"
  10. Title="MainWindow" Height="600 " Width="1000" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" FontFamily="楷体"
  11. >
  12. <Window.DataContext>
  13. <vm:MainWindowViewModel/>
  14. </Window.DataContext>
  15. <Border Background="#01003B" CornerRadius="10">
  16. <Grid >
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="40"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <Border CornerRadius="10,10,0,0" MouseLeftButtonDown="Border_MouseLeftButtonDown" x:Name="br">
  22. <Border.Background>
  23. <LinearGradientBrush StartPoint="0,1" EndPoint="1,1">
  24. <GradientStop Color="#104E8B" Offset="0"/>
  25. <GradientStop Color="#1874CD" Offset="0.4"/>
  26. <GradientStop Color="#1874CD" Offset="0.6"/>
  27. <GradientStop Color="#27408B" Offset="1"/>
  28. </LinearGradientBrush>
  29. </Border.Background>
  30. <Grid>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="auto"/>
  33. <ColumnDefinition Width="auto"/>
  34. <ColumnDefinition Width="*"/>
  35. </Grid.ColumnDefinitions>
  36. <Image Source="../image/user.png" Width="22" Margin="20,0,4 ,0" VerticalAlignment="Center"/>
  37. <TextBlock Grid.Column="1" Text="用户管理模块" Foreground="White" FontFamily="楷体" FontSize="24" VerticalAlignment="Center"/>
  38. <Button Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" Margin="5,0"
  39. Height="35" Width="35" Click="Button_Click" BorderBrush="Transparent">
  40. <Button.Style>
  41. <Style TargetType="Button" >
  42. <Style.Setters>
  43. <Setter Property="Template">
  44. <Setter.Value>
  45. <ControlTemplate TargetType="Button">
  46. <Border x:Name="border" BorderThickness="1" Background="Transparent" Padding="0" >
  47. <Image x:Name="image" Source="../image/Exit.png" Stretch="UniformToFill"
  48. Height="auto" Width="auto" VerticalAlignment="Center" HorizontalAlignment="Center" />
  49. </Border>
  50. <ControlTemplate.Triggers>
  51. <Trigger Property="IsMouseOver" Value="True">
  52. <Setter TargetName="image" Property="Margin" Value="-3"/>
  53. </Trigger>
  54. </ControlTemplate.Triggers>
  55. </ControlTemplate>
  56. </Setter.Value>
  57. </Setter>
  58. </Style.Setters>
  59. </Style>
  60. </Button.Style>
  61. </Button>
  62. </Grid>
  63. </Border>
  64. <Grid Grid.Row="1">
  65. <local:MainControl/>
  66. </Grid>
  67. </Grid>
  68. </Border>
  69. </Window>