aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Explorer/Themes
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.Explorer/Themes
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.Explorer/Themes')
-rw-r--r--Software/Visual_Studio/Tango.Explorer/Themes/Generic.xaml50
1 files changed, 8 insertions, 42 deletions
diff --git a/Software/Visual_Studio/Tango.Explorer/Themes/Generic.xaml b/Software/Visual_Studio/Tango.Explorer/Themes/Generic.xaml
index 3ef77dea1..c920ce6bc 100644
--- a/Software/Visual_Studio/Tango.Explorer/Themes/Generic.xaml
+++ b/Software/Visual_Studio/Tango.Explorer/Themes/Generic.xaml
@@ -2,17 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
- xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:local="clr-namespace:Tango.Explorer">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Tango.Touch;component/Resources/Colors.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/Tango.Touch;component/Resources/Fonts.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/Tango.Touch;component/Controls/Shared.xaml"/>
- </ResourceDictionary.MergedDictionaries>
-
- <converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
-
<Style TargetType="{x:Type local:ExplorerControl}">
<Setter Property="Template">
<Setter.Value>
@@ -21,42 +12,17 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
- <touch:TouchListBox x:Name="PART_ListBox"
- IsMultiSelecting="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=IsMultiSelecting,Mode=OneWayToSource}"
- ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=CurrentFolder.Items}"
- SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=SelectedItem,Mode=TwoWay}"
- SelectedItems="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=SelectedItems,Mode=TwoWay}">
- <touch:TouchListBox.Style>
- <Style TargetType="touch:TouchListBox" BasedOn="{StaticResource {x:Type touch:TouchListBox}}">
- <Setter Property="SelectionMode" Value="None"></Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=EnableMultiSelect}" Value="True">
- <Setter Property="SelectionMode" Value="Multiple"></Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </touch:TouchListBox.Style>
+ <touch:TouchListBox SelectionMode="None" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=CurrentFolder.Items}" SelectedItem="{Binding RelativeSource={RelativeSource AncestorType=local:ExplorerControl},Path=SelectedItem,Mode=TwoWay}">
<touch:TouchListBox.ItemTemplate>
<DataTemplate DataType="local:ExplorerItem">
<Border Padding="8" BorderBrush="#E9E9E9" BorderThickness="0 0 0 1">
- <Grid>
- <DockPanel>
- <Image DockPanel.Dock="Left" Source="{Binding Icon}" Width="50" Height="50" />
- <StackPanel VerticalAlignment="Center" Margin="20 0 0 0">
- <TextBlock FontSize="16" Text="{Binding Name}"></TextBlock>
- <TextBlock Opacity="0.5" FontSize="12" Margin="0 5 0 0" Text="{Binding Description}"></TextBlock>
- </StackPanel>
- </DockPanel>
-
- <Grid HorizontalAlignment="Right" VerticalAlignment="Center" Visibility="{Binding RelativeSource={RelativeSource AncestorType=touch:TouchListBox},Path=IsMultiSelecting,Converter={StaticResource BooleanToVisibilityConverter}}">
- <touch:TouchIcon
- Icon="CheckCircleOutline"
- Foreground="{StaticResource TangoPrimaryAccentBrush}"
- Width="20"
- Height="20"
- Visibility="{Binding RelativeSource={RelativeSource AncestorType=touch:TouchListBoxItem},Path=IsSelected,Converter={StaticResource BooleanToVisibilityConverter}}"/>
- </Grid>
- </Grid>
+ <DockPanel>
+ <Image DockPanel.Dock="Left" Source="{Binding Icon}" Width="50" Height="50" />
+ <StackPanel VerticalAlignment="Center" Margin="20 0 0 0">
+ <TextBlock FontSize="16" Text="{Binding Name}"></TextBlock>
+ <TextBlock Opacity="0.5" FontSize="12" Margin="0 5 0 0" Text="{Binding Description}"></TextBlock>
+ </StackPanel>
+ </DockPanel>
</Border>
</DataTemplate>
</touch:TouchListBox.ItemTemplate>