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.

70 lines
4.2 KiB
XML

<Window x:Class="Admin.Core.Wpf.View.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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Title="数据采集系统"
WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize"
MinHeight="600" MinWidth="980" Height="665" Width="1100">
<Border Margin="5" Background="White">
<Border.Effect>
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
</Border.Effect>
<materialDesign:DialogHost>
<materialDesign:DrawerHost>
<DockPanel>
<materialDesign:ColorZone Padding="10" CornerRadius="10,10,0,0"
materialDesign:ElevationAssist.Elevation="Dp4"
DockPanel.Dock="Top"
Mode="PrimaryMid">
<StackPanel>
<StackPanel
materialDesign:RippleAssist.IsCentered="True"
Orientation="Horizontal">
<Image Width="50" Height="50" Source="/Assets/Images/芯片.png" />
<StackPanel Width="850" >
<StackPanel Orientation="Horizontal">
<TextBlock Text="电气数据采集系统" Foreground="White" FontSize="20" HorizontalAlignment="Left"/>
<TextBlock x:Name="titleText" Foreground="White" FontSize="20" HorizontalAlignment="Right"/>
</StackPanel>
<TextBlock x:Name="titleTextEngilsh" Text="Electrical Data Acquisition System" Foreground="#88DDDDDD"/>
</StackPanel>
<!--右侧信息-->
<StackPanel Width="150" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Border Width="30" Height="30" CornerRadius="15">
<Border.Background>
<ImageBrush x:Name="PlcStatusImage" ImageSource="{Binding PlcStateIcon}"/>
</Border.Background>
</Border>
<TextBlock x:Name="PlcTextTB" Text="{Binding PlcStateWb}" VerticalAlignment="Center" Foreground="{Binding PlcUIColor}" FontSize="15" Margin="10,0"/>
</StackPanel>
</StackPanel>
<StackPanel
materialDesign:RippleAssist.IsCentered="True"
Orientation="Horizontal" Visibility="Hidden">
<RadioButton Content="首页" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" Command="{Binding IndexPage}" Visibility="Hidden"/>
<RadioButton Content="维修申报" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" VerticalAlignment="Center" Command="{Binding FaultPage}" Visibility="Hidden"/>
</StackPanel>
</StackPanel>
</materialDesign:ColorZone>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ScrollViewer x:Name="MainScrollViewer"
Grid.Row="0">
<ContentControl Content="{Binding UserContent}" Grid.Row="0" />
</ScrollViewer>
</Grid>
</DockPanel>
</materialDesign:DrawerHost>
</materialDesign:DialogHost>
</Border>
</Window>