diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-18 11:36:30 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-18 11:36:30 +0300 |
| commit | 647548244947e71aedb0770be0b12bd74bcf4c93 (patch) | |
| tree | 85894320ebafc29ac5cd443cf9c666b697acddd7 /Software/Visual_Studio/PPC | |
| parent | 51f5ba90ccdba8793a0ce600a8c42264d3770623 (diff) | |
| download | Tango-647548244947e71aedb0770be0b12bd74bcf4c93.tar.gz Tango-647548244947e71aedb0770be0b12bd74bcf4c93.zip | |
Implemented manipulation delta on TouchNotificationBar.
Implemented touch device detection.
Diffstat (limited to 'Software/Visual_Studio/PPC')
3 files changed, 12 insertions, 9 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; + } } } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml index 7ce525337..ccb6618e7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/NotificationItems/EmptyCartridgesNotificationView.xaml @@ -8,7 +8,7 @@ d:DesignHeight="60" d:DesignWidth="400" MinHeight="50" Background="Transparent" Foreground="#FF7777" d:DataContext="{d:DesignInstance Type=local:EmptyCartridgesNotification, IsDesignTimeCreatable=True}"> <Grid Margin="10"> <DockPanel> - <Image Source="/Images/warning-test.png" Width="24" /> + <Image Source="/Images/warning-test.png" Margin="5" /> <TextBlock Margin="10 0 0 0" VerticalAlignment="Center" TextWrapping="Wrap" Text="{Binding Message}"></TextBlock> </DockPanel> </Grid> 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 524550b94..a3f7d70e1 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml @@ -19,12 +19,12 @@ <localConverters:NotificationItemConverter x:Key="NotificationItemConverter" /> </UserControl.Resources> - <touch:TouchNotificationBar HasNotifications="{Binding NotificationProvider.HasNotificationItems}" Notifications="{Binding NotificationProvider.NotificationItems}"> + <touch:TouchNotificationBar MinNotificationHeight="60" HasNotifications="{Binding NotificationProvider.HasNotificationItems}" Notifications="{Binding NotificationProvider.NotificationItems}"> <touch:TouchNotificationBar.NotificationTemplate> <DataTemplate> <Grid> <ContentControl Content="{Binding Converter={StaticResource NotificationItemConverter}}" /> - <touch:TouchIconButton Background="Transparent" Padding="20" Style="{StaticResource TangoRoundTouchIconButton}" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.NotificationProvider.PopNotificationCommand}" CommandParameter="{Binding}" HorizontalAlignment="Right" Width="60" Icon="Close" Foreground="White" /> + <touch:TouchIconButton Background="Transparent" Padding="20" Style="{StaticResource TangoRoundTouchIconButton}" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.NotificationProvider.PopNotificationCommand}" CommandParameter="{Binding}" HorizontalAlignment="Right" MaxHeight="60" Width="{Binding RelativeSource={RelativeSource Self},Path=ActualHeight}" Icon="Close" Foreground="White" /> </Grid> </DataTemplate> </touch:TouchNotificationBar.NotificationTemplate> |
