Limit coin detail double-click behavior to a focus target control instead of the whole DataTemplate
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/CoinListView.xaml
<Setter Property="Background" Value="Transparent" />
<Setter Property="Height" Value="24" />
</Style>
- <Style Selector="Grid.CoinItemGrid > :is(Control)">
+ <Style Selector="Grid.CoinItemGrid > :is(Control):not(:is(Control).FocusTarget)">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
</UserControl.Styles>
<controls:ExtendedListBox.ItemTemplate>
<DataTemplate>
<Grid Classes="CoinItemGrid">
- <i:Interaction.Behaviors>
- <behaviors:CommandOnDoubleClickBehavior Command="{Binding OpenCoinInfo}" />
- </i:Interaction.Behaviors>
+
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="Open Details" Command="{Binding OpenCoinInfo}">
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
+ <Panel Classes="FocusTarget" Background="Transparent" Grid.ColumnSpan="6">
+ <i:Interaction.Behaviors>
+ <behaviors:CommandOnDoubleClickBehavior Command="{Binding OpenCoinInfo}" />
+ </i:Interaction.Behaviors>
+ </Panel>
<Border>
<CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsSelected}" Background="{DynamicResource ThemeBackgroundBrush}" />
</Border>

Limit coin detail double-click behavior to a focus target control instead of the whole DataTemplate