Created
May 5, 2018 16:24
-
-
Save christiannagel/57049f215545b616f6d2260b144f63ed to your computer and use it in GitHub Desktop.
TreeView template to use an item template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="TreeViewStyle1" TargetType="TreeView"> | |
<Setter Property="IsTabStop" Value="False"/> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="TreeView"> | |
<TreeViewList x:Name="ListControl" AllowDrop="False" | |
CanReorderItems="False" | |
CanDragItems="False" | |
ItemContainerStyle="{StaticResource TreeViewItemStyle}" | |
ItemTemplate="{StaticResource CultureItemDataTemplate}"> | |
<TreeViewList.ItemContainerTransitions> | |
<TransitionCollection> | |
<ContentThemeTransition/> | |
<ReorderThemeTransition/> | |
<EntranceThemeTransition IsStaggeringEnabled="False"/> | |
</TransitionCollection> | |
</TreeViewList.ItemContainerTransitions> | |
</TreeViewList> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> | |
</Style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment