ColorBarGalleryItemViewModel Class
Represents a gallery item view model for a color.
public class ColorBarGalleryItemViewModel : BarGalleryItemViewModel<Color>, IBarGalleryItemViewModel, INotifyPropertyChanged, IEquatable<IBarGalleryItemViewModel>
- Inheritance:
- System.Object ObservableObjectBase BarGalleryItemViewModel<System.Windows.Media.Color> Object
- Implements:
- IBarGalleryItemViewModel System.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 | System.Windows.Media.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 | System.Windows.Media.Color | The color represented by the gallery item. |
category | System.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 | System.Windows.Media.Color | The color represented by the gallery item. |
category | System.String | The item's category, or |
label | System.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
- System.Collections.Generic.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
- System.Collections.Generic.IEnumerable<ColorBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
CreateShadedCollection(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
- System.Collections.Generic.IEnumerable<ColorBarGalleryItemViewModel>:
The collection of gallery item view models that was created.
Inherited Members
- BarGalleryItemViewModel<Color>.CoerceLabel()
- BarGalleryItemViewModel<Color>.ConvertEnumValueToString<TEnum>(TEnum, Boolean)
- BarGalleryItemViewModel<Color>.ConvertEnumValueToString(Type, Object, Boolean)
- BarGalleryItemViewModel<Color>.Equals(Object)
- BarGalleryItemViewModel<Color>.Equals(IBarGalleryItemViewModel)
- BarGalleryItemViewModel<Color>.GetHashCode()
- BarGalleryItemViewModel<Color>.OnValueChanged()
- BarGalleryItemViewModel<Color>.ToString()
- BarGalleryItemViewModel<Color>.IBarGalleryItemViewModel.Value
- BarGalleryItemViewModel<Color>.Category
- BarGalleryItemViewModel<Color>.Description
- BarGalleryItemViewModel<Color>.ImageSource
- BarGalleryItemViewModel<Color>.IsLabelVisible
- BarGalleryItemViewModel<Color>.KeyTipText
- BarGalleryItemViewModel<Color>.Label
- BarGalleryItemViewModel<Color>.LayoutBehavior
- BarGalleryItemViewModel<Color>.Value
- ObservableObjectBase.NotifyPropertyChanged(String)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.PropertyChanged
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetType()
- Object.MemberwiseClone()