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

29 lines
1011 B
XML

<ListViewItem
x:Class="Wallet.Avalonia.ItemCategoryNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:ItemCategoryNavigationViewModel"
IsSelected="{Binding IsSelected}"
ListBoxExtension.IsItemInvokedEnabled="True">
<Interaction.Behaviors>
<AttachedEventTriggerBehaviour RoutedEvent="{x:Static ListBoxExtension.ItemInvokedEvent}">
<InvokeCommandAction Command="{Binding InvokeCommand}" />
</AttachedEventTriggerBehaviour>
</Interaction.Behaviors>
<Grid
Margin="0,6,6,6"
Background="Transparent"
ColumnDefinitions="Auto,*">
<PersonPicture
Grid.Column="0"
Height="40"
DisplayName="{Binding Name}" />
<TextBlock
Grid.Column="1"
Margin="12,0,0,0"
VerticalAlignment="Center"
Text="{Binding Name}" />
</Grid>
</ListViewItem>