<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>
