using System.Globalization; using Avalonia.Data.Converters; using ClaudeDo.Ui.ViewModels.Islands; namespace ClaudeDo.Ui.Converters; // Drives ListBoxItem.Focusable for TasksIslandView's flat Rows list: a HeaderRow container must // not be a tab stop, a TaskRowViewModel container must behave like any other row. public class NotHeaderRowConverter : IValueConverter { public static NotHeaderRowConverter Instance { get; } = new(); public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => value is not HeaderRow; public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException(); }