Apply indentation to coins in pockets
ADD
WalletWasabi.Fluent/Converters/IndentConverter.cs
+using System.Globalization;
+using Avalonia;
+using Avalonia.Data.Converters;
+
+namespace WalletWasabi.Fluent.Converters;
+
+public class IndentConverter : AvaloniaObject, IValueConverter
+{
+ public static readonly StyledProperty<double> MultiplierProperty = AvaloniaProperty.Register<IndentConverter, double>(nameof(Multiplier));
+
+ public static Avalonia.Controls.Converters.IndentConverter Instance { get; } = new();
+
+ public double Multiplier
+ {
+ get => GetValue(MultiplierProperty);
+ set => SetValue(MultiplierProperty, value);
+ }
+
+ public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
+ {
+ if (value is int indent)
+ {
+ return new Thickness(indent * Multiplier, 0, 0, 0);
+ }
+
+ return new Thickness();
+ }
+
+ public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+}

MODIFY
WalletWasabi.Fluent/Views/CoinControl/SelectCoinsDialogView.axaml
WalletWasabi.Fluent/Views/CoinControl/SelectCoinsDialogView.axaml
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="650"
xmlns:coinControl="clr-namespace:WalletWasabi.Fluent.ViewModels.CoinControl"
xmlns:treeDataGrid="clr-namespace:WalletWasabi.Fluent.TreeDataGrid"
+ xmlns:conv="clr-namespace:Avalonia.Controls.Converters;assembly=Avalonia.Controls.TreeDataGrid"
x:DataType="coinControl:SelectCoinsDialogViewModel"
x:Class="WalletWasabi.Fluent.Views.CoinControl.SelectCoinsDialogView"
x:CompileBindings="True">
+ <UserControl.Resources>
+ <converters:IndentConverter x:Key="IndentConverter" Multiplier="10" />
+ </UserControl.Resources>
+
<controls:ContentArea
Title="{Binding Title}"
EnableBack="{Binding EnableBack}"
<Style Selector="TreeDataGridExpanderCell">
<Setter Property="Template">
<ControlTemplate>
- <Border Background="{TemplateBinding Background}">
+ <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Indent, Converter={StaticResource IndentConverter}}">
<DockPanel>
<Border DockPanel.Dock="Left"
Margin="4 0"

Apply indentation to coins in pockets