aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-18 11:36:30 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-18 11:36:30 +0300
commit647548244947e71aedb0770be0b12bd74bcf4c93 (patch)
tree85894320ebafc29ac5cd443cf9c666b697acddd7 /Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs
parent51f5ba90ccdba8793a0ce600a8c42264d3770623 (diff)
downloadTango-647548244947e71aedb0770be0b12bd74bcf4c93.tar.gz
Tango-647548244947e71aedb0770be0b12bd74bcf4c93.zip
Implemented manipulation delta on TouchNotificationBar.
Implemented touch device detection.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/MainWindow.xaml.cs15
1 files changed, 9 insertions, 6 deletions
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;
+ }
}
}
}