|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <Window x:Class="BPASmart.UserManagement.MainWindow"
- 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:BPASmart.UserManagement"
- xmlns:vm="clr-namespace:BPASmart.UserManagement.ViewModel"
- xmlns:view="clr-namespace:BPASmart.UserManagement.View"
- mc:Ignorable="d"
- Title="MainWindow" Height="600 " Width="1000" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="Transparent" FontFamily="楷体"
- >
- <Window.DataContext>
- <vm:MainWindowViewModel/>
- </Window.DataContext>
- <Border Background="#01003B" CornerRadius="10">
-
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border CornerRadius="10,10,0,0" MouseLeftButtonDown="Border_MouseLeftButtonDown" x:Name="br">
- <Border.Background>
- <LinearGradientBrush StartPoint="0,1" EndPoint="1,1">
- <GradientStop Color="#104E8B" Offset="0"/>
- <GradientStop Color="#1874CD" Offset="0.4"/>
- <GradientStop Color="#1874CD" Offset="0.6"/>
- <GradientStop Color="#27408B" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
-
- </Grid.ColumnDefinitions>
-
- <Image Source="../image/user.png" Width="22" Margin="20,0,4 ,0" VerticalAlignment="Center"/>
- <TextBlock Grid.Column="1" Text="用户管理模块" Foreground="White" FontFamily="楷体" FontSize="24" VerticalAlignment="Center"/>
- <Button Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" Margin="5,0"
- Height="35" Width="35" Click="Button_Click" BorderBrush="Transparent">
- <Button.Style>
- <Style TargetType="Button" >
- <Style.Setters>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="border" BorderThickness="1" Background="Transparent" Padding="0" >
- <Image x:Name="image" Source="../image/Exit.png" Stretch="UniformToFill"
- Height="auto" Width="auto" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="image" Property="Margin" Value="-3"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
-
- </Style>
- </Button.Style>
- </Button>
- </Grid>
- </Border>
- <Grid Grid.Row="1">
- <local:MainControl/>
-
-
- </Grid>
- </Grid>
-
- </Border>
-
- </Window>
|