PaletteStyleSelectorBase<T> Class
The base class for style selectors that use palettes.
public class PaletteStyleSelectorBase<T>
where T : PaletteData, new()
- Type Parameters:
-
T
-The type of PaletteData.
- Inheritance:
- Object Object
Properties
Palette
Gets or sets the Palette of colors to use.
public Palette Palette { get; set; }
Property Value
Exceptions
Type | Condition |
---|---|
ArgumentNullException | value |
Methods
GetPaletteData(Int32, Int32)
Returns the proper palette data for a given item.
protected T GetPaletteData(int index, int count)
Parameter | Type | Description |
---|---|---|
index | Int32 | The item index. |
count | Int32 | The item count. |
Returns
- T:
The proper palette data for a given item.
GetSettersFromStyle(Style)
Gets the setters from style.
protected IEnumerable<Setter> GetSettersFromStyle(Style defaultStyle)
Parameter | Type | Description |
---|---|---|
defaultStyle | Style | The default style. |
Returns
- IEnumerable<Setter>:
An IEnumerable<T> of setters from a given style.
InvalidatePaletteData()
Invalidates the palette data.
protected void InvalidatePaletteData()
Fields
UnsetColor
Gets the 'unset' color value.
protected static readonly Color UnsetColor
UnsetStrokeThickness
Gets the 'unset' stroke thickness value.
protected const double UnsetStrokeThickness = -1.7976931348623157E+308