generated from wenjy/SlnMesnac
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.
172 lines
11 KiB
XML
172 lines
11 KiB
XML
<Window
|
|
x:Class="SlnMesnac.WPF.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: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"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="950" Width="1620"
|
|
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"/>
|
|
</Border.Effect>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
</Grid.RowDefinitions>
|
|
<!--<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="8.6*"/>
|
|
<ColumnDefinition Width="1.4*"/>
|
|
</Grid.ColumnDefinitions>-->
|
|
<Border Grid.Row="0" BorderBrush="Red" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="2,2">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</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">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0">
|
|
<Label Content="{Binding TimeNow}" Name="NowTime" 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>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="1" BorderBrush="Red" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="10">
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="8.6*"/>
|
|
<ColumnDefinition Width="1.4*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" BorderBrush="#FF1655B4" BorderThickness="3" CornerRadius="8">
|
|
<ContentControl Content="{Binding UserContent}"/>
|
|
</Border>
|
|
<Border Grid.Column="1">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</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>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Window> |