Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Mile.Xaml.Styles.SunValley/TreeView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<!-- not used, leave here for backword compatability -->
<DataTemplate x:Key="TreeViewItemDataTemplate">
<Grid Height="44">
<GridLength x:Key="TreeViewItemHeight">Auto</GridLength>

<DataTemplate x:Key="DefaultTreeViewItemDataTemplate">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{StaticResource TreeViewItemHeight}" />
</Grid.RowDefinitions>
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Center"
Expand All @@ -162,6 +166,7 @@
<Setter Property="CanDragItems" Value="True" />
<Setter Property="CanReorderItems" Value="True" />
<Setter Property="AllowDrop" Value="True" />
<Setter Property="ItemTemplate" Value="{StaticResource DefaultTreeViewItemDataTemplate}" />
<Setter Property="ItemContainerTransitions">
<Setter.Value>
<TransitionCollection>
Expand Down Expand Up @@ -190,6 +195,4 @@
</Setter>
</Style>

<Style BasedOn="{StaticResource MUX_TreeViewItemStyle}" TargetType="TreeViewItem" />

</ResourceDictionary>
6 changes: 4 additions & 2 deletions Mile.Xaml.Styles.SunValley/TreeViewItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
<ResourceDictionary Source="ms-appx:///Styles/TreeView.xaml" />
</ResourceDictionary.MergedDictionaries>

<Style BasedOn="{StaticResource DefaultListViewItemStyle}" TargetType="TreeViewItem" />

<Style
x:Key="MUX_TreeViewItemStyle"
BasedOn="{StaticResource DefaultListViewItemStyle}"
x:Key="DefaultListViewItemStyle"
BasedOn="{StaticResource TreeViewItemStyle}"
TargetType="TreeViewItem">
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="{ThemeResource TreeViewItemBackground}" />
Expand Down
Loading