Files
Walleby/Wallet.Avalonia/ItemCategoryNavigationView.axaml
T
2024-06-25 23:08:45 +01:00

23 lines
904 B
XML

<ListBoxItem
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"
ListBoxExtension.IsItemInvokedEnabled="True">
<Interaction.Behaviors>
<AttachedEventTriggerBehaviour RoutedEvent="{x:Static ListBoxExtension.ItemInvokedEvent}">
<InvokeCommandAction Command="{Binding InvokeCommand}" />
</AttachedEventTriggerBehaviour>
</Interaction.Behaviors>
<Grid Background="Transparent" ColumnDefinitions="Auto,*">
<PersonPicture
Grid.Column="0"
Height="40"
DisplayName="{Binding Name}" />
<StackPanel Grid.Column="1" Margin="12,12,6,12">
<TextBlock Text="{Binding Name}" />
</StackPanel>
</Grid>
</ListBoxItem>