|
@@ -8,6 +8,7 @@
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
|
|
xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
|
|
|
xmlns:local="clr-namespace:TeamAAS_VP"
|
|
xmlns:local="clr-namespace:TeamAAS_VP"
|
|
|
|
|
+ xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
|
|
|
xmlns:converter="clr-namespace:TeamAAS_VP.ValueConverter"
|
|
xmlns:converter="clr-namespace:TeamAAS_VP.ValueConverter"
|
|
|
xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
|
xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
|
|
lex:LocalizeDictionary.DesignCulture="zh-CN"
|
|
lex:LocalizeDictionary.DesignCulture="zh-CN"
|
|
@@ -30,6 +31,56 @@
|
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
|
<converter:NavigationStateConverter x:Key="_NavigationState" />
|
|
<converter:NavigationStateConverter x:Key="_NavigationState" />
|
|
|
<converter:NavigationStateConverter1 x:Key="_NavigationState1" />
|
|
<converter:NavigationStateConverter1 x:Key="_NavigationState1" />
|
|
|
|
|
+ <!-- 普通状态背景 -->
|
|
|
|
|
+ <SolidColorBrush x:Key="ModeNormalBrush" Color="White" />
|
|
|
|
|
+ <!-- 生产模式背景 -->
|
|
|
|
|
+ <SolidColorBrush x:Key="ModeAutoBrush" Color="Green" />
|
|
|
|
|
+ <!-- 调机模式背景 -->
|
|
|
|
|
+ <SolidColorBrush x:Key="ModeManualBrush" Color="Orange" />
|
|
|
|
|
+ <!-- 流线模式背景 -->
|
|
|
|
|
+ <SolidColorBrush x:Key="ModeClearBrush" Color="Yellow" />
|
|
|
|
|
+ <!-- 生产卡片样式 -->
|
|
|
|
|
+ <Style x:Key="AutoModeCardStyle" TargetType="materialDesign:Card">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeNormalBrush}" />
|
|
|
|
|
+ <Setter Property="Margin" Value="6,0" />
|
|
|
|
|
+ <Setter Property="MinWidth" Value="64" />
|
|
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
+ <Style.Triggers>
|
|
|
|
|
+ <DataTrigger Binding="{Binding management.CurrentDisplayMode}" Value="{x:Static enums:RunDisplayMode.Auto}">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeAutoBrush}" />
|
|
|
|
|
+ </DataTrigger>
|
|
|
|
|
+ </Style.Triggers>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 调机卡片样式 -->
|
|
|
|
|
+ <Style x:Key="ManualModeCardStyle" TargetType="materialDesign:Card">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeNormalBrush}" />
|
|
|
|
|
+ <Setter Property="Margin" Value="6,0" />
|
|
|
|
|
+ <Setter Property="MinWidth" Value="64" />
|
|
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
+ <Style.Triggers>
|
|
|
|
|
+ <DataTrigger Binding="{Binding management.CurrentDisplayMode}" Value="{x:Static enums:RunDisplayMode.Manual}">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeManualBrush}" />
|
|
|
|
|
+ </DataTrigger>
|
|
|
|
|
+ </Style.Triggers>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 流线卡片样式 -->
|
|
|
|
|
+ <Style x:Key="ClearModeCardStyle" TargetType="materialDesign:Card">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeNormalBrush}" />
|
|
|
|
|
+ <Setter Property="Margin" Value="6,0" />
|
|
|
|
|
+ <Setter Property="MinWidth" Value="64" />
|
|
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
+ <Style.Triggers>
|
|
|
|
|
+ <DataTrigger Binding="{Binding management.CurrentDisplayMode}" Value="{x:Static enums:RunDisplayMode.Clear}">
|
|
|
|
|
+ <Setter Property="Background" Value="{StaticResource ModeClearBrush}" />
|
|
|
|
|
+ </DataTrigger>
|
|
|
|
|
+ </Style.Triggers>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+
|
|
|
</Window.Resources>
|
|
</Window.Resources>
|
|
|
<b:Interaction.Triggers>
|
|
<b:Interaction.Triggers>
|
|
|
<b:EventTrigger EventName="Loaded">
|
|
<b:EventTrigger EventName="Loaded">
|
|
@@ -49,6 +100,10 @@
|
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Grid>
|
|
<Grid>
|
|
|
|
|
+ <Grid.RowDefinitions>
|
|
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
|
|
+ </Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100" />
|
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100" />
|
|
@@ -60,136 +115,322 @@
|
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100" />
|
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100" />
|
|
|
</Grid.ColumnDefinitions>
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Grid.Resources>
|
|
|
|
|
-
|
|
|
|
|
- </Grid.Resources>
|
|
|
|
|
- <Button Grid.Column="0"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 运行窗口}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=0}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Home">
|
|
|
|
|
- <materialDesign:PackIcon Kind="HomeOutline"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=0}" />
|
|
|
|
|
- </Button>
|
|
|
|
|
- <Button Grid.Column="1"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 产品管理}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=1}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Products">
|
|
|
|
|
- <materialDesign:PackIcon Kind="FileTableBoxOutline"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=1}" />
|
|
|
|
|
|
|
+ <Grid.Resources />
|
|
|
|
|
+ <!--<TextBlock Text="运行窗口" HorizontalAlignment="Center"/>-->
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="0"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=0}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Home"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 运行窗口}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=0}"
|
|
|
|
|
+ Kind="HomeOutline" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 运行窗口}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button Grid.Column="2"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 调试}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=2}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Debug">
|
|
|
|
|
- <materialDesign:PackIcon Kind="WrenchOutline"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=2}" />
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=1}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Products"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 产品管理}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=1}"
|
|
|
|
|
+ Kind="FileTableBoxOutline" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 产品管理}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button Grid.Column="3"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 设置}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=3}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Setting">
|
|
|
|
|
- <materialDesign:PackIcon Kind="Cog"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=3}" />
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="2"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=2}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Debug"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 调试}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=2}"
|
|
|
|
|
+ Kind="WrenchOutline" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 调试}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <materialDesign:Card Grid.Column="4"
|
|
|
|
|
- Margin="10"
|
|
|
|
|
- Background="White"
|
|
|
|
|
- UniformCornerRadius="15">
|
|
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
|
- <TextBlock Text="{Binding MyTitle}"
|
|
|
|
|
- FontSize="{DynamicResource Font.Size.Title1}"
|
|
|
|
|
- HorizontalAlignment="Center"
|
|
|
|
|
- Margin="280,0,0,0"
|
|
|
|
|
- VerticalAlignment="Center"
|
|
|
|
|
- FontWeight="Bold"/>
|
|
|
|
|
- <materialDesign:Card HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50,10" Background="{Binding management.RunModelBackground}" >
|
|
|
|
|
- <TextBlock Text="{lex:Loc 生产}" FontSize="22" Margin="8" />
|
|
|
|
|
- </materialDesign:Card >
|
|
|
|
|
- <materialDesign:Card HorizontalAlignment="Center" VerticalAlignment="Center" Margin="20,10" Background="{Binding management.ManualModeBackground}" >
|
|
|
|
|
- <TextBlock Text="{lex:Loc 调试}" FontSize="22" Margin="8"/>
|
|
|
|
|
- </materialDesign:Card>
|
|
|
|
|
- <materialDesign:Card HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50,10" Background="{Binding management.ClearModeBackground}" >
|
|
|
|
|
- <TextBlock Text="{lex:Loc 流线}" FontSize="22" Margin="8" />
|
|
|
|
|
- </materialDesign:Card>
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="3"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=3}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Setting"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 设置}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=3}"
|
|
|
|
|
+ Kind="Cog" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 设置}" />
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+ <materialDesign:Card
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="4"
|
|
|
|
|
+ Margin="10"
|
|
|
|
|
+ Background="White"
|
|
|
|
|
+ UniformCornerRadius="15">
|
|
|
|
|
+ <Grid Margin="12,8">
|
|
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
|
|
+ <ColumnDefinition Width="150" />
|
|
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
+
|
|
|
|
|
+ <Border
|
|
|
|
|
+ Grid.Column="0"
|
|
|
|
|
+ MinWidth="100"
|
|
|
|
|
+ Padding="10,6"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ BorderBrush="#D6DDE8"
|
|
|
|
|
+ BorderThickness="1"
|
|
|
|
|
+ CornerRadius="8">
|
|
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,4"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Body3}"
|
|
|
|
|
+ FontWeight="SemiBold"
|
|
|
|
|
+ Text="{lex:Loc SettingView_Language_Text}" />
|
|
|
|
|
+ <ComboBox
|
|
|
|
|
+ MinWidth="160"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ SelectedValue="{Binding CurrentLanguage, Mode=TwoWay}"
|
|
|
|
|
+ SelectedValuePath="Tag">
|
|
|
|
|
+ <ComboBoxItem
|
|
|
|
|
+ Content="{lex:Loc SettingView_Language_ChineseSimplified}"
|
|
|
|
|
+ Tag="{x:Static enums:Language.ChineseSimplified}" />
|
|
|
|
|
+ <ComboBoxItem
|
|
|
|
|
+ Content="{lex:Loc SettingView_Language_ChineseTraditional}"
|
|
|
|
|
+ Tag="{x:Static enums:Language.ChineseTraditional}" />
|
|
|
|
|
+ <ComboBoxItem
|
|
|
|
|
+ Content="{lex:Loc SettingView_Language_English}"
|
|
|
|
|
+ Tag="{x:Static enums:Language.English}" />
|
|
|
|
|
+ <ComboBoxItem
|
|
|
|
|
+ Content="{lex:Loc SettingView_Language_Japanese}"
|
|
|
|
|
+ Tag="{x:Static enums:Language.Japanese}" />
|
|
|
|
|
+ <ComboBoxItem
|
|
|
|
|
+ Content="{lex:Loc SettingView_Language_Vietnamese}"
|
|
|
|
|
+ Tag="{x:Static enums:Language.Vietnamese}" />
|
|
|
|
|
+ </ComboBox>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Border>
|
|
|
|
|
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Grid.Column="1"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="{DynamicResource Font.Size.Title1}"
|
|
|
|
|
+ FontWeight="Bold"
|
|
|
|
|
+ TextAlignment="Center"
|
|
|
|
|
+ Text="{Binding MyTitle}" />
|
|
|
|
|
+
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ Grid.Column="2"
|
|
|
|
|
+ HorizontalAlignment="Right"
|
|
|
|
|
+ Orientation="Horizontal">
|
|
|
|
|
+ <materialDesign:Card Style="{StaticResource AutoModeCardStyle}" Margin="20,0">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="8"
|
|
|
|
|
+ FontSize="22"
|
|
|
|
|
+ Text="{lex:Loc 生产}" />
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Style="{StaticResource ManualModeCardStyle}" Margin="20,0">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="8"
|
|
|
|
|
+ FontSize="22"
|
|
|
|
|
+ Text="{lex:Loc 调试}" />
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+
|
|
|
|
|
+ <materialDesign:Card Style="{StaticResource ClearModeCardStyle}" Margin="20,0">
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="8"
|
|
|
|
|
+ FontSize="22"
|
|
|
|
|
+ Text="{lex:Loc 流线}" />
|
|
|
|
|
+ </materialDesign:Card>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Grid>
|
|
|
|
|
|
|
|
</materialDesign:Card>
|
|
</materialDesign:Card>
|
|
|
- <Button Grid.Column="5"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 图片}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=5}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Image">
|
|
|
|
|
- <materialDesign:PackIcon Kind="Image"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=5}" />
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="5"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=5}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Image"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 图片}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=5}"
|
|
|
|
|
+ Kind="Image" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 图片}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button Grid.Column="6"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 校准}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=6}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Calib">
|
|
|
|
|
- <materialDesign:PackIcon Kind="CrosshairsGps"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=6}" />
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="6"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=6}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Calib"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 校准}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=6}"
|
|
|
|
|
+ Kind="CrosshairsGps" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 校准}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button Grid.Column="7"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 统计}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=7}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="Statistics">
|
|
|
|
|
- <materialDesign:PackIcon Kind="ChartBellCurveCumulative"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=7}" />
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="7"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=7}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="Statistics"
|
|
|
|
|
+ Cursor="Hand"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 统计}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=7}"
|
|
|
|
|
+ Kind="ChartBellCurveCumulative" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 统计}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
</Button>
|
|
</Button>
|
|
|
- <Button Grid.Column="8"
|
|
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
- ToolTip="{lex:Loc 用户}"
|
|
|
|
|
- Width="90"
|
|
|
|
|
- Height="90"
|
|
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=8}"
|
|
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
|
|
- CommandParameter="User">
|
|
|
|
|
- <materialDesign:PackIcon Kind="AccountMultipleOutline"
|
|
|
|
|
- Width="70"
|
|
|
|
|
- Height="70"
|
|
|
|
|
- Foreground="{Binding NavigationIndex,Converter={StaticResource _NavigationState1},ConverterParameter=8}" />
|
|
|
|
|
|
|
+ <Button
|
|
|
|
|
+ Grid.Row="1"
|
|
|
|
|
+ Grid.Column="8"
|
|
|
|
|
+ Width="90"
|
|
|
|
|
+ Height="90"
|
|
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=8}"
|
|
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
|
|
+ CommandParameter="User"
|
|
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
+ ToolTip="{lex:Loc 用户}">
|
|
|
|
|
+ <StackPanel
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ Orientation="Vertical">
|
|
|
|
|
+ <materialDesign:PackIcon
|
|
|
|
|
+ Width="50"
|
|
|
|
|
+ Height="50"
|
|
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=8}"
|
|
|
|
|
+ Kind="AccountMultipleOutline" />
|
|
|
|
|
+ <TextBlock
|
|
|
|
|
+ Margin="0,0,0,5"
|
|
|
|
|
+ HorizontalAlignment="Center"
|
|
|
|
|
+ VerticalAlignment="Center"
|
|
|
|
|
+ FontSize="12"
|
|
|
|
|
+ Foreground="Black"
|
|
|
|
|
+ Text="{lex:Loc 用户}" />
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+
|
|
|
</Button>
|
|
</Button>
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|