When you right click in coinlist and the context menu opens items are selected also.
ADD
WalletWasabi.Gui/Controls/ExtendedListBox.cs
+using Avalonia.Controls;
+using Avalonia.Input;
+using Avalonia.Styling;
+using System;
+
+namespace WalletWasabi.Gui.Controls
+{
+ public class ExtendedListBox : ListBox, IStyleable
+ {
+ Type IStyleable.StyleKey => typeof(ListBox);
+
+ public ExtendedListBox()
+ {
+ AddHandler<PointerPressedEventArgs>(PointerPressedEvent, (sender, e) =>
+ {
+ if (e.MouseButton == MouseButton.Left || e.MouseButton == MouseButton.Right)
+ {
+ UpdateSelectionFromEventSource(
+ e.Source,
+ true,
+ (e.InputModifiers & InputModifiers.Shift) != 0,
+ (e.InputModifiers & InputModifiers.Control) != 0);
+
+
+ }
+ }, Avalonia.Interactivity.RoutingStrategies.Tunnel, true);
+ }
+
+ protected override void OnPointerPressed(PointerPressedEventArgs e)
+ {
+ }
+ }
+}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
<TextBlock Text = "BTC" />
</StackPanel>
</StackPanel>
- <ListBox Items="{Binding Coins}" VirtualizationMode="None" SelectedItem="{Binding Path=SelectedCoin, Mode=TwoWay}">
- <ListBox.ContextMenu>
+ <controls:ExtendedListBox Items="{Binding Coins}" VirtualizationMode="None" SelectedItem="{Binding Path=SelectedCoin, Mode=TwoWay}">
+ <controls:ExtendedListBox.ContextMenu>
<ContextMenu>
<!--Enqueuing needs password, TODO: jump to password box OR display pw box in context menu + send button-->
<MenuItem Command="{Binding EnqueueCoin}" IsVisible="false">
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
- </ListBox.ContextMenu>
- <ListBox.ItemTemplate>
+ </controls:ExtendedListBox.ContextMenu>
+ <controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Expander Name="coinExpander" ExpandDirection="Down" Classes="coloredExpander" Background="{Binding ElementName=coinExpander, Path=IsExpanded, Converter={StaticResource CoinItemExpanderColorConverter}}">
</Grid>
</Grid>
</DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
+ </controls:ExtendedListBox.ItemTemplate>
+ </controls:ExtendedListBox>
</DockPanel>
</Grid>
</UserControl>

When you right click in coinlist and the context menu opens items are selected also.