mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-17 06:36:35 +08:00
feat: add Toggle SelectionMode to ListDemo.
This commit is contained in:
@@ -119,11 +119,11 @@
|
|||||||
<StackPanel Spacing="20">
|
<StackPanel Spacing="20">
|
||||||
<TextBlock Text="Theme: CheckGroupListBox"/>
|
<TextBlock Text="Theme: CheckGroupListBox"/>
|
||||||
<ListBox
|
<ListBox
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple,Toggle"
|
||||||
Theme="{DynamicResource CheckGroupListBox}"
|
Theme="{DynamicResource CheckGroupListBox}"
|
||||||
ItemsSource="{Binding $parent[local:ListBoxDemo].Items}" />
|
ItemsSource="{Binding $parent[local:ListBoxDemo].Items}" />
|
||||||
<ListBox Theme="{DynamicResource CheckGroupListBox}"
|
<ListBox Theme="{DynamicResource CheckGroupListBox}"
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple,Toggle"
|
||||||
IsEnabled="False">
|
IsEnabled="False">
|
||||||
<ListBoxItem IsSelected="True">Avalonia</ListBoxItem>
|
<ListBoxItem IsSelected="True">Avalonia</ListBoxItem>
|
||||||
<ListBoxItem>WPF</ListBoxItem>
|
<ListBoxItem>WPF</ListBoxItem>
|
||||||
@@ -131,11 +131,11 @@
|
|||||||
|
|
||||||
<TextBlock Text="Theme: CardCheckGroupListBox"/>
|
<TextBlock Text="Theme: CardCheckGroupListBox"/>
|
||||||
<ListBox
|
<ListBox
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple,Toggle"
|
||||||
Theme="{DynamicResource CardCheckGroupListBox}"
|
Theme="{DynamicResource CardCheckGroupListBox}"
|
||||||
ItemsSource="{Binding $parent[local:ListBoxDemo].Items}" />
|
ItemsSource="{Binding $parent[local:ListBoxDemo].Items}" />
|
||||||
<ListBox Theme="{DynamicResource CardCheckGroupListBox}"
|
<ListBox Theme="{DynamicResource CardCheckGroupListBox}"
|
||||||
SelectionMode="Multiple"
|
SelectionMode="Multiple,Toggle"
|
||||||
IsEnabled="False">
|
IsEnabled="False">
|
||||||
<ListBoxItem>Avalonia</ListBoxItem>
|
<ListBoxItem>Avalonia</ListBoxItem>
|
||||||
<ListBoxItem IsSelected="True">WPF</ListBoxItem>
|
<ListBoxItem IsSelected="True">WPF</ListBoxItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user