终端一体化运控平台
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.
 
 
 

81 line
3.9 KiB

  1. <Window x:Class="BPASmart.RecipeManagement.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.RecipeManagement"
  7. xmlns:view="clr-namespace:BPASmart.RecipeManagement.View"
  8. xmlns:vm="clr-namespace:BPASmart.RecipeManagement.ViewModel"
  9. mc:Ignorable="d"
  10. Title="MainWindow" Height="800" Width="1400" WindowStyle="None" WindowStartupLocation="CenterScreen" Background="#01003B" AllowsTransparency="True">
  11. <Window.DataContext>
  12. <vm:MainWindowViewModel/>
  13. </Window.DataContext>
  14. <Window.Resources>
  15. </Window.Resources>
  16. <Grid >
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="200"/>
  19. <ColumnDefinition Width="*"/>
  20. <ColumnDefinition Width="2"/>
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="50"/>
  24. <RowDefinition Height="*"/>
  25. </Grid.RowDefinitions>
  26. <Border x:Name="br" Grid.ColumnSpan="3 " MouseLeftButtonDown="Border_MouseLeftButtonDown" BorderBrush="#4682B4" BorderThickness="0,0,0,1">
  27. <Border.Background>
  28. <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
  29. <GradientStop Color="#0C2349" Offset="0.2"/>
  30. <GradientStop Color="#6495ED" Offset="0.4"/>
  31. <GradientStop Color="#0C2349" Offset="1"/>
  32. </LinearGradientBrush>
  33. </Border.Background>
  34. <StackPanel Orientation="Horizontal" Margin="60,0,0,0" VerticalAlignment="Center">
  35. <Image Source="../image/recipe.png" Width="20" Height="20"/>
  36. <TextBlock Text="配方集成管理" Foreground="#E8E8E8" FontSize="30" FontFamily="楷体"
  37. HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5,0">
  38. <TextBlock.Effect>
  39. <DropShadowEffect Direction="70" Color="Black" />
  40. </TextBlock.Effect>
  41. </TextBlock>
  42. </StackPanel>
  43. </Border>
  44. <Button Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Top" Background="Transparent"
  45. Height="45" Width="45" Click="Button_Click" BorderBrush="Transparent" >
  46. <Button.Style>
  47. <Style TargetType="Button" >
  48. <Style.Setters>
  49. <Setter Property="Template">
  50. <Setter.Value>
  51. <ControlTemplate TargetType="Button">
  52. <Border x:Name="border" BorderThickness="1" Background="Transparent" Padding="0" >
  53. <Image x:Name="image" Source="../image/Exit.png" Stretch="UniformToFill"
  54. VerticalAlignment="Center" HorizontalAlignment="Center" />
  55. </Border>
  56. <ControlTemplate.Triggers>
  57. <Trigger Property="IsMouseOver" Value="True">
  58. <Setter TargetName="image" Property="Margin" Value="-3"/>
  59. </Trigger>
  60. </ControlTemplate.Triggers>
  61. </ControlTemplate>
  62. </Setter.Value>
  63. </Setter>
  64. </Style.Setters>
  65. </Style>
  66. </Button.Style>
  67. </Button>
  68. <Grid Grid.Row="1" Grid.ColumnSpan="2">
  69. <local:MainControl/>
  70. </Grid>
  71. </Grid>
  72. </Window>