|
|
@@ -1,26 +1,28 @@
|
|
|
-<Window x:Class="TeamAAS_VP.Views.MainWindowView"
|
|
|
- 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"
|
|
|
- xmlns:prism="http://prismlibrary.com/"
|
|
|
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
|
|
|
- xmlns:local="clr-namespace:TeamAAS_VP"
|
|
|
- xmlns:converter="clr-namespace:TeamAAS_VP.ValueConverter"
|
|
|
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
|
|
- lex:LocalizeDictionary.DesignCulture="zh-CN"
|
|
|
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
|
|
|
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
|
|
|
- mc:Ignorable="d"
|
|
|
- d:DataContext="{d:DesignInstance Type=vm:MainWindowViewModel}"
|
|
|
- d:Height="768"
|
|
|
- d:Width="1024"
|
|
|
- WindowState="Maximized"
|
|
|
- WindowStartupLocation="CenterScreen"
|
|
|
- Closing="Window_Closing"
|
|
|
- FontFamily="{DynamicResource DefaultFont}">
|
|
|
+<Window
|
|
|
+ x:Class="TeamAAS_VP.Views.MainWindowView"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
+ xmlns:converter="clr-namespace:TeamAAS_VP.ValueConverter"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:lex="http://wpflocalizeextension.codeplex.com"
|
|
|
+ xmlns:local="clr-namespace:TeamAAS_VP"
|
|
|
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
|
|
|
+ xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
|
|
|
+ d:DataContext="{d:DesignInstance Type=vm:MainWindowViewModel}"
|
|
|
+ d:Height="768"
|
|
|
+ d:Width="1024"
|
|
|
+ lex:LocalizeDictionary.DesignCulture="zh-CN"
|
|
|
+ lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
|
|
|
+ lex:ResxLocalizationProvider.DefaultDictionary="Lang"
|
|
|
+ Closing="Window_Closing"
|
|
|
+ FontFamily="{DynamicResource DefaultFont}"
|
|
|
+ WindowStartupLocation="CenterScreen"
|
|
|
+ WindowState="Maximized"
|
|
|
+ mc:Ignorable="d">
|
|
|
<Window.Title>
|
|
|
<MultiBinding StringFormat=" {0} {1}">
|
|
|
<Binding Path="CompanyTitle" />
|
|
|
@@ -30,6 +32,57 @@
|
|
|
<Window.Resources>
|
|
|
<converter:NavigationStateConverter x:Key="_NavigationState" />
|
|
|
<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="50,10" />
|
|
|
+ <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="20,10" />
|
|
|
+ <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="50,10" />
|
|
|
+ <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>
|
|
|
<b:Interaction.Triggers>
|
|
|
<b:EventTrigger EventName="Loaded">
|
|
|
@@ -39,8 +92,7 @@
|
|
|
<b:InvokeCommandAction Command="{Binding ClosedCommand}" />
|
|
|
</b:EventTrigger>
|
|
|
</b:Interaction.Triggers>
|
|
|
- <materialDesign:DialogHost DialogTheme="Inherit"
|
|
|
- Identifier="RootDialog">
|
|
|
+ <materialDesign:DialogHost DialogTheme="Inherit" Identifier="RootDialog">
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="100" />
|
|
|
@@ -63,141 +115,167 @@
|
|
|
<ColumnDefinition Width="100" />
|
|
|
<ColumnDefinition Width="100" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Grid.Resources>
|
|
|
-
|
|
|
- </Grid.Resources>
|
|
|
+ <Grid.Resources />
|
|
|
<!--<TextBlock Text="运行窗口" HorizontalAlignment="Center"/>-->
|
|
|
- <Button Grid.Column="0"
|
|
|
- Grid.Row="1"
|
|
|
- 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
|
|
|
+ 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 运行窗口}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=0}"
|
|
|
+ Kind="HomeOutline" />
|
|
|
</Button>
|
|
|
- <Button Grid.Column="1"
|
|
|
- Grid.Row="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}" />
|
|
|
+ <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 产品管理}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=1}"
|
|
|
+ Kind="FileTableBoxOutline" />
|
|
|
</Button>
|
|
|
- <Button Grid.Column="2"
|
|
|
- Grid.Row="1"
|
|
|
- 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="2"
|
|
|
+ Width="90"
|
|
|
+ Height="90"
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=2}"
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
+ CommandParameter="Debug"
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
+ ToolTip="{lex:Loc 调试}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=2}"
|
|
|
+ Kind="WrenchOutline" />
|
|
|
</Button>
|
|
|
- <Button Grid.Column="3"
|
|
|
- Grid.Row="1"
|
|
|
- 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="3"
|
|
|
+ Width="90"
|
|
|
+ Height="90"
|
|
|
+ Background="{Binding NavigationIndex, Converter={StaticResource _NavigationState}, ConverterParameter=3}"
|
|
|
+ Command="{Binding NavigationCommand}"
|
|
|
+ CommandParameter="Setting"
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
+ ToolTip="{lex:Loc 设置}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=3}"
|
|
|
+ Kind="Cog" />
|
|
|
</Button>
|
|
|
- <materialDesign:Card Grid.Column="4"
|
|
|
- Margin="10"
|
|
|
- Grid.Row="1"
|
|
|
- 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
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="4"
|
|
|
+ Margin="10"
|
|
|
+ Background="White"
|
|
|
+ UniformCornerRadius="15">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
|
+ <TextBlock
|
|
|
+ Margin="280,0,0,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="{DynamicResource Font.Size.Title1}"
|
|
|
+ FontWeight="Bold"
|
|
|
+ Text="{Binding MyTitle}" />
|
|
|
+ <materialDesign:Card Style="{StaticResource AutoModeCardStyle}">
|
|
|
+ <TextBlock
|
|
|
+ Margin="8"
|
|
|
+ FontSize="22"
|
|
|
+ Text="{lex:Loc 生产}" />
|
|
|
</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 Style="{StaticResource ManualModeCardStyle}">
|
|
|
+ <TextBlock
|
|
|
+ Margin="8"
|
|
|
+ FontSize="22"
|
|
|
+ Text="{lex:Loc 调机}" />
|
|
|
+ </materialDesign:Card>
|
|
|
+
|
|
|
+ <materialDesign:Card Style="{StaticResource ClearModeCardStyle}">
|
|
|
+ <TextBlock
|
|
|
+ Margin="8"
|
|
|
+ FontSize="22"
|
|
|
+ Text="{lex:Loc 流线}" />
|
|
|
</materialDesign:Card>
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
</materialDesign:Card>
|
|
|
- <Button Grid.Column="5"
|
|
|
- Grid.Row="1"
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
- ToolTip="{lex:Loc 校准}"
|
|
|
- Width="90"
|
|
|
- Height="90"
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=5}"
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
- CommandParameter="Calib">
|
|
|
- <materialDesign:PackIcon Kind="CrosshairsGps"
|
|
|
- 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="Calib"
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
+ ToolTip="{lex:Loc 校准}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=5}"
|
|
|
+ Kind="CrosshairsGps" />
|
|
|
</Button>
|
|
|
- <Button Grid.Column="6"
|
|
|
- Grid.Row="1"
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
- ToolTip="{lex:Loc 统计}"
|
|
|
- Width="90"
|
|
|
- Height="90"
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=6}"
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
- CommandParameter="Statistics">
|
|
|
- <materialDesign:PackIcon Kind="ChartBellCurveCumulative"
|
|
|
- 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="Statistics"
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
+ ToolTip="{lex:Loc 统计}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=6}"
|
|
|
+ Kind="ChartBellCurveCumulative" />
|
|
|
</Button>
|
|
|
- <Button Grid.Column="7"
|
|
|
- Grid.Row="1"
|
|
|
- Style="{StaticResource MaterialDesignIconButton}"
|
|
|
- ToolTip="{lex:Loc 用户}"
|
|
|
- Width="90"
|
|
|
- Height="90"
|
|
|
- Background="{Binding NavigationIndex,Converter={StaticResource _NavigationState},ConverterParameter=7}"
|
|
|
- Command="{Binding NavigationCommand}"
|
|
|
- CommandParameter="User">
|
|
|
- <materialDesign:PackIcon Kind="AccountMultipleOutline"
|
|
|
- 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="User"
|
|
|
+ Style="{StaticResource MaterialDesignIconButton}"
|
|
|
+ ToolTip="{lex:Loc 用户}">
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Width="70"
|
|
|
+ Height="70"
|
|
|
+ Foreground="{Binding NavigationIndex, Converter={StaticResource _NavigationState1}, ConverterParameter=7}"
|
|
|
+ Kind="AccountMultipleOutline" />
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
|
|
|
- <ContentControl Grid.Row="1"
|
|
|
- prism:RegionManager.RegionName="MainRegionContext" />
|
|
|
- <!--状态栏-->
|
|
|
- <StatusBar x:Name="status"
|
|
|
- Grid.Row="2">
|
|
|
- <ItemsControl ItemsSource="{Binding Status}" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
+ <ContentControl Grid.Row="1" prism:RegionManager.RegionName="MainRegionContext" />
|
|
|
+ <!-- 状态栏 -->
|
|
|
+ <StatusBar x:Name="status" Grid.Row="2">
|
|
|
+ <ItemsControl
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ ItemsSource="{Binding Status}">
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
<ItemsPanelTemplate>
|
|
|
<VirtualizingStackPanel Orientation="Horizontal" />
|
|
|
@@ -205,26 +283,28 @@
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <TextBlock Text="{Binding Message,Mode=TwoWay}"
|
|
|
- MinWidth="40"
|
|
|
- Foreground="Black"
|
|
|
- Background="{Binding Background,Mode=TwoWay}"
|
|
|
- Margin="4,0"
|
|
|
- VerticalAlignment="Center"
|
|
|
- FontSize="{DynamicResource Font.Size. Font.Size.Captions4}"
|
|
|
- Opacity="0.7"/>
|
|
|
-
|
|
|
+ <TextBlock
|
|
|
+ MinWidth="40"
|
|
|
+ Margin="4,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Background="{Binding Background, Mode=TwoWay}"
|
|
|
+ FontSize="{DynamicResource Font.Size. Font.Size.Captions4}"
|
|
|
+ Foreground="Black"
|
|
|
+ Opacity="0.7"
|
|
|
+ Text="{Binding Message, Mode=TwoWay}" />
|
|
|
+
|
|
|
</DataTemplate>
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
</ItemsControl>
|
|
|
</StatusBar>
|
|
|
- <materialDesign:Snackbar Grid.Row="1"
|
|
|
- x:Name="SnackbarSeven"
|
|
|
- Opacity="0.8"
|
|
|
- HorizontalContentAlignment="Center"
|
|
|
- FontSize="{DynamicResource Font.Size.Body1}"
|
|
|
- MessageQueue="{materialDesign:MessageQueue}"
|
|
|
- VerticalAlignment="Bottom" />
|
|
|
+ <materialDesign:Snackbar
|
|
|
+ x:Name="SnackbarSeven"
|
|
|
+ Grid.Row="1"
|
|
|
+ VerticalAlignment="Bottom"
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
+ FontSize="{DynamicResource Font.Size.Body1}"
|
|
|
+ MessageQueue="{materialDesign:MessageQueue}"
|
|
|
+ Opacity="0.8" />
|
|
|
</Grid>
|
|
|
</materialDesign:DialogHost>
|
|
|
|