Fix styles to allow selection feedback
MODIFY
WalletWasabi.Fluent/ViewModels/CoinControl/SelectCoinsDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/CoinControl/SelectCoinsDialogViewModel.cs
@@ -45,6 +45,7 @@ public partial class SelectCoinsDialogViewModel : DialogViewModelBase<IEnumerabl
};
Source.SortBy(Source.Columns[4], ListSortDirection.Descending);
+ Source.RowSelection!.SingleSelect = true;
SetupCancel(false, true, false);
EnableBack = true;
@@ -157,6 +158,7 @@ public partial class SelectCoinsDialogViewModel : DialogViewModelBase<IEnumerabl
new PocketCoinAdapter(pocket),
pocket.Coins
.OrderByDescending(x => x.Amount)
- .Select(coin => new TreeNode(new SmartCoinAdapter(coin)))));
+ .Select(coin => new TreeNode(new SmartCoinAdapter(coin))).ToList()))
+ .ToList();
}
}

MODIFY
WalletWasabi.Fluent/Views/CoinControl/SelectCoinsDialogView.axaml
WalletWasabi.Fluent/Views/CoinControl/SelectCoinsDialogView.axaml
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<controls:ContentArea.Styles>
+
<Style Selector="TreeDataGridRow">
<Setter Property="Focusable" Value="False" />
<Setter Property="Height" Value="37.5" />
</Style>
- <Style Selector="TreeDataGridRow" x:CompileBindings="False">
+ <Style Selector="TreeDataGridCellsPresenter">
<Style.Resources>
<converters:IndentToColorConverter x:Key="IndentToBrushConverter">
<converters:IndentToColorConverter.Brushes>
</converters:IndentToColorConverter.Brushes>
</converters:IndentToColorConverter>
</Style.Resources>
- <Setter Property="Template">
- <ControlTemplate TargetType="TreeDataGridRow">
- <Border x:Name="RowBorder"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{TemplateBinding CornerRadius}"
- Padding="0">
- <Border.Background>
+ <Setter Property="Background">
+ <Setter.Value>
<MultiBinding Converter="{StaticResource IndentToBrushConverter}">
<Binding Path="." />
<Binding Path="Rows" RelativeSource="{RelativeSource Mode=TemplatedParent}" />
</MultiBinding>
- </Border.Background>
- <TreeDataGridCellsPresenter x:Name="PART_CellsPresenter"
- ElementFactory="{TemplateBinding ElementFactory}"
- Items="{TemplateBinding Columns}"
- Rows="{TemplateBinding Rows}" />
- </Border>
- </ControlTemplate>
+ </Setter.Value>
</Setter>
</Style>
- <Style Selector="TreeDataGridExpanderCell">
- <Setter Property="Template">
- <ControlTemplate>
- <Border Background="{TemplateBinding Background}">
- <DockPanel>
- <Border DockPanel.Dock="Left"
- Margin="4 0"
- Width="12" Height="12">
- <ToggleButton Classes="ExpandCollapseChevron"
- Focusable="False"
- IsChecked="{TemplateBinding IsExpanded, Mode=TwoWay}"
- IsVisible="{TemplateBinding ShowExpander}"
- Cursor="Hand" />
- </Border>
- <Decorator Name="PART_Content" />
- </DockPanel>
- </Border>
- </ControlTemplate>
- </Setter>
+ <Style Selector="TreeDataGridCellsPresenter:pointerover">
+ <Setter Property="Background" Value="{DynamicResource DataGridRowSelectedBackgroundColor}" />
</Style>
<Style Selector="TreeDataGridRow ContentPresenter">

Fix styles to allow selection feedback