ColorPaletteFactoryBase Class
An abstract base class with helper logic for creating a ColorPalette.
public abstract class ColorPaletteFactoryBase : ObservableObjectBase, IColorPaletteFactory
- Inheritance:
- object ObservableObjectBase object
- Derived:
- DefaultColorPaletteFactory
- Implements:
- IColorPaletteFactory
Constructors
ColorPaletteFactoryBase()
Initializes an instance of the class.
protected ColorPaletteFactoryBase()
Methods
Create()
Creates and initializes a ColorPalette.
CreateColorRamp(Hue, UIColor)
Creates a non-neutral ColorRamp with shades based on a mid-tone color.
protected static ColorRamp CreateColorRamp(Hue hue, UIColor midtoneColor)
Parameter | Type | Description |
---|---|---|
hue | Hue | The Hue whose name will be the ramp name. |
midtoneColor | UIColor | The midtone (middle) shade in the ramp. |
Returns
CreateColorRamp(string, bool, UIColor)
Creates a ColorRamp with shades based on a mid-tone color.
protected static ColorRamp CreateColorRamp(string name, bool isNeutral, UIColor midtoneColor)
Parameter | Type | Description |
---|---|---|
name | string | The ramp name, which is often the color family name (e.g., |
isNeutral | bool | Whether the color ramp is for neutral (e.g., grayscale) colors. |
midtoneColor | UIColor | The midtone (middle) shade in the ramp. |
Returns
Inherited Members
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()