You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
crop/SlnMesnac.WPF/MainWindow.xaml

172 lines
11 KiB
Plaintext

<Window
x:Class="SlnMesnac.WPF.MainWindow"
7 months ago
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:SlnMesnac.WPF" xmlns:viewmodel="clr-namespace:SlnMesnac.WPF.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:MainWindowViewModel}"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
7 months ago
mc:Ignorable="d"
Title="MainWindow" Height="950" Width="1620"
7 months ago
WindowState="Maximized" WindowStyle="None" ResizeMode="NoResize" Topmost="False">
<Window.Background>
<ImageBrush ImageSource="/Templates/image/background.jpg" />
</Window.Background>
<Border Margin="5" Background="Transparent" CornerRadius="10">
<Border.Effect>
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"/>
7 months ago
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="9*"/>
7 months ago
</Grid.RowDefinitions>
<!--<Grid.ColumnDefinitions>
<ColumnDefinition Width="8.6*"/>
<ColumnDefinition Width="1.4*"/>
</Grid.ColumnDefinitions>-->
7 months ago
<Border Grid.Row="0" BorderBrush="Red" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="2,2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
7 months ago
</Grid.ColumnDefinitions>
<Border Grid.Column="1">
<TextBlock TextWrapping="Wrap" Text="RFID合层及裁切设备" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="40" Margin="16"/>
</Border>
<Border Grid.Column="2">
7 months ago
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
7 months ago
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0">
<Label Content="yyyy-MM-dd-HH-mm" FontSize="21" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,8"/>
</Border>
<Border Grid.Column="1">
<dx:SimpleButton Content="时间设置" FontSize="26" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" Height="60" Width="160" Margin="0,0,0,8" CornerRadius="6">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF004DF4" Offset="1"/>
<GradientStop Color="#FF62C6FF" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
7 months ago
</Grid>
</Border>
7 months ago
</Grid>
</Border>
<Border Grid.Row="1" BorderBrush="Red" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="10">
7 months ago
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8.6*"/>
<ColumnDefinition Width="1.4*"/>
7 months ago
</Grid.ColumnDefinitions>
<Border Grid.Column="0" BorderBrush="#FF1655B4" BorderThickness="3" CornerRadius="8">
<ContentControl Content="{Binding UserContent}"/>
</Border>
<Border Grid.Column="1">
<Grid>
7 months ago
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
7 months ago
</Grid.RowDefinitions>
<Border Grid.Row="0">
<dx:SimpleButton Content="主画面" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="1">
<dx:SimpleButton Content="层合手动画面" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="2">
<dx:SimpleButton Content="裁切手动画面" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="3">
<dx:SimpleButton Content="数据记录" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="4">
<dx:SimpleButton Content="参数画面" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="5">
<dx:SimpleButton Content="报警记录" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="6">
<dx:SimpleButton Content="设备内照明" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF0AA397" Offset="1"/>
<GradientStop Color="#FF8AE6E0" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="7">
<dx:SimpleButton Content="消音" FontSize="26" Foreground="White" VerticalAlignment="Center" Height="80" Width="180" CornerRadius="8" Margin="15,0,0,0">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFF4A00" Offset="1"/>
<GradientStop Color="#FFFFCB00" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
7 months ago
</Grid>
</Border>
7 months ago
</Grid>
</Border>
</Grid>
</Border>
</Window>