ColorBarGalleryItemViewModel Class
Represents a gallery item view model for a color.
public class ColorBarGalleryItemViewModel : BarGalleryItemViewModel<Color>, IBarGalleryItemViewModel, IEquatable<IBarGalleryItemViewModel>
- Inheritance:
- object ObservableObjectBase BarGalleryItemViewModel<Color> object
- Implements:
- IBarGalleryItemViewModel IEquatable<IBarGalleryItemViewModel>
Constructors
ColorBarGalleryItemViewModel()
Initializes a new instance of the class.
public ColorBarGalleryItemViewModel()
ColorBarGalleryItemViewModel(Color)
Initializes a new instance of the class with the specified color.
public ColorBarGalleryItemViewModel(Color value)
Parameter | Type | Description |
---|---|---|
value | Color | The color represented by the gallery item. |
ColorBarGalleryItemViewModel(Color, string)
Initializes a new instance of the class with the specified color and category.
public ColorBarGalleryItemViewModel(Color value, string category)
Parameter | Type | Description |
---|---|---|
value | Color | The color represented by the gallery item. |
category | string | The item's category, or |
ColorBarGalleryItemViewModel(Color, string, string)
Initializes a new instance of the class with the specified color, category, and label.
public ColorBarGalleryItemViewModel(Color value, string category, string label)
Parameter | Type | Description |
---|---|---|
value | Color | The color represented by the gallery item. |
category | string | The item's category, or |
label | string | The text label to display, or |
Methods
CreateDefaultColorPickerCollection()
Creates a default collection of gallery item view models representing a number of standard colors and their various shades, intended for use in a color picker gallery.
public static IEnumerable<ColorBarGalleryItemViewModel> CreateDefaultColorPickerCollection()
Returns
- IEnumerable<ColorBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
CreateDefaultTextHighlightCollection()
Creates a default collection of gallery item view models representing a number of background highlight colors, intended for use in a text highlight gallery.
public static IEnumerable<ColorBarGalleryItemViewModel> CreateDefaultTextHighlightCollection()
Returns
- IEnumerable<ColorBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
CreateShadedCollection(params ColorBarGalleryItemViewModel[])
Create a collection of gallery item view models representing the shades of colors from the specified base color gallery item view models.
public static IEnumerable<ColorBarGalleryItemViewModel> CreateShadedCollection(params ColorBarGalleryItemViewModel[] baseViewModels)
Parameter | Type | Description |
---|---|---|
baseViewModels | ColorBarGalleryItemViewModel[] | The base color gallery item view models to examine. |
Returns
- IEnumerable<ColorBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
Inherited Members
- BarGalleryItemViewModel<Color>.CoerceLabel()
- BarGalleryItemViewModel<Color>.ConvertEnumValueToString<TEnum>(TEnum, bool)
- BarGalleryItemViewModel<Color>.ConvertEnumValueToString(Type, object, bool)
- BarGalleryItemViewModel<Color>.Equals(object)
- BarGalleryItemViewModel<Color>.Equals(IBarGalleryItemViewModel)
- BarGalleryItemViewModel<Color>.GetHashCode()
- BarGalleryItemViewModel<Color>.OnValueChanged()
- BarGalleryItemViewModel<Color>.ToString()
- BarGalleryItemViewModel<Color>.Category
- BarGalleryItemViewModel<Color>.Description
- BarGalleryItemViewModel<Color>.ImageSource
- BarGalleryItemViewModel<Color>.IsLabelVisible
- BarGalleryItemViewModel<Color>.IsVisible
- BarGalleryItemViewModel<Color>.KeyTipText
- BarGalleryItemViewModel<Color>.Label
- BarGalleryItemViewModel<Color>.LayoutBehavior
- BarGalleryItemViewModel<Color>.Value
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)