public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (!(value is ChatChannel ch)) { ch = ChatChannel.Say; } return(TccUtils.ChatChannelToBrush(ch)); }