aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-25 11:24:33 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-25 11:24:33 +0200
commitf779e2b6f0bb1dedc7644c64651b59e31ce62c00 (patch)
tree8071e764f45d08225b0c8ab3d50b0fb02bdb05f9 /Software
parentdff24e56a8906b8c9b355cf407f25f4b793beafe (diff)
downloadTango-f779e2b6f0bb1dedc7644c64651b59e31ce62c00.tar.gz
Tango-f779e2b6f0bb1dedc7644c64651b59e31ce62c00.zip
Some changes in PPC.
Diffstat (limited to 'Software')
-rw-r--r--Software/Graphics/Mobile/Embroidery.pngbin0 -> 38479 bytes
-rw-r--r--Software/Graphics/Mobile/Knitting.pngbin0 -> 42273 bytes
-rw-r--r--Software/Graphics/Mobile/Sewing.pngbin0 -> 30800 bytes
-rw-r--r--Software/Graphics/Mobile/color_approved.pngbin0 -> 8438 bytes
-rw-r--r--Software/Graphics/Mobile/sample_approved.pngbin0 -> 8832 bytes
-rw-r--r--Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnkbin1471 -> 1455 bytes
-rw-r--r--Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnkbin1532 -> 1516 bytes
-rw-r--r--Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnkbin1464 -> 1448 bytes
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Converters/JobTypeToImageConverter.cs37
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Dialogs/JobTypePickerView.xaml17
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Embroidery.pngbin0 -> 38479 bytes
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Knitting.pngbin0 -> 42273 bytes
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Sewing.pngbin0 -> 30800 bytes
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Tango.PPC.Jobs.csproj12
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml2
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/ViewModels/MainViewVM.cs14
-rw-r--r--Software/Visual_Studio/Tango.Explorer/ExplorerControl.cs6
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs5
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.xaml50
19 files changed, 122 insertions, 21 deletions
diff --git a/Software/Graphics/Mobile/Embroidery.png b/Software/Graphics/Mobile/Embroidery.png
new file mode 100644
index 000000000..d71717835
--- /dev/null
+++ b/Software/Graphics/Mobile/Embroidery.png
Binary files differ
diff --git a/Software/Graphics/Mobile/Knitting.png b/Software/Graphics/Mobile/Knitting.png
new file mode 100644
index 000000000..06c345965
--- /dev/null
+++ b/Software/Graphics/Mobile/Knitting.png
Binary files differ
diff --git a/Software/Graphics/Mobile/Sewing.png b/Software/Graphics/Mobile/Sewing.png
new file mode 100644
index 000000000..51c468eea
--- /dev/null
+++ b/Software/Graphics/Mobile/Sewing.png
Binary files differ
diff --git a/Software/Graphics/Mobile/color_approved.png b/Software/Graphics/Mobile/color_approved.png
new file mode 100644
index 000000000..3fd9868ba
--- /dev/null
+++ b/Software/Graphics/Mobile/color_approved.png
Binary files differ
diff --git a/Software/Graphics/Mobile/sample_approved.png b/Software/Graphics/Mobile/sample_approved.png
new file mode 100644
index 000000000..570ae7b35
--- /dev/null
+++ b/Software/Graphics/Mobile/sample_approved.png
Binary files differ
diff --git a/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk b/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk
index af0746d8a..4241f8fc3 100644
--- a/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk
+++ b/Software/Visual_Studio/Build/Shortcuts/Machine Emulator.lnk
Binary files differ
diff --git a/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk b/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk
index f7f76df37..ad929419f 100644
--- a/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk
+++ b/Software/Visual_Studio/Build/Shortcuts/Machine Studio.lnk
Binary files differ
diff --git a/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk b/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk
index 708d95f7b..7830b33cd 100644
--- a/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk
+++ b/Software/Visual_Studio/Build/Shortcuts/Proto Compiler GUI.lnk
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Converters/JobTypeToImageConverter.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Converters/JobTypeToImageConverter.cs
new file mode 100644
index 000000000..aaa6a5bf2
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Converters/JobTypeToImageConverter.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Data;
+using Tango.BL.Enumerations;
+using Tango.SharedUI.Helpers;
+
+namespace Tango.PPC.Jobs.Converters
+{
+ public class JobTypeToImageConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ JobTypes jobType = (JobTypes)value;
+
+ switch (jobType)
+ {
+ case JobTypes.Embroidery:
+ return ResourceHelper.GetImageFromResources("Images/Embroidery.png");
+ case JobTypes.Sewing:
+ return ResourceHelper.GetImageFromResources("Images/Sewing.png");
+ case JobTypes.Knitting:
+ return ResourceHelper.GetImageFromResources("Images/Knitting.png");
+ }
+
+ return null;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Dialogs/JobTypePickerView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Dialogs/JobTypePickerView.xaml
index 810fcaf41..814f73eb1 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Dialogs/JobTypePickerView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Dialogs/JobTypePickerView.xaml
@@ -5,14 +5,15 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Tango.PPC.Jobs.Dialogs"
xmlns:enumerations="clr-namespace:Tango.BL.Enumerations;assembly=Tango.BL"
- xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
+ xmlns:converters="clr-namespace:Tango.PPC.Jobs.Converters"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
mc:Ignorable="d"
- Background="{StaticResource TangoPrimaryBackgroundBrush}" Width="500" Height="400" d:DataContext="{d:DesignInstance Type=local:JobTypePickerViewVM, IsDesignTimeCreatable=False}">
+ Background="{StaticResource TangoPrimaryBackgroundBrush}" Width="600" Height="380" d:DataContext="{d:DesignInstance Type=local:JobTypePickerViewVM, IsDesignTimeCreatable=False}">
<UserControl.Resources>
- <converters:EnumToXamlVectorConverter x:Key="EnumToXamlVectorConverter" />
+ <converters:JobTypeToImageConverter x:Key="JobTypeToImageConverter" />
+
</UserControl.Resources>
<Grid>
@@ -20,17 +21,17 @@
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="1*"/>
- <RowDefinition Height="60"/>
+ <RowDefinition Height="0"/>
</Grid.RowDefinitions>
- <TextBlock VerticalAlignment="Center" Text="Select Job Type" FontSize="{StaticResource TangoMessageBoxTitleFontSize}"></TextBlock>
+ <TextBlock VerticalAlignment="Center" Text="Select Job Application" FontSize="{StaticResource TangoMessageBoxTitleFontSize}"></TextBlock>
<touch:TouchNativeListBox RippleFactor="10" Grid.Row="1" Margin="0 15 0 0" ItemsSource="{Binding SupportedJobTypes}" SelectedItem="{Binding SelectedJobType,Mode=OneWayToSource}" SelectedIndex="-1">
<ListBox.ItemTemplate>
<DataTemplate>
<Border Padding="0 15">
<StackPanel Orientation="Horizontal">
- <Path Stretch="Fill" Fill="{StaticResource TangoDarkForegroundBrush}" Data="{Binding Converter={StaticResource EnumToXamlVectorConverter}}" Width="60" Height="60"></Path>
+ <Image Stretch="Fill" Width="60" RenderOptions.BitmapScalingMode="Fant" Height="60" Source="{Binding Converter={StaticResource JobTypeToImageConverter}}"></Image>
<TextBlock VerticalAlignment="Center" Margin="20 0 0 0" Text="{Binding Converter={StaticResource EnumToDescriptionConverter}}" FontSize="{StaticResource TangoButtonFontSize}"></TextBlock>
</StackPanel>
</Border>
@@ -38,11 +39,11 @@
</ListBox.ItemTemplate>
</touch:TouchNativeListBox>
- <Grid Grid.Row="3">
+ <!--<Grid Grid.Row="3">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<touch:TouchButton Command="{Binding CloseCommand}" CornerRadius="25" Style="{StaticResource TangoHollowButton}" Width="170" Height="50" VerticalAlignment="Bottom">CLOSE</touch:TouchButton>
</StackPanel>
- </Grid>
+ </Grid>-->
</Grid>
</Grid>
</UserControl>
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Embroidery.png b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Embroidery.png
new file mode 100644
index 000000000..d71717835
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Embroidery.png
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Knitting.png b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Knitting.png
new file mode 100644
index 000000000..06c345965
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Knitting.png
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Sewing.png b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Sewing.png
new file mode 100644
index 000000000..51c468eea
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Images/Sewing.png
Binary files differ
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Tango.PPC.Jobs.csproj b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Tango.PPC.Jobs.csproj
index d804f4f28..ad98f7511 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Tango.PPC.Jobs.csproj
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Tango.PPC.Jobs.csproj
@@ -149,6 +149,7 @@
<Compile Include="Converters\JobCollectionToCategoryCountConverter.cs" />
<Compile Include="Converters\JobProgressToPositionConverter.cs" />
<Compile Include="Converters\JobToPieImageConverter.cs" />
+ <Compile Include="Converters\JobTypeToImageConverter.cs" />
<Compile Include="Dialogs\AdvancedColorCorrectionView.xaml.cs">
<DependentUpon>AdvancedColorCorrectionView.xaml</DependentUpon>
</Compile>
@@ -338,10 +339,19 @@
<ItemGroup>
<Resource Include="Images\JobView\color-picker.png" />
</ItemGroup>
+ <ItemGroup>
+ <Resource Include="Images\Sewing.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Images\Embroidery.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Images\Knitting.png" />
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
+ <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml
index 81f995eb7..ada22ce5a 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobView.xaml
@@ -388,7 +388,7 @@
<touch:TouchAutoComplete Text="{Binding CustomersFilter}" ItemsSource="{Binding Customers}" SelectedItem="{Binding Job.Customer}" DisplayMemberPath="Name" AutoCompleteProvider="{Binding CustomersAutoCompleteProvider}" KeyboardMode="AlphaNumeric" KeyboardAction="Next" KeyboardContainer="{Binding ElementName=Container}" />
<TextBlock>Thread type:</TextBlock>
- <touch:TouchComboBox ItemsSource="{Binding Rmls}" SelectedItem="{Binding Job.Rml}" DisplayMemberPath="Name" Title="Select Thread Type" />
+ <touch:TouchComboBox ItemsSource="{Binding Rmls}" SelectedItem="{Binding Job.Rml}" DisplayMemberPath="Name" Title="Select Thread" />
<TextBlock>Comment:</TextBlock>
<TextBox Margin="20 0 0 -42" Text="{Binding Job.Description}" FocusVisualStyle="{x:Null}" BorderBrush="{StaticResource TangoDividerBrush}" Foreground="{StaticResource TangoDarkForegroundBrush}" AcceptsReturn="True" TextWrapping="Wrap" Height="60" Padding="5">
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/ViewModels/MainViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/ViewModels/MainViewVM.cs
index cb48958dd..e62ebc932 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Storage/ViewModels/MainViewVM.cs
@@ -52,17 +52,23 @@ namespace Tango.PPC.Storage.ViewModels
StorageProvider.StorageDisconnected += StorageProvider_StorageDisconnected;
}
- public override void OnNavigatedTo()
+ public override async void OnNavigatedTo()
{
base.OnNavigatedTo();
_allow_exit = false;
_selectedItem = null;
- if (StorageProvider.Drive != null)
+ if (StorageProvider.IsConnected && StorageProvider.Drive != null)
{
CurrentPath = StorageProvider.Drive.RootDirectory.FullName;
}
+ else
+ {
+ _allow_exit = true;
+ await NotificationProvider.ShowError("No storage device connected.");
+ await NavigationManager.NavigateBack();
+ }
}
private async void Close()
@@ -97,14 +103,16 @@ namespace Tango.PPC.Storage.ViewModels
{
if (IsVisible)
{
+ await NotificationProvider.ShowError("Storage device disconnected.");
await NavigationManager.NavigateBack();
+ CurrentPath = null;
}
});
}
public override Task<bool> OnNavigateBackRequest()
{
- if (CurrentPath == StorageProvider.Drive.RootDirectory.FullName || _allow_exit)
+ if (_allow_exit || CurrentPath == StorageProvider.Drive.RootDirectory.FullName)
{
return Task.FromResult(true);
}
diff --git a/Software/Visual_Studio/Tango.Explorer/ExplorerControl.cs b/Software/Visual_Studio/Tango.Explorer/ExplorerControl.cs
index 197380475..d84138e0f 100644
--- a/Software/Visual_Studio/Tango.Explorer/ExplorerControl.cs
+++ b/Software/Visual_Studio/Tango.Explorer/ExplorerControl.cs
@@ -77,7 +77,11 @@ namespace Tango.Explorer
_changing_current_path = true;
- if (Directory.Exists(CurrentPath))
+ if (CurrentPath == null)
+ {
+ CurrentFolder = null;
+ }
+ else if (Directory.Exists(CurrentPath))
{
CurrentFolder = ExplorerFolderItem.LoadFromPath(CurrentPath);
}
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
index c410351aa..227bc0af3 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
@@ -321,7 +321,10 @@ namespace Tango.Touch.Controls
private void OnItemsSourceChanged()
{
- ScrollViewer.ScrollToTop();
+ if (ScrollViewer != null)
+ {
+ ScrollViewer.ScrollToTop();
+ }
}
public void ScrollToItem(Object item)
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.xaml
index 366c92dca..0b480ecf6 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.xaml
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.xaml
@@ -2,6 +2,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:keyboard="clr-namespace:Tango.Touch.Keyboard"
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:local="clr-namespace:Tango.Touch.Controls">
<ResourceDictionary.MergedDictionaries>
@@ -20,7 +21,9 @@
<Setter Property="Foreground" Value="{StaticResource TangoDarkForegroundBrush}"></Setter>
<Setter Property="FontSize" Value="{StaticResource TangoButtonFontSize}"></Setter>
<Setter Property="BorderBrush" Value="{StaticResource TangoDividerBrush}"></Setter>
- <Setter Property="BorderThickness" Value="1 0 0 0"></Setter>
+ <Setter Property="BorderThickness" Value="0 0 0 0"></Setter>
+ <Setter Property="CornerRadius" Value="50"></Setter>
+ <Setter Property="RippleFactor" Value="2"></Setter>
</Style>
<Style x:Key="TangoMessageBoxTitle" TargetType="TextBlock">
@@ -39,7 +42,7 @@
<DockPanel>
<ContentControl DockPanel.Dock="Top" Content="{TemplateBinding TaskBarElement}"></ContentControl>
-
+
<!--Notification Bar-->
<local:TouchNotificationBar NotificationTemplate="{TemplateBinding NotificationTemplate}" HasNotifications="{TemplateBinding HasNotifications}" Notifications="{TemplateBinding Notifications}" ItemExpandedPropertyPath="{TemplateBinding ItemExpandedPropertyPath}">
<Grid>
@@ -118,6 +121,12 @@
<ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent},Path=CurrentDialog}" />
</Border>
+
+ <i:Interaction.Triggers>
+ <i:EventTrigger EventName="MouseUp">
+ <i:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource TemplatedParent},Path=CurrentDialog.DataContext.CloseCommand}" />
+ </i:EventTrigger>
+ </i:Interaction.Triggers>
</Grid>
<!--Messages-->
@@ -141,8 +150,37 @@
</Style>
</Grid.Style>
- <Grid DataContext="{Binding RelativeSource={RelativeSource TemplatedParent},Path=CurrentMessageBox}" Height="400" Margin="20">
- <Border Background="{StaticResource TangoPrimaryBackgroundBrush}" CornerRadius="5" Margin="10">
+ <Grid Height="360" Margin="20" RenderTransformOrigin="0.5,0.5">
+ <Grid.Style>
+ <Style TargetType="Grid">
+ <Setter Property="RenderTransform">
+ <Setter.Value>
+ <ScaleTransform ScaleX="0" ScaleY="0" />
+ </Setter.Value>
+ </Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding RelativeSource={RelativeSource TemplatedParent},Path=HasMessageBox}" Value="True">
+ <DataTrigger.EnterActions>
+ <BeginStoryboard>
+ <Storyboard>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" From="0" To="1" Duration="00:00:0.2" />
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" From="0" To="1" Duration="00:00:0.2" />
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.EnterActions>
+ <DataTrigger.ExitActions>
+ <BeginStoryboard>
+ <Storyboard>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" From="1" To="0" Duration="00:00:0.2" />
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" From="1" To="0" Duration="00:00:0.2" />
+ </Storyboard>
+ </BeginStoryboard>
+ </DataTrigger.ExitActions>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Grid.Style>
+ <Border DataContext="{Binding RelativeSource={RelativeSource TemplatedParent},Path=CurrentMessageBox}" Background="{StaticResource TangoPrimaryBackgroundBrush}" CornerRadius="10" Margin="10">
<Border.Effect>
<DropShadowEffect BlurRadius="10" />
</Border.Effect>
@@ -165,10 +203,10 @@
<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"/>
+ <!--<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">
- <local:TouchButton x:Name="btnCancel" Width="180" Margin="2 0" Style="{StaticResource TangoMessageBoxButton}" Command="{Binding CloseCommand}" Visibility="{Binding HasCancel,Converter={StaticResource BooleanToVisibilityConverter}}">CANCEL</local:TouchButton>
+ <local:TouchButton x:Name="btnCancel" Width="120" Margin="2 0" Style="{StaticResource TangoMessageBoxButton}" Command="{Binding CloseCommand}" Visibility="{Binding HasCancel,Converter={StaticResource BooleanToVisibilityConverter}}">CANCEL</local:TouchButton>
<local:TouchButton x:Name="btnOK" Width="180" Margin="2 0" Style="{StaticResource TangoMessageBoxButton}" Command="{Binding OKCommand}">OK</local:TouchButton>
</StackPanel>
</Grid>