aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-14 07:06:56 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-14 07:06:56 +0300
commiteed7de9b180f1c4094c1e62c61a672971bb4ab03 (patch)
treea1c61ad02c664404470b15327856fc4647760d23 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml
parent016039a7f69def93c6c85a4485a88085f2f51478 (diff)
downloadTango-eed7de9b180f1c4094c1e62c61a672971bb4ab03.tar.gz
Tango-eed7de9b180f1c4094c1e62c61a672971bb4ab03.zip
Added waste/ink filling progress icons.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml20
1 files changed, 17 insertions, 3 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml
index 8b701156a..9e774ab60 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml
@@ -270,7 +270,7 @@
<DockPanel>
<Border BorderThickness="0 0 1 0" BorderBrush="{StaticResource TangoDividerBrush}">
<touch:TouchHamburgerButton IsHitTestVisible="{Binding NavigationManager.IsNavigating,Converter={StaticResource BooleanInverseConverter}}" IsEnabled="{Binding NavigationManager.IsBackEnabled}" Width="100" Height="100" Padding="15" Command="{Binding MenuOrBackCommand}" EnableDropShadow="False" Foreground="{StaticResource TangoPrimaryAccentBrush}" IsBack="{Binding NavigationManager.CanNavigateBack}"/>
-
+
</Border>
<Grid DockPanel.Dock="Right" Margin="0 0 20 0">
<StackPanel Orientation="Horizontal">
@@ -331,9 +331,23 @@
<DataTemplate>
<Border Margin="0 5 0 0" Visibility="{Binding InProgress,Converter={StaticResource BooleanToVisibilityConverter}}">
<StackPanel>
- <TextBlock Margin="5 0 0 0" Text="{Binding Message,Mode=OneWay}" FontSize="{StaticResource TangoSmallFontSize}"></TextBlock>
+ <DockPanel Margin="2 0 0 0">
+ <touch:TouchIcon>
+ <touch:TouchIcon.Style>
+ <Style TargetType="touch:TouchIcon" BasedOn="{StaticResource {x:Type touch:TouchIcon}}">
+ <Setter Property="Icon" Value="Recycle"></Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding Status.Cartridge.Slot}" Value="Ink">
+ <Setter Property="Icon" Value="FormatColorFill"></Setter>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </touch:TouchIcon.Style>
+ </touch:TouchIcon>
+ <TextBlock VerticalAlignment="Center" Margin="5 0 0 0" Text="{Binding Message,Mode=OneWay}" FontSize="{StaticResource TangoSmallFontSize}"></TextBlock>
+ </DockPanel>
<touch:TouchProgressBar Foreground="{Binding Brush,Mode=OneWay}" Background="#DBDBDB" Height="3" Margin="0 2 0 0" Minimum="0" Maximum="100" Value="{Binding Status.ProgressPercentage}" />
- </StackPanel>
+ </StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>