aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Styles
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2021-10-21 09:07:26 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2021-10-21 09:07:26 +0300
commite44b1c8459db5a1cc75e1653d3e059c4825e1b68 (patch)
tree98c107bf6f8a2c55b298d4e554fb90d71e1a0411 /Software/Visual_Studio/Tango.Touch/Styles
parent63c1f7b5d85d2f1e6b4eeac612d5bb02d30481c7 (diff)
downloadTango-e44b1c8459db5a1cc75e1653d3e059c4825e1b68.tar.gz
Tango-e44b1c8459db5a1cc75e1653d3e059c4825e1b68.zip
Added Collapsed mode, Changes in converters CMYK.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Styles')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Styles/TouchCheckBox.xaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Styles/TouchCheckBox.xaml b/Software/Visual_Studio/Tango.Touch/Styles/TouchCheckBox.xaml
new file mode 100644
index 000000000..eff9fbcf3
--- /dev/null
+++ b/Software/Visual_Studio/Tango.Touch/Styles/TouchCheckBox.xaml
@@ -0,0 +1,41 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:controls="clr-namespace:Tango.Touch.Controls"
+ xmlns:components="clr-namespace:Tango.Touch.Components"
+ xmlns:local="clr-namespace:Tango.Touch.Styles">
+ <ResourceDictionary.MergedDictionaries>
+ <ResourceDictionary Source="../Resources/Colors.xaml" />
+ <ResourceDictionary Source="../Resources/Fonts.xaml" />
+ <ResourceDictionary>
+ <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
+ </ResourceDictionary>
+ </ResourceDictionary.MergedDictionaries>
+
+ <Style x:Key="TouchRoundCheckBox" TargetType="{x:Type controls:TouchCheckBox}">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="{x:Type controls:TouchCheckBox}">
+ <Border Padding="{TemplateBinding Padding}" Background="Transparent">
+ <components:Ripple RippleBrush="{StaticResource TangoRippleDarkBrush}" RippleFactor="20" >
+ <Grid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="1*"/>
+ </Grid.ColumnDefinitions>
+ <Ellipse x:Name="borderCheckBox" Stroke="{TemplateBinding Property=BorderBrush}" Fill="{TemplateBinding Background}" Width="22" Height="22" StrokeThickness="1"></Ellipse>
+ <controls:TouchIcon x:Name="checkMark" Padding="2" Width="18" Height="18" Icon="Check" Visibility="{Binding RelativeSource={RelativeSource AncestorType=controls:TouchCheckBox},Path=IsChecked,Converter={StaticResource BooleanToVisibilityConverter}}" Foreground="White"/>
+ <ContentPresenter Grid.Column="1" TextElement.Foreground="{StaticResource TangoDarkForegroundBrush}" Margin="10 0 0 0" VerticalAlignment="Center" Content="{TemplateBinding Content}"></ContentPresenter>
+ </Grid>
+ </components:Ripple>
+ </Border>
+ <ControlTemplate.Triggers>
+ <Trigger Property="IsChecked" Value="True">
+ <Setter TargetName="borderCheckBox" Property="Fill" Value="{StaticResource TangoMidAccentBrush}"/>
+ </Trigger>
+ </ControlTemplate.Triggers>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+
+</ResourceDictionary> \ No newline at end of file