XamlGlyph.XamlColor Struct
Defines a color used by a XAML path.
public struct XamlGlyph.XamlColor
Remarks
For internal use only.
Constructors
XamlColor()
Initializes an instance of structure.
public XamlColor()
Properties
Binding
The color binding.
public XamlGlyph.XamlColorBinding Binding { readonly get; set; }
Property Value
- XamlGlyph.XamlColorBinding:
One of the XamlGlyph.XamlColorBinding values.
Color
The color.
public Color Color { readonly get; set; }
Property Value
Methods
ResolveColor(Color, Color)
Resolves the color to be used.
public readonly 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
The XamlGlyph.XamlColor configured to bind to the background color.
public static readonly XamlGlyph.XamlColor Background
Foreground
The XamlGlyph.XamlColor configured to bind to the foreground color.
public static readonly XamlGlyph.XamlColor Foreground
None
The XamlGlyph.XamlColor which indicates no color is applied.
public static readonly XamlGlyph.XamlColor None