129 lines
6.0 KiB
XML
129 lines
6.0 KiB
XML
<Window x:Class="Seyounth.Hyosung.Views.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:Seyounth.Hyosung"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:views="clr-namespace:Seyounth.Hyosung.Views"
|
|
mc:Ignorable="d"
|
|
d:DataContext="{d:DesignInstance views:MainWindow,
|
|
IsDesignTimeCreatable=True}"
|
|
Title="{Binding ViewModel.ApplicationTitle, Mode=OneWay}"
|
|
Height="1080" Width="1920"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
WindowState="Maximized"
|
|
Background="Transparent">
|
|
<Border Background="{DynamicResource MaterialDesignPaper}"
|
|
CornerRadius="4"
|
|
Margin="10"
|
|
materialDesign:ElevationAssist.Elevation="Dp2">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<materialDesign:ColorZone Padding="16"
|
|
materialDesign:ElevationAssist.Elevation="Dp4"
|
|
DockPanel.Dock="Top"
|
|
Mode="PrimaryMid">
|
|
<DockPanel>
|
|
|
|
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
|
|
<Button x:Name="One" Margin="-20,-20,10,-20"
|
|
Content="_"
|
|
Command="{Binding ViewModel.MinimizeCommand}" />
|
|
<Button x:Name="Exit"
|
|
Content="X"
|
|
Command="{Binding ViewModel.ExitCommand}" />
|
|
|
|
</StackPanel>
|
|
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="22"
|
|
Text="Hyosung -- Seyounth Auto" />
|
|
</DockPanel>
|
|
</materialDesign:ColorZone>
|
|
<materialDesign:Card Grid.Row="1">
|
|
<TabControl
|
|
x:Name="MenuTab"
|
|
materialDesign:ColorZoneAssist.Mode="Standard"
|
|
materialDesign:ElevationAssist.Elevation="Dp8"
|
|
Style="{StaticResource MaterialDesignNavigationRailTabControl}">
|
|
<TabItem x:Name="Home">
|
|
<TabItem.Header>
|
|
<StackPanel
|
|
Width="auto"
|
|
Height="auto">
|
|
<materialDesign:PackIcon
|
|
Width="24"
|
|
Height="24"
|
|
HorizontalAlignment="Center"
|
|
Kind="Home" />
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
Text="仪表盘" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<Frame Padding="16" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" x:Name="HomeFrame" />
|
|
</TabItem>
|
|
<TabItem x:Name="VarietyTabItem">
|
|
<TabItem.Header>
|
|
<StackPanel
|
|
Width="auto"
|
|
Height="auto">
|
|
<materialDesign:PackIcon
|
|
Width="24"
|
|
Height="24"
|
|
HorizontalAlignment="Center"
|
|
Kind="ListBox" />
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
Text="产品信息" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
<Frame Padding="16" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" x:Name="VarietyFrame" />
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<StackPanel
|
|
Width="auto"
|
|
Height="auto">
|
|
<materialDesign:PackIcon
|
|
Width="24"
|
|
Height="24"
|
|
HorizontalAlignment="Center"
|
|
Kind="Info" />
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
Text="运行状态" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
</TabItem>
|
|
<TabItem>
|
|
<TabItem.Header>
|
|
<StackPanel
|
|
Width="auto"
|
|
Height="auto">
|
|
<materialDesign:PackIcon
|
|
Width="24"
|
|
Height="24"
|
|
HorizontalAlignment="Center"
|
|
Kind="Settings" />
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
Text="系统设置" />
|
|
</StackPanel>
|
|
</TabItem.Header>
|
|
</TabItem>
|
|
</TabControl>
|
|
</materialDesign:Card>
|
|
</Grid>
|
|
</Border>
|
|
</Window> |