using System; using System.Globalization; using Avalonia.Controls; using Avalonia.Data.Converters; namespace PalladiumWallet.App.ViewModels; /// /// true (mobile) → Dock.Bottom — tab strip at the bottom, Android standard. /// false (desktop) → Dock.Top — Avalonia default behavior. /// public sealed class BoolToTabPlacementConverter : IValueConverter { public static readonly BoolToTabPlacementConverter Instance = new(); public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => value is true ? Dock.Bottom : Dock.Top; public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException(); }