aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views
diff options
context:
space:
mode:
authorRoy <Roy.mail.net@gmail.com>2022-10-23 21:04:22 +0300
committerRoy <Roy.mail.net@gmail.com>2022-10-23 21:04:22 +0300
commit5aadd4125244d13dfdffbc27e453eb81cbbf0b57 (patch)
tree77aeae6042af573a7590785bad146b8f3314bc08 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views
parent00859f5f1ee871007120d4fa9dc534fb67be242c (diff)
downloadTango-5aadd4125244d13dfdffbc27e453eb81cbbf0b57.tar.gz
Tango-5aadd4125244d13dfdffbc27e453eb81cbbf0b57.zip
PPC Screen Saver.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml17
1 files changed, 16 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml
index 2e36347a3..0d59961cc 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MainView.xaml
@@ -13,6 +13,7 @@
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
xmlns:components="clr-namespace:Tango.Touch.Components;assembly=Tango.Touch"
xmlns:localConverters="clr-namespace:Tango.PPC.UI.Converters"
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
mc:Ignorable="d"
d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
@@ -20,7 +21,13 @@
<localConverters:ItemBaseConverter x:Key="ItemBaseConverter" />
</UserControl.Resources>
- <Grid>
+ <Grid Background="Transparent">
+ <i:Interaction.Triggers>
+ <i:EventTrigger EventName="PreviewMouseUp">
+ <i:InvokeCommandAction Command="{Binding ScreenSaverExitCommand}" />
+ </i:EventTrigger>
+ </i:Interaction.Triggers>
+
<touch:TouchPanel
HasMessageBox="{Binding NotificationProvider.HasMessageBox}"
CurrentMessageBox="{Binding NotificationProvider.CurrentMessageBox}"
@@ -147,5 +154,13 @@
<local:RestartingView></local:RestartingView>
</controls:NavigationControl>
</touch:TouchPanel>
+
+ <Grid Visibility="{Binding IsScreenSaverOn,Converter={StaticResource BooleanToVisibilityConverter}}" Background="Black">
+ <i:Interaction.Triggers>
+ <i:EventTrigger EventName="PreviewMouseUp">
+ <i:InvokeCommandAction Command="{Binding ScreenSaverExitCommand}" />
+ </i:EventTrigger>
+ </i:Interaction.Triggers>
+ </Grid>
</Grid>
</UserControl>