Class SenderColorConverter
Turn a user or room ID into one of a few colours, the same one every time, for names and avatars.
Implements
IValueConverter
Inherited Members
Namespace: Uniform.Chat.Avalonia.Views
Assembly: Uniform.Chat.Avalonia.dll
Syntax
public sealed class SenderColorConverter : IValueConverter
Methods
| Edit this page View SourceConvert(object?, Type, object?, CultureInfo)
Return the colour of an ID.
Declaration
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| Type | targetType | |
| object | parameter | |
| CultureInfo | culture |
Returns
| Type | Description |
|---|---|
| object |
ConvertBack(object?, Type, object?, CultureInfo)
Not supported.
Declaration
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | |
| Type | targetType | |
| object | parameter | |
| CultureInfo | culture |
Returns
| Type | Description |
|---|---|
| object |
Implements
Avalonia.Data.Converters.IValueConverter