Class
UnifiedColorViewModel

Represents a unified view of all color schemas (RGB, HLS, HSV, CMYK and HEX).

Definition

Namespace:Telerik.Windows.Controls.ColorEditor

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class UnifiedColorViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseUnifiedColorViewModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members ViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.PropertyChanged

Constructors

UnifiedColorViewModel(RadColorEditor)

Initializes a new instance of the UnifiedColorViewModel class.

Declaration

cs-api-definition
public UnifiedColorViewModel(RadColorEditor colorEditor)

Parameters

colorEditor

RadColorEditor

The color editor.

Properties

Cmyka

Gets or sets the Cyan, Magenta, Yellow, Key/Black (CMYK) color view model.

Declaration

cs-api-definition
public CmykaColorViewModel Cmyka { get; set; }

Property Value

CmykaColorViewModel

The color.

Hex

Gets or sets the HEX color view model.

Declaration

cs-api-definition
public HexColorViewModel Hex { get; set; }

Property Value

HexColorViewModel

The hex.

Hlsa

Gets or sets the Hue, Luminance, Saturation (HLS) color view model.

Declaration

cs-api-definition
public HlsaColorViewModel Hlsa { get; set; }

Property Value

HlsaColorViewModel

The color.

Hsva

Gets or sets the Hue, Saturation, Value (HSV) color view model.

Declaration

cs-api-definition
public HsvaColorViewModel Hsva { get; set; }

Property Value

HsvaColorViewModel

The color.

Rgba

Gets or sets the Red, Green, Blue (RGB) color view model.

Declaration

cs-api-definition
public RgbaColorViewModel Rgba { get; set; }

Property Value

RgbaColorViewModel

The color.

SelectedColorViewModel

Gets or sets the selected color view model.

Declaration

cs-api-definition
public ColorViewModel SelectedColorViewModel { get; set; }

Property Value

ColorViewModel

The selected color view model.

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

True to release both managed and unmanaged resources; False to release only unmanaged resources.

Overrides ViewModelBase.Dispose(bool)