aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-03-20 16:23:17 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-03-20 16:23:17 +0200
commitdb9308c46379fb324678ba04771dbee4edae4b17 (patch)
treea443967e7baeff8924e1aeb85ff4de3b5050510a /Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml
parent88ac356fd2d30e016bb884697e7b67f8ede51d2b (diff)
downloadTango-db9308c46379fb324678ba04771dbee4edae4b17.tar.gz
Tango-db9308c46379fb324678ba04771dbee4edae4b17.zip
working on PPC Technician module .
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml54
1 files changed, 26 insertions, 28 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml b/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml
index 7d04c902a..456e82750 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.xaml
@@ -7,37 +7,35 @@
<ResourceDictionary Source="../Resources/Colors.xaml" />
</ResourceDictionary.MergedDictionaries>
- <Style TargetType="{x:Type local:TouchNativeListBox}">
- <Setter Property="ItemContainerStyle">
+ <Style x:Key="TangoTouchNativeListBoxItem" TargetType="ListBoxItem">
+ <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
+ <Setter Property="VerticalContentAlignment" Value="Stretch"></Setter>
+ <Setter Property="Background" Value="Transparent"></Setter>
+ <Setter Property="Template">
<Setter.Value>
- <Style TargetType="ListBoxItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>
- <Setter Property="VerticalContentAlignment" Value="Stretch"></Setter>
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListBoxItem">
- <components:Ripple RippleBrush="{StaticResource TangoRippleDarkBrush}" RippleFactor="{Binding RelativeSource={RelativeSource AncestorType=local:TouchNativeListBox},Path=RippleFactor}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
- <components:Ripple.Style>
- <Style TargetType="components:Ripple">
- <Setter Property="Disabled" Value="False"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=local:LightTouchScrollViewer},Path=IsScrolling}" Value="True">
- <Setter Property="Disabled" Value="True"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </components:Ripple.Style>
- <Border Background="{TemplateBinding Background}">
- <ContentControl Content="{Binding}" ContentTemplate="{Binding RelativeSource={RelativeSource AncestorType=local:TouchNativeListBox},Path=ItemTemplate}" />
- </Border>
- </components:Ripple>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
+ <ControlTemplate TargetType="ListBoxItem">
+ <components:Ripple RippleBrush="{StaticResource TangoRippleDarkBrush}" RippleFactor="{Binding RelativeSource={RelativeSource AncestorType=local:TouchNativeListBox},Path=RippleFactor}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
+ <components:Ripple.Style>
+ <Style TargetType="components:Ripple">
+ <Setter Property="Disabled" Value="False"></Setter>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=local:LightTouchScrollViewer},Path=IsScrolling}" Value="True">
+ <Setter Property="Disabled" Value="True"></Setter>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </components:Ripple.Style>
+ <Border Background="{TemplateBinding Background}">
+ <ContentControl Content="{Binding}" ContentTemplate="{Binding RelativeSource={RelativeSource AncestorType=local:TouchNativeListBox},Path=ItemTemplate}" />
+ </Border>
+ </components:Ripple>
+ </ControlTemplate>
</Setter.Value>
</Setter>
+ </Style>
+
+ <Style TargetType="{x:Type local:TouchNativeListBox}">
+ <Setter Property="ItemContainerStyle" Value="{StaticResource TangoTouchNativeListBoxItem}"></Setter>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"></Setter>