Files
Walleby/Wallet.Avalonia/ItemCategoryNavigationCollectionView.axaml
2024-07-18 18:00:01 +01:00

21 lines
792 B
XML

<UserControl
x:Class="Wallet.Avalonia.ItemCategoryNavigationCollectionView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:ItemCategoryNavigationCollectionViewModel">
<ListView
Margin="2,-1,0,0"
AutoScrollToSelectedItem="True"
ItemContainerTemplateSelector="{ReflectionBinding Template}"
ItemsSource="{Binding}"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
SelectionMode="Single">
<ListView.Styles>
<Style Selector="ListViewItem">
<Setter Property="IsSelected" Value="{ReflectionBinding Selected, Mode=TwoWay}" />
</Style>
</ListView.Styles>
</ListView>
</UserControl>