|
|
|
@ -10,7 +10,12 @@ public class ChannelToGroupKeyConverter : IValueConverter
|
|
|
|
|
{
|
|
|
|
|
public static ChannelToGroupKeyConverter Instance { get; } = new();
|
|
|
|
|
|
|
|
|
|
public object? Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
|
|
|
|
|
public object? Convert(
|
|
|
|
|
object? value,
|
|
|
|
|
Type targetType,
|
|
|
|
|
object? parameter,
|
|
|
|
|
CultureInfo culture
|
|
|
|
|
) =>
|
|
|
|
|
value switch
|
|
|
|
|
{
|
|
|
|
|
Channel { IsThread: true, Parent: not null } channel
|
|
|
|
@ -22,9 +27,9 @@ public class ChannelToGroupKeyConverter : IValueConverter
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public object ConvertBack(
|
|
|
|
|
object value,
|
|
|
|
|
object? value,
|
|
|
|
|
Type targetType,
|
|
|
|
|
object parameter,
|
|
|
|
|
object? parameter,
|
|
|
|
|
CultureInfo culture
|
|
|
|
|
) => throw new NotSupportedException();
|
|
|
|
|
}
|
|
|
|
|