aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Styles
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-01 09:09:55 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-01 09:09:55 +0300
commitbe014619f075a3ff76e03487014212234955f322 (patch)
tree8e4e387dfeb5e4f51cc60461f47812451dac950a /Software/Visual_Studio/Tango.Touch/Styles
parent1303ac651e1990447612e139d02d5844c05fb31c (diff)
downloadTango-be014619f075a3ff76e03487014212234955f322.tar.gz
Tango-be014619f075a3ff76e03487014212234955f322.zip
Working on PPC color conversion UI.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Styles')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Styles/TouchButton.xaml9
-rw-r--r--Software/Visual_Studio/Tango.Touch/Styles/TouchListBox.xaml48
2 files changed, 57 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Styles/TouchButton.xaml b/Software/Visual_Studio/Tango.Touch/Styles/TouchButton.xaml
index 7d757740a..e62404309 100644
--- a/Software/Visual_Studio/Tango.Touch/Styles/TouchButton.xaml
+++ b/Software/Visual_Studio/Tango.Touch/Styles/TouchButton.xaml
@@ -26,4 +26,13 @@
<Setter Property="RippleFactor" Value="10"></Setter>
</Style>
+ <Style x:Key="TangoHollowButton" TargetType="{x:Type controls:TouchButton}">
+ <Setter Property="Background" Value="Transparent"></Setter>
+ <Setter Property="CornerRadius" Value="20"></Setter>
+ <Setter Property="TextElement.Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
+ <Setter Property="BorderThickness" Value="1"></Setter>
+ <Setter Property="BorderBrush" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter>
+ <Setter Property="RippleBrush" Value="{StaticResource TangoRippleDarkBrush}"></Setter>
+ </Style>
+
</ResourceDictionary> \ No newline at end of file
diff --git a/Software/Visual_Studio/Tango.Touch/Styles/TouchListBox.xaml b/Software/Visual_Studio/Tango.Touch/Styles/TouchListBox.xaml
new file mode 100644
index 000000000..dece0f8ba
--- /dev/null
+++ b/Software/Visual_Studio/Tango.Touch/Styles/TouchListBox.xaml
@@ -0,0 +1,48 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
+ xmlns:localConverters="clr-namespace:Tango.Touch.Converters"
+ xmlns:local="clr-namespace:Tango.Touch.Controls">
+
+ <ResourceDictionary.MergedDictionaries>
+ <ResourceDictionary Source="../Resources/Colors.xaml" />
+ </ResourceDictionary.MergedDictionaries>
+
+ <localConverters:SelectionModesToBooleanConverter x:Key="SelectionModesToBooleanConverter" />
+
+ <Style x:Key="TangoBasicListBox" TargetType="{x:Type local:TouchListBox}">
+ <Setter Property="IsManipulationEnabled" Value="True"></Setter>
+ <Setter Property="local:TouchPanel.PreventFocusSteal" Value="True"></Setter>
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type local:TouchListBox}">
+ <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
+ <local:LightTouchScrollViewer x:Name="PART_ScrollViewer">
+ <ItemsControl VirtualizingPanel.IsVirtualizing="False" x:Name="PART_ItemsControl" Style="{x:Null}" ItemsSource="{TemplateBinding ItemsSource}" VerticalAlignment="Top" ClipToBounds="True">
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <StackPanel VirtualizingPanel.IsVirtualizing="False" Orientation="Vertical" VerticalAlignment="Top" />
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
+ <ItemsControl.ItemTemplate>
+ <DataTemplate>
+ <local:TouchListBoxItem Style="{Binding RelativeSource={RelativeSource AncestorType=local:TouchListBox},Path=ItemContainerStyle}">
+ <i:Interaction.Triggers>
+ <i:EventTrigger EventName="Loaded">
+ <i:InvokeCommandAction Command="{Binding RelativeSource={RelativeSource AncestorType=local:TouchListBox},Path=ListBoxItemLoadedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=local:TouchListBoxItem}}" />
+ </i:EventTrigger>
+ </i:Interaction.Triggers>
+ <ContentControl Content="{Binding}" ContentTemplate="{Binding RelativeSource={RelativeSource AncestorType=local:TouchListBox},Path=ItemTemplate}" />
+ </local:TouchListBoxItem>
+ </DataTemplate>
+ </ItemsControl.ItemTemplate>
+ </ItemsControl>
+ </local:LightTouchScrollViewer>
+ </Border>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+
+</ResourceDictionary> \ No newline at end of file