Skip to content

Commit

Permalink
Add more animals
Browse files Browse the repository at this point in the history
Though this sample is still broken with NAOT on WinUI 3... :( Tried a couple of the suggested workarounds, but they did not work on my machine, see #516
  • Loading branch information
michael-hawker committed Nov 8, 2024
1 parent 459bfd6 commit da4e6ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
<controls:SwitchPresenter Padding="16"
TargetType="local:Animal"
Value="{Binding SelectedItem, ElementName=AnimalPicker}">
<controls:Case Value="Bunny">
<TextBlock FontSize="32"
Text="🐇" />
</controls:Case>
<controls:Case Value="Cat">
<TextBlock FontSize="32"
Text="🐈" />
Expand All @@ -31,14 +35,22 @@
<TextBlock FontSize="32"
Text="🐕" />
</controls:Case>
<controls:Case Value="Bunny">
<controls:Case Value="Giraffe">
<TextBlock FontSize="32"
Text="🐇" />
Text="🦒" />
</controls:Case>
<controls:Case Value="Llama">
<TextBlock FontSize="32"
Text="🦙" />
</controls:Case>
<controls:Case Value="Otter">
<TextBlock FontSize="32"
Text="🦦" />
</controls:Case>
<controls:Case Value="Owl">
<TextBlock FontSize="32"
Text="🦉" />
</controls:Case>
<controls:Case Value="Parrot">
<TextBlock FontSize="32"
Text="🦜" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ public SwitchPresenterValueSample()

public enum Animal
{
Bunny,
Cat,
Dog,
Bunny,
Giraffe,
Llama,
Otter,
Owl,
Parrot,
Squirrel
}

0 comments on commit da4e6ea

Please sign in to comment.