Skip to content

Commit

Permalink
Fixed SubModelSeq sample containing TreeView by using WinUI version
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Aug 24, 2021
1 parent 26b57b6 commit 0d5e392
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/Samples/Samples.Shared/SubModelSeqPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:cmp="using:Elmish.Uno.Samples.Components"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:samples="using:Elmish.Uno.Samples"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
Expand All @@ -31,16 +32,16 @@
Command="{Binding ToggleGlobalState}"
Content="Toggle global state" />
</StackPanel>
<TreeView Grid.Row="1" ItemsSource="{Binding Counters}">
<TreeView.ItemContainerStyle>
<Style TargetType="TreeViewItem">
<muxc:TreeView Grid.Row="1" ItemsSource="{Binding Counters}">
<muxc:TreeView.ItemContainerStyle>
<Style TargetType="muxc:TreeViewItem">
<Setter Property="IsExpanded" Value="True" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
</TreeView.ItemContainerStyle>
<TreeView.ItemTemplate>
</muxc:TreeView.ItemContainerStyle>
<muxc:TreeView.ItemTemplate>
<DataTemplate>
<TreeViewItem x:Name="treeViewItem" ItemsSource="{Binding ChildCounters}">
<muxc:TreeViewItem x:Name="treeViewItem" ItemsSource="{Binding ChildCounters}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
Expand Down Expand Up @@ -93,9 +94,9 @@
<Run Text="{Binding GlobalState}" />
</TextBlock>
</Grid>
</TreeViewItem>
</muxc:TreeViewItem>
</DataTemplate>
</TreeView.ItemTemplate>
</TreeView>
</muxc:TreeView.ItemTemplate>
</muxc:TreeView>
</Grid>
</Page>

0 comments on commit 0d5e392

Please sign in to comment.