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.
71 lines
4.8 KiB
XML
71 lines
4.8 KiB
XML
<Window x:Class="MaterialTraceabilityUI.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:MaterialTraceabilityUI"
|
|
mc:Ignorable="d"
|
|
Height="665" Width="1285"
|
|
Icon="Assets/Images/芯片.png" Loaded="Window_Loaded" ResizeMode="CanMinimize"
|
|
>
|
|
<Border Margin="5" Background="White" CornerRadius="10">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
|
|
</Border.Effect>
|
|
<Grid>
|
|
<Border Background="#007DFA" CornerRadius="10,10,0,0" Height="80" VerticalAlignment="Top"></Border>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="45"/>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="532"/>
|
|
</Grid.RowDefinitions>
|
|
<!--左侧标题-->
|
|
<StackPanel Margin="30,1" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Image Source="Assets/Images/芯片.png"/>
|
|
<StackPanel Margin="5,1">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="RFID物料追溯系统 " Foreground="White" FontSize="20" HorizontalAlignment="Left"/>
|
|
<TextBlock x:Name="titleText" Foreground="White" FontSize="20" HorizontalAlignment="Right"/>
|
|
</StackPanel>
|
|
<TextBlock x:Name="titleTextEngilsh" Text="RFID material tracking system" Foreground="#88DDDDDD"/>
|
|
</StackPanel>
|
|
<Image Source="Assets/Images/宁德LOG.png" Margin="130,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
<!--右侧信息-->
|
|
<StackPanel Margin="30,5" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
|
<Border Width="30" Height="30" CornerRadius="15">
|
|
<Border.Background>
|
|
<ImageBrush x:Name="PlcStatusImage" ImageSource="Assets/Images/失败-01.png"/>
|
|
</Border.Background>
|
|
</Border>
|
|
<TextBlock x:Name="TestTB" Text="PLC状态异常" VerticalAlignment="Center" Foreground="Red" FontSize="15" Margin="10,0"/>
|
|
<TextBlock Text="|" VerticalAlignment="Center" Foreground="White" FontSize="15" Margin="10,0"/>
|
|
<TextBlock x:Name="loginUser" Text="未登录" VerticalAlignment="Center" Foreground="White" FontSize="15" Margin="10,0"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="30,2" Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Left">
|
|
<RadioButton Content="首页" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" Click="IndexPage_Click"/> <!--CommandParameter="IndexPage" Command="{Binding ChangeContentCommand}"-->
|
|
<RadioButton Content="记录报表" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" VerticalAlignment="Center" Click="RecordPage_Click"/>
|
|
<RadioButton Content="参数配置" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="False" VerticalAlignment="Center" Click="ConfigPage_Click" />
|
|
<RadioButton x:Name="alarmButton" Content="异常处理" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="False" VerticalAlignment="Center" Click="alarmButton_Click" Visibility="Hidden" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Margin="30,2" Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
|
|
<RadioButton Content="获取新版本" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" VerticalAlignment="Center" Click="Get_NewVersion" />
|
|
<RadioButton Content="登录" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" VerticalAlignment="Center" Click="RadioButton_Click" />
|
|
<RadioButton Content="注销" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" VerticalAlignment="Center" Click="RadioButton_Click_1" />
|
|
</StackPanel>
|
|
|
|
<!--Content Panel ChildContent-->
|
|
<ContentControl Content="{Binding UserContent}" Grid.Row="2" />
|
|
</Grid>
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Window>
|