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.
626 lines
31 KiB
XML
626 lines
31 KiB
XML
<Window
|
|
x:Class="XGL.FormItem.Main"
|
|
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:local="clr-namespace:XGL.FormItem"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="Main"
|
|
xmlns:convert="clr-namespace:XGL.Tools"
|
|
Width="1920"
|
|
Height="1080"
|
|
Closed="Close"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowState="Maximized"
|
|
WindowStyle="None"
|
|
mc:Ignorable="d" Loaded="Window_Loaded" Closing="Window_Closing" PreviewMouseMove="Window_PreviewMouseMove" PreviewKeyDown="Window_PreviewKeyDown">
|
|
<Window.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<hc:ThemeResources />
|
|
<hc:Theme />
|
|
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
|
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
|
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border
|
|
Name="Border"
|
|
Background="#213269"
|
|
BorderBrush="#172557"
|
|
BorderThickness="3,0,20,3">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,2,12,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="CustomButtonStyle" TargetType="{x:Type Button}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid>
|
|
<Border
|
|
x:Name="border"
|
|
Background="#213269"
|
|
BorderBrush="#172557"
|
|
BorderThickness="0,0,0,3" />
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualState x:Name="Normal" />
|
|
<VisualState x:Name="MouseOver">
|
|
<Storyboard>
|
|
<ColorAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
|
|
<EasingColorKeyFrame KeyTime="0" Value="#213269" />
|
|
</ColorAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Pressed" />
|
|
<VisualState x:Name="Disabled" />
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True" />
|
|
<Trigger Property="IsDefaulted" Value="True" />
|
|
<Trigger Property="IsMouseOver" Value="True" />
|
|
<Trigger Property="IsPressed" Value="True" />
|
|
<Trigger Property="IsEnabled" Value="False" />
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<!--<Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBox">
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1,1,1,1" />
|
|
|
|
</Style>-->
|
|
<!-- TextBox默认样式 -->
|
|
<Style x:Key="DefaultTextBox" TargetType="{x:Type TextBox}" />
|
|
<Style x:Key="dgCell" TargetType="TextBlock">
|
|
<Setter Property="TextAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="DefaultButton" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="30,30,30,30">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="DefaultButtonSend" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="90,90,90,90">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="EnableButtonSend" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="90,90,90,90">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
<GradientStop Offset="0.2" Color="Gray" />
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="RoundButton" TargetType="Label">
|
|
<Setter Property="Width" Value="35" />
|
|
<Setter Property="Height" Value="35" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Label}">
|
|
<Grid>
|
|
<Ellipse
|
|
Name="GelBackground"
|
|
Stroke="Black"
|
|
StrokeThickness="1" >
|
|
<!--<Ellipse.Fill>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FF34268A" Offset="0.1"></GradientStop>
|
|
<GradientStop Color="#FF33288B" Offset="0.5"></GradientStop>
|
|
<GradientStop Color="#FF2281D1" Offset="0.9"></GradientStop>F2F3F5
|
|
</LinearGradientBrush>
|
|
</Ellipse.Fill>-->
|
|
</Ellipse>
|
|
<ContentPresenter
|
|
Name="GelButtonContent"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding Content}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<convert:NetStatusToColorConvert x:Key="colorconvert"></convert:NetStatusToColorConvert>
|
|
<convert:MyValueConverter x:Key="MyConverter"/>
|
|
<convert:BtnBackGroundColorConverter x:Key="ButtonContentToBackgroundColorConverter"/>
|
|
<convert:BtnBackGroundColorConverter1 x:Key="ButtonContentToBackgroundColorConverter1"/>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Viewbox Stretch="Fill">
|
|
<Canvas
|
|
Width="1920"
|
|
Height="1080"
|
|
Background="LightGray">
|
|
<StackPanel
|
|
x:Name="UpperStart1"
|
|
Canvas.Top="85"
|
|
Width="1920"
|
|
Height="100"
|
|
HorizontalAlignment="Center"
|
|
Background="#F2F3F5">
|
|
<Grid
|
|
Width="1870"
|
|
Height="82"
|
|
Margin="0,6"
|
|
HorizontalAlignment="Center"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<!--<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="*" />-->
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Column="0"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal" >
|
|
<Image Source="../Resources/factory.png" />
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="15,0,0,0">
|
|
<TextBlock
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="车间" Margin="0,10,0,5"/>
|
|
<TextBlock
|
|
x:Name="tbFactory"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<!--<StackPanel
|
|
Grid.Column="1"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal" Visibility="Collapsed">
|
|
<Image Source="../Resources/factory.png" />
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="线体:" />
|
|
<TextBlock x:Name="tbLineCode"
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel Visibility="Collapsed"
|
|
Grid.Column="2"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="班组:" />
|
|
<TextBlock
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="自动线甲组" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Visibility="Collapsed"
|
|
Grid.Column="3"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="班次:" />
|
|
<TextBlock
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="白班" />
|
|
</StackPanel>-->
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image Source="../Resources/device.png" />
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="15,0,0,0">
|
|
<TextBlock
|
|
Name="shebei"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="设备" Margin="0,10,0,5"/>
|
|
<TextBlock
|
|
x:Name="tbDevice"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="N/12" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Width="300"
|
|
Height="80"
|
|
Margin="5,5"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image Source="../Resources/state.png" Margin="0,0,0,0"/>
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="15,0,0,0">
|
|
<TextBlock
|
|
Name="zhuangtai"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="状态" Margin="0,10,0,5"/>
|
|
<TextBlock
|
|
x:Name="LbDeviceState"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="正常" />
|
|
</StackPanel>
|
|
<!--<StackPanel Orientation="Vertical" HorizontalAlignment="Left">
|
|
<TextBlock
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="状态" Margin="0,0,0,5" />
|
|
<Label Name="LbDeviceState" BorderThickness="0" Content="正常" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="28" Height="50" Foreground="#1A68CA" Background="Transparent" FontWeight="Bold"/>
|
|
|
|
</StackPanel>-->
|
|
<Border Margin="20,0,0,0" CornerRadius="50" Width="50" Height="45" Background="{Binding ElementName=LbDeviceState,Path=Text, Converter={StaticResource ButtonContentToBackgroundColorConverter1}}">
|
|
<Border CornerRadius="50" Width="35" Height="30" Background="{Binding ElementName=LbDeviceState,Path=Text, Converter={StaticResource ButtonContentToBackgroundColorConverter}}">
|
|
<!--<Label Name="LbDeviceState" BorderThickness="0" Content="Hi" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Background="Transparent" FontWeight="Bold"/>-->
|
|
</Border>
|
|
</Border>
|
|
|
|
<!--<Label x:Name="LbDeviceState" Style="{StaticResource RoundButton}"
|
|
Background="{Binding RelativeSource={RelativeSource Mode=Self},Path=Content, Converter={StaticResource ButtonContentToBackgroundColorConverter}}"></Label>
|
|
<Label
|
|
x:Name="LbDeviceState1" Background="Red"
|
|
|
|
Width="80"
|
|
Height="50"
|
|
FontSize="28"
|
|
HorizontalContentAlignment="Center" HorizontalAlignment="Center"
|
|
VerticalContentAlignment="Center" VerticalAlignment="Center"
|
|
Foreground="White" FontWeight="Bold"></Label>-->
|
|
|
|
<!-- Background="{Binding RelativeSource={RelativeSource Mode=Self},Path=Content, Converter={StaticResource ButtonContentToBackgroundColorConverter}}"-->
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="3"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image Source="../Resources/operator.png" />
|
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Left" Margin="15,0,0,0">
|
|
<TextBlock
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="人员" Margin="0,10,0,5"/>
|
|
<TextBlock
|
|
x:Name="tbOperator"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
<Grid
|
|
x:Name="UpperStart2"
|
|
Canvas.Top="185"
|
|
Width="1920"
|
|
Height="850"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Background="#F2F3F5">
|
|
<ContentControl Name="Index" />
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Width="1920"
|
|
Height=" 83"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal" Background="AliceBlue">
|
|
<StackPanel Width="210" Orientation="Horizontal" Background="#1C6BCC">
|
|
<Image
|
|
Height="83"
|
|
Margin="0,0,0,0"
|
|
Source="/Resources/logo.png" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Width="1720" Orientation="Horizontal" >
|
|
<Label
|
|
Width="350"
|
|
Height="55"
|
|
Margin="100,0,0,0"
|
|
Content="榄菊生产操作系统"
|
|
FontSize="36"
|
|
FontWeight="Bold"
|
|
Foreground="White" BorderThickness="0" Background="Transparent" />
|
|
<Image
|
|
Width="40"
|
|
Height="40" Margin="500,0,0,0"
|
|
Source="..\Resources\riqi.png" />
|
|
<Label Margin="15"
|
|
x:Name="LabDate"
|
|
Height="49"
|
|
Content="2023-08-30"
|
|
FontSize="30"
|
|
Foreground="White" VerticalAlignment="Bottom" BorderThickness="0" Background="Transparent" />
|
|
|
|
<Image
|
|
Width="40"
|
|
Height="40" Margin="200,0,0,0"
|
|
Source="..\Resources\shijian.png" />
|
|
<Label
|
|
x:Name="LabTime"
|
|
Height="49"
|
|
Content="14:53:50"
|
|
FontSize="30"
|
|
Foreground="White" BorderThickness="0" Background="Transparent"/>
|
|
<StackPanel.Background>
|
|
<ImageBrush ImageSource="..\Resources\topblank.png"></ImageBrush>
|
|
</StackPanel.Background>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<!--<StackPanel
|
|
x:Name="InventoryAreaDown"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown2"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown3"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown4"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown5"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown6"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown7"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />-->
|
|
|
|
<StackPanel
|
|
x:Name="DownStart"
|
|
Canvas.Left="0"
|
|
Canvas.Top="1030"
|
|
Width="1920"
|
|
Height="Auto"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="White">
|
|
<StackPanel
|
|
Width="1920"
|
|
Height="Auto"
|
|
Margin="0"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Width="150"
|
|
Height="40"
|
|
HorizontalAlignment="Left"
|
|
Content="网络状态"
|
|
FontSize="20px"
|
|
Foreground="Black" BorderThickness="0" VerticalContentAlignment="Center"/>
|
|
<TextBlock x:Name="myTb" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20" Margin="0 0 10 0"
|
|
Width="120" Foreground="{Binding PingSeconds,Converter={StaticResource colorconvert}}" >
|
|
<Run Foreground="white" Text="{DynamicResource 延迟}"></Run>
|
|
<Run Name="btnText" Text="{Binding PingSeconds}"></Run>
|
|
<Run Text="ms"></Run>
|
|
</TextBlock>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label
|
|
Width="66"
|
|
Height="40"
|
|
HorizontalAlignment="Left"
|
|
Content="版本:"
|
|
FontSize="20px"
|
|
Foreground="Black" BorderThickness="0" VerticalContentAlignment="Center"/>
|
|
<Label
|
|
x:Name="lbVersion"
|
|
Width="150"
|
|
Height="40"
|
|
HorizontalAlignment="Left"
|
|
Content="20231001001"
|
|
FontSize="20px"
|
|
Foreground="Blue" BorderThickness="0" FontStretch="Condensed" VerticalContentAlignment="Center"/>
|
|
</StackPanel>
|
|
|
|
<Button BorderThickness="1" BorderBrush="CornflowerBlue" Visibility="Visible" Background="Transparent" FontSize="26" Height="40" Width="50" HorizontalAlignment="Left" x:Name="notsos" Margin="900,4,0,2" ToolTip="关闭报警" Click="notsos_Click" >
|
|
<Image Source="..\Resources\nitsos.png" />
|
|
</Button>
|
|
<Button BorderThickness="1" BorderBrush="CornflowerBlue" Visibility="Visible" Background="Transparent" FontSize="26" Height="40" Width="50" HorizontalAlignment="Left" x:Name="btnZXH" Margin="200,4,0,2" ToolTip="最小化" Click="btnZXH_Click" >
|
|
<Image Source="..\Resources\zxh.png" />
|
|
</Button>
|
|
<Button
|
|
x:Name="btnFault"
|
|
Width="100"
|
|
Height="40"
|
|
Margin="60,0,0,0"
|
|
Background="#2F82E7"
|
|
Click="btnExit_Click"
|
|
Content="退出"
|
|
FontSize="20"
|
|
Foreground="White"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</Window>
|