XamlGlyph.XamlColor Struct
Defines a color used by a XAML path.
public struct XamlGlyph.XamlColor
Remarks
For internal use only.
Constructors
XamlColor()
Initializes a new instance of XamlGlyph.XamlColor.
public XamlColor()
Properties
Binding
Gets or sets the color binding.
public XamlGlyph.XamlColorBinding Binding { readonly get; set; }
Property Value
- XamlGlyph.XamlColorBinding:
One of the XamlGlyph.XamlColorBinding values.
Color
Gets or sets the color.
public Color Color { readonly get; set; }
Property Value
Methods
ResolveColor(Color, Color)
Resolves the color to be used.
public Color ResolveColor(Color foreground, Color background)
Parameter | Type | Description |
---|---|---|
foreground | Color | The color to be used when bound to foreground. |
background | Color | The color to be used when bound to background. |
Returns
- Color:
The color to be used.
Fields
Background
Gets the XamlGlyph.XamlColor configured to bind to the background color.
public static readonly XamlGlyph.XamlColor Background
Foreground
Gets the XamlGlyph.XamlColor configured to bind to the foreground color.
public static readonly XamlGlyph.XamlColor Foreground
None
Gets the XamlGlyph.XamlColor which indicates no color is applied.
public static readonly XamlGlyph.XamlColor None