|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <Window x:Class="BPASmart.RecipeManagement.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.RecipeManagement"
- xmlns:view="clr-namespace:BPASmart.RecipeManagement.View"
- xmlns:vm="clr-namespace:BPASmart.RecipeManagement.ViewModel"
- mc:Ignorable="d"
- Title="MainWindow" Height="800" Width="1400" WindowStyle="None" WindowStartupLocation="CenterScreen" Background="#01003B" AllowsTransparency="True">
- <Window.DataContext>
- <vm:MainWindowViewModel/>
- </Window.DataContext>
- <Window.Resources>
-
-
-
- </Window.Resources>
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="2"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border x:Name="br" Grid.ColumnSpan="3 " MouseLeftButtonDown="Border_MouseLeftButtonDown" BorderBrush="#4682B4" BorderThickness="0,0,0,1">
- <Border.Background>
- <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
- <GradientStop Color="#0C2349" Offset="0.2"/>
- <GradientStop Color="#6495ED" Offset="0.4"/>
- <GradientStop Color="#0C2349" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <StackPanel Orientation="Horizontal" Margin="60,0,0,0" VerticalAlignment="Center">
- <Image Source="../image/recipe.png" Width="20" Height="20"/>
- <TextBlock Text="配方集成管理" Foreground="#E8E8E8" FontSize="30" FontFamily="楷体"
- HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,0">
- <TextBlock.Effect>
- <DropShadowEffect Direction="70" Color="Black" />
- </TextBlock.Effect>
- </TextBlock>
-
- </StackPanel>
-
- </Border>
- <Button Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" Background="Transparent"
- Height="45" Width="45" 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"
- 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 Grid.Row="1" Grid.ColumnSpan="2">
- <local:MainControl/>
- </Grid>
-
-
- </Grid>
- </Window>
|