diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 14:45:01 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 14:45:01 +0300 |
| commit | 1db87b6d19c6148351b37a32e8ff2b127768e945 (patch) | |
| tree | 3cf05c7a2dff684da139603e87a86aa4743ea5c8 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications | |
| parent | 6f9da1e19024c7c65d7dbd6038cd34776453f9dc (diff) | |
| download | Tango-1db87b6d19c6148351b37a32e8ff2b127768e945.tar.gz Tango-1db87b6d19c6148351b37a32e8ff2b127768e945.zip | |
Embedded Touch Panel in PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications')
3 files changed, 1 insertions, 74 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs index cbdbab848..fc1ba894f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs @@ -13,6 +13,7 @@ using System.Windows.Media.Imaging; using Tango.SharedUI.Helpers; using System.Timers; using Tango.Core.Commands; +using Tango.Touch.Controls; namespace Tango.PPC.UI.Notifications { diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml deleted file mode 100644 index b1fe7ddcc..000000000 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml +++ /dev/null @@ -1,45 +0,0 @@ -<UserControl x:Class="Tango.PanelPC.UI.Notifications.MessageBox" - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:fa="http://schemas.fontawesome.io/icons/" - xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch" - xmlns:vm="clr-namespace:Tango.PPC.Common.Notifications;assembly=Tango.PPC.Common" - xmlns:local="clr-namespace:Tango.PanelPC.UI.Notifications" - mc:Ignorable="d" - d:DesignHeight="400" d:DesignWidth="800" d:DataContext="{d:DesignInstance vm:MessageBoxVM,IsDesignTimeCreatable=False}"> - <Grid> - <Border Background="{StaticResource TangoPrimaryBackgroundBrush}" CornerRadius="10" Margin="10"> - <Border.Effect> - <DropShadowEffect BlurRadius="10" /> - </Border.Effect> - - <Grid ClipToBounds="True"> - <Grid.ColumnDefinitions> - <ColumnDefinition Width="100"/> - <ColumnDefinition Width="75*"/> - </Grid.ColumnDefinitions> - <Grid.RowDefinitions> - <RowDefinition Height="100" /> - <RowDefinition Height="1*" /> - <RowDefinition Height="70"/> - </Grid.RowDefinitions> - - <Image Grid.Row="0" Source="{Binding Icon}" Margin="20" /> - <TextBlock Grid.Column="1" Text="{Binding Title,TargetNullValue=Confirm}" Foreground="{Binding Brush,TargetNullValue={StaticResource TangoPrimaryAccentBrush}}" VerticalAlignment="Center" Margin="10" Style="{StaticResource TangoMessageBoxTitle}"></TextBlock> - - <Rectangle Stroke="{Binding Brush}" VerticalAlignment="Bottom" Grid.ColumnSpan="2" StrokeThickness="3" /> - - <TextBlock Grid.Row="1" FontSize="{StaticResource TangoMessageBoxMessageFontSize}" Text="{Binding Message}" VerticalAlignment="Top" Grid.Column="1" TextWrapping="Wrap" Margin="10 20 10 10"></TextBlock> - - <Rectangle Stroke="{StaticResource TangoDividerBrush}" VerticalAlignment="Bottom" Grid.Row="1" Grid.ColumnSpan="2" StrokeThickness="1"/> - - <StackPanel Grid.Column="1" Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal"> - <touch:TouchButton x:Name="btnCancel" Width="180" Margin="2 0" Style="{StaticResource TangoMessageBoxButton}" Command="{Binding CloseCommand}" Visibility="{Binding HasCancel,Converter={StaticResource BooleanToVisibilityConverter}}">CANCEL</touch:TouchButton> - <touch:TouchButton x:Name="btnOK" Width="180" Margin="2 0" Style="{StaticResource TangoMessageBoxButton}" Command="{Binding OKCommand}">OK</touch:TouchButton> - </StackPanel> - </Grid> - </Border> - </Grid> -</UserControl> diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml.cs deleted file mode 100644 index a13cfe81f..000000000 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/MessageBox.xaml.cs +++ /dev/null @@ -1,29 +0,0 @@ -using FontAwesome.WPF; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; - -namespace Tango.PanelPC.UI.Notifications -{ - /// <summary> - /// Interaction logic for MessageBox.xaml - /// </summary> - public partial class MessageBox : UserControl - { - public MessageBox() - { - InitializeComponent(); - } - } -} |
