From 647548244947e71aedb0770be0b12bd74bcf4c93 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 18 Jun 2018 11:36:30 +0300 Subject: Implemented manipulation delta on TouchNotificationBar. Implemented touch device detection. --- .../Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs index 26fe06c5f..ecb37654d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs @@ -1,7 +1,9 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Text; +using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; @@ -13,6 +15,7 @@ using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; +using Tango.Touch.Helpers; namespace Tango.PPC.UI { @@ -29,12 +32,12 @@ namespace Tango.PPC.UI InitializeComponent(); - //WindowStartupLocation = WindowStartupLocation.Manual; - //var lastMonitor = Screen.AllScreens.LastOrDefault(); - //Left = lastMonitor.Bounds.Left; - //Top = lastMonitor.Bounds.Top; - //Width = lastMonitor.Bounds.Width; - //Height = lastMonitor.Bounds.Height; + if (TouchHelper.IsTouchEnabled()) + { + WindowStyle = WindowStyle.None; + ResizeMode = ResizeMode.NoResize; + WindowState = WindowState.Maximized; + } } } } -- cgit v1.3.1