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.
398 lines
17 KiB
398 lines
17 KiB
1 week ago
|
<Window xmlns="https://github.com/avaloniaui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:vm="using:Bodk.Ava.UI.ViewModels"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||
|
x:Class="Bodk.Ava.UI.Views.MainWindow"
|
||
|
x:DataType="vm:MainWindowViewModel"
|
||
|
Icon="/Assets/avalonia-logo.ico"
|
||
|
WindowState="FullScreen"
|
||
|
ExtendClientAreaChromeHints="NoChrome"
|
||
|
ExtendClientAreaToDecorationsHint="True"
|
||
|
ExtendClientAreaTitleBarHeightHint="-1"
|
||
|
SystemDecorations="None"
|
||
|
CanResize="False"
|
||
|
Title="HomePage" Height="768" Width="1366"
|
||
|
Background="#232323">
|
||
|
|
||
|
<Design.DataContext>
|
||
|
<!-- This only sets the DataContext for the previewer in an IDE,
|
||
|
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
|
||
|
<vm:MainWindowViewModel />
|
||
|
</Design.DataContext>
|
||
|
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
||
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Canvas>
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Machine.png"
|
||
|
Width="580"
|
||
|
Canvas.Left="70"
|
||
|
Canvas.Top="70" />
|
||
|
|
||
|
<TextBlock Text="密封腔湿度"
|
||
|
Width="70" Height="15"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="189" />
|
||
|
|
||
|
<TextBlock Text="5.28"
|
||
|
Width="70" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="162" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="187"
|
||
|
Canvas.Top="196" />
|
||
|
|
||
|
<TextBlock Text="液氮上限"
|
||
|
Width="70" Height="15"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="273" />
|
||
|
|
||
|
<TextBlock Text="-190mm"
|
||
|
Width="100" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="246" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="187"
|
||
|
Canvas.Top="280" />
|
||
|
|
||
|
<TextBlock Text="液氮下限"
|
||
|
Width="70" Height="17"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="357" />
|
||
|
|
||
|
<TextBlock Text="-120mm"
|
||
|
Width="100" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="115"
|
||
|
Canvas.Top="330" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="187"
|
||
|
Canvas.Top="364" />
|
||
|
|
||
|
<TextBlock Text="存储区温度"
|
||
|
Width="70" Height="17"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="161" />
|
||
|
|
||
|
<TextBlock Text="-193.52℃"
|
||
|
Width="125" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="134" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="475"
|
||
|
Canvas.Top="168" />
|
||
|
|
||
|
<TextBlock Text="腔内温度"
|
||
|
Width="70" Height="17"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="273" />
|
||
|
|
||
|
<TextBlock Text="23.658℃"
|
||
|
Width="120" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="246" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="475"
|
||
|
Canvas.Top="280" />
|
||
|
|
||
|
<TextBlock Text="排气口温度℃"
|
||
|
Width="100" Height="15"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="385" />
|
||
|
|
||
|
<TextBlock Text="20.48℃"
|
||
|
Width="100" Height="30"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
TextAlignment="Center"
|
||
|
Canvas.Left="597"
|
||
|
Canvas.Top="358" />
|
||
|
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Indicator.png"
|
||
|
Canvas.Left="475"
|
||
|
Canvas.Top="392" />
|
||
|
|
||
|
<Grid Canvas.Top="512" Canvas.Left="50" Width="680" Height="142" HorizontalAlignment="Left" VerticalAlignment="Center">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<!--<ColumnDefinition Width="25"/>-->
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<!--<ColumnDefinition Width="25"/>-->
|
||
|
<ColumnDefinition Width="40"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Image Height="16" Margin="0 0 20 0" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_1.png"/>
|
||
|
<TextBlock Grid.Column="1" Grid.Row="0" Text="已用冷冻盒"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
TextAlignment="Center"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="2" Grid.Row="0" Text="1368"
|
||
|
Width="90" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
TextAlignment="Center"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20"/>
|
||
|
<!--<Image Grid.Row="0" Grid.Column="3" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Divider.png"
|
||
|
Height="20"/>-->
|
||
|
<Image Grid.Row="0" Grid.Column="3" HorizontalAlignment="Center"
|
||
|
Margin="0 0 20 0" Width="15" Height="16" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_1.png"/>
|
||
|
<TextBlock Grid.Column="4" Grid.Row="0" Text="总冷冻盒"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="5" Grid.Row="0" Text="2500"
|
||
|
Width="110" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20"/>
|
||
|
<!--<Image Grid.Row="0" Grid.Column="7" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Divider.png"
|
||
|
Height="20" Width="60"/>-->
|
||
|
<Image Grid.Row="0" Grid.Column="6" HorizontalAlignment="Center"
|
||
|
Margin="0 0 20 0" Width="15" Height="16" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_2.png"/>
|
||
|
<TextBlock Grid.Column="7" Grid.Row="0" Text="使用率"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="8" Grid.Row="0"
|
||
|
Width="100" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" Text="54.7%" />
|
||
|
|
||
|
<Image Grid.Row="1" Grid.Column="0" Margin="0 0 20 0" Width="15" Height="16"
|
||
|
Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_3.png"/>
|
||
|
<TextBlock Grid.Column="1" Grid.Row="1" Text="液氮消耗量"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
TextAlignment="Center"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="2" Grid.Row="1" Text="8.5L/D"
|
||
|
Width="110" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" Margin="15,0"/>
|
||
|
<!--<Image Grid.Row="1" Grid.Column="3" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Divider.png"
|
||
|
Height="20" Width="60"/>-->
|
||
|
<Image Grid.Row="1" Grid.Column="3" HorizontalAlignment="Center" Margin="0 0 20 0" Width="15" Height="16"
|
||
|
Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_4.png"/>
|
||
|
<TextBlock Grid.Column="4" Grid.Row="1" Text="转运区温度"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="5" Grid.Row="1" Text="28.56℃"
|
||
|
Width="130" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
HorizontalAlignment="Left"
|
||
|
LineHeight="20" Margin="15,0"/>
|
||
|
<!--<Image Grid.Row="1" Grid.Column="7" Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/Divider.png"
|
||
|
Height="20" Width="60"/>-->
|
||
|
<Image Grid.Row="1" Grid.Column="6" HorizontalAlignment="Center" Margin="0 0 20 0" Width="15" Height="16"
|
||
|
Source="avares://Bodk.Ava.UI/Assets/Images/HomeIcons/icon_5.png"/>
|
||
|
<TextBlock Grid.Column="7" Grid.Row="1" Text="转运区"
|
||
|
Width="60" Height="16"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="White"
|
||
|
FontSize="12" FontWeight="Normal"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20" FontFamily="PingFang SC"/>
|
||
|
<TextBlock Grid.Column="8" Grid.Row="1" Text="无桶"
|
||
|
Width="90" Height="35"
|
||
|
TextWrapping="NoWrap"
|
||
|
Foreground="#FF7C00"
|
||
|
FontSize="28" FontWeight="Bold"
|
||
|
HorizontalAlignment="Center"
|
||
|
LineHeight="20"/>
|
||
|
</Grid>
|
||
|
|
||
|
</Canvas>
|
||
|
|
||
|
<Border Grid.Column="1" BorderThickness="1"
|
||
|
BorderBrush="Black"
|
||
|
Background="#1D1D1D"
|
||
|
CornerRadius="8"
|
||
|
Margin="80,30,30,30"
|
||
|
Padding="4" BoxShadow="0 0 0 0 Black ">
|
||
|
|
||
|
<StackPanel>
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/Logo.png"
|
||
|
Width="150"
|
||
|
Margin="0,70,0,0"
|
||
|
HorizontalAlignment="Center" VerticalAlignment="Top"/>
|
||
|
<TextBlock Text="欢迎使用"
|
||
|
Width="262" Height="25"
|
||
|
Foreground="#C5C5C5"
|
||
|
FontSize="18"
|
||
|
TextAlignment="Center"
|
||
|
Margin="0,40,0,0"
|
||
|
HorizontalAlignment="Center" VerticalAlignment="Top" FontFamily="SimHei"/>
|
||
|
<TextBlock Text="博工科技样本深低温智能存储系统"
|
||
|
Width="280" Height="25"
|
||
|
Foreground="#C5C5C5"
|
||
|
FontSize="18"
|
||
|
TextAlignment="Center"
|
||
|
Margin="0,10,0,0"
|
||
|
HorizontalAlignment="Center" VerticalAlignment="Top" FontFamily="SimHei"/>
|
||
|
|
||
|
<Border BorderThickness="1"
|
||
|
Background="#111111"
|
||
|
CornerRadius="8"
|
||
|
Width="400" Height="272"
|
||
|
Margin="0,47,0,0"
|
||
|
HorizontalAlignment="Center"
|
||
|
VerticalAlignment="Center">
|
||
|
<Border.BorderBrush>
|
||
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0.5,0.5">
|
||
|
<GradientStop Color="#26C9CB" Offset="0"/>
|
||
|
<GradientStop Color="#323232" Offset="0.5"/>
|
||
|
</LinearGradientBrush>
|
||
|
</Border.BorderBrush>
|
||
|
|
||
|
<Grid Margin="7,11,7,0">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<Button Width="375" Height="125"
|
||
|
RenderTransformOrigin="0.5,0.5">
|
||
|
<Button.Background>
|
||
|
<ImageBrush Source="avares://Bodk.Ava.UI/Assets/Images/LoginButtonBackImage.png" Stretch="Fill"/>
|
||
|
</Button.Background>
|
||
|
|
||
|
<Button.Content>
|
||
|
<StackPanel Width="375" Height="124" Orientation="Horizontal"
|
||
|
VerticalAlignment="Center" HorizontalAlignment="Left">
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/User_Login_Icon.png"
|
||
|
Width="30" Height="30"
|
||
|
Margin="47,38,55,46"
|
||
|
VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
||
|
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Center">
|
||
|
<TextBlock Text="账户登录"
|
||
|
Width="95" Height="28"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
HorizontalAlignment="Left" FontFamily="SimHei"/>
|
||
|
<TextBlock Text="Account login"
|
||
|
Width="95" Height="28"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
HorizontalAlignment="Left"/>
|
||
|
</StackPanel>
|
||
|
</StackPanel>
|
||
|
</Button.Content>
|
||
|
</Button>
|
||
|
|
||
|
<Button Width="375" Height="125" Grid.Row="1"
|
||
|
RenderTransformOrigin="0.5,0.5">
|
||
|
<Button.Background>
|
||
|
<ImageBrush Source="avares://Bodk.Ava.UI/Assets/Images/LoginButtonBackImage.png" Stretch="Fill"/>
|
||
|
</Button.Background>
|
||
|
|
||
|
<Button.Content>
|
||
|
<StackPanel Width="375" Height="124" Orientation="Horizontal"
|
||
|
VerticalAlignment="Center" HorizontalAlignment="Left">
|
||
|
<Image Source="avares://Bodk.Ava.UI/Assets/Images/Face_Login_Icon.png"
|
||
|
Width="30" Height="30"
|
||
|
Margin="47,38,55,46"
|
||
|
VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
||
|
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Center">
|
||
|
<TextBlock Text="人脸登录"
|
||
|
Width="95" Height="28"
|
||
|
Foreground="White"
|
||
|
FontSize="22"
|
||
|
HorizontalAlignment="Left" FontFamily="SimHei"/>
|
||
|
<TextBlock Text="Face login"
|
||
|
Width="95" Height="28"
|
||
|
Foreground="White"
|
||
|
FontSize="13"
|
||
|
HorizontalAlignment="Left"/>
|
||
|
</StackPanel>
|
||
|
</StackPanel>
|
||
|
</Button.Content>
|
||
|
</Button>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</StackPanel>
|
||
|
</Border>
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
</Window>
|