21 lines
754 B
XML
21 lines
754 B
XML
<UserControl
|
|
x:Class="Bitvault.Avalonia.ItemCategoryCollectionView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Bitvault"
|
|
x:DataType="vm:ItemCategoryCollectionViewModel">
|
|
<ListBox
|
|
Margin="2,-1,0,0"
|
|
AutoScrollToSelectedItem="True"
|
|
ItemTemplate="{ReflectionBinding Template}"
|
|
ItemsSource="{Binding}"
|
|
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
|
|
SelectionMode="Single">
|
|
<ListBox.Styles>
|
|
<Style Selector="ListBoxItem">
|
|
<Setter Property="IsSelected" Value="{ReflectionBinding Selected, Mode=TwoWay}" />
|
|
</Style>
|
|
</ListBox.Styles>
|
|
</ListBox>
|
|
</UserControl>
|