Skip to content

Commit

Permalink
Fix for mismatch in WUX/MUXC TreeViewItem type in Sample
Browse files Browse the repository at this point in the history
Caused unhelpful exception when running in UWP
  • Loading branch information
michael-hawker committed Jul 7, 2023
1 parent e5068c3 commit 4196eef
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:HeaderedItemsControlExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">

<Grid>
Expand All @@ -26,9 +27,9 @@
</controls:HeaderedTreeView.FooterTemplate>
<controls:HeaderedTreeView.ItemTemplate>
<DataTemplate x:DataType="local:ExplorerItem">
<TreeViewItem Content="{x:Bind Name}"
IsExpanded="True"
ItemsSource="{x:Bind Children}" />
<muxc:TreeViewItem Content="{x:Bind Name}"
IsExpanded="True"
ItemsSource="{x:Bind Children}" />
</DataTemplate>
</controls:HeaderedTreeView.ItemTemplate>
</controls:HeaderedTreeView>
Expand Down

0 comments on commit 4196eef

Please sign in to comment.