ColorPaletteResources Class
Definition
Represents a specialized resource dictionary that contains color resources used by FluentTheme elements.
public class ColorPaletteResources
Remarks
This class can only be used in Avalonia.Themes.Fluent.FluentTheme.Palettes.
Constructors
| Name | Description |
|---|---|
| ColorPaletteResources | No summary available. |
ColorPaletteResources Constructor
public ColorPaletteResources()
Methods
| Name | Description |
|---|---|
| TryGetResource | No summary available. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
TryGetResource Method
public bool TryGetResource(object key, Avalonia.Styling.ThemeVariant theme, object& value)
Parameters
key object
theme Avalonia.Styling.ThemeVariant
value object&
Returns
bool
Properties
| Name | Description |
|---|---|
| Accent | Gets or sets the Accent color value. |
| AltHigh | Gets or sets the AltHigh color value. |
| AltLow | Gets or sets the AltLow color value. |
| AltMedium | Gets or sets the AltMedium color value. |
| AltMediumHigh | Gets or sets the AltMediumHigh color value. |
| AltMediumLow | Gets or sets the AltMediumLow color value. |
| BaseHigh | Gets or sets the BaseHigh color value. |
| BaseLow | Gets or sets the BaseLow color value. |
| BaseMedium | Gets or sets the BaseMedium color value. |
| BaseMediumHigh | Gets or sets the BaseMediumHigh color value. |
| BaseMediumLow | Gets or sets the BaseMediumLow color value. |
| ChromeAltLow | Gets or sets the ChromeAltLow color value. |
| ChromeBlackHigh | Gets or sets the ChromeBlackHigh color value. |
| ChromeBlackLow | Gets or sets the ChromeBlackLow color value. |
| ChromeBlackMedium | Gets or sets the ChromeBlackMedium color value. |
| ChromeBlackMediumLow | Gets or sets the ChromeBlackMediumLow color value. |
| ChromeDisabledHigh | Gets or sets the ChromeDisabledHigh color value. |
| ChromeDisabledLow | Gets or sets the ChromeDisabledLow color value. |
| ChromeGray | Gets or sets the ChromeGray color value. |
| ChromeHigh | Gets or sets the ChromeHigh color value. |
| ChromeLow | Gets or sets the ChromeLow color value. |
| ChromeMedium | Gets or sets the ChromeMedium color value. |
| ChromeMediumLow | Gets or sets the ChromeMediumLow color value. |
| ChromeWhite | Gets or sets the ChromeWhite color value. |
| ErrorText | Gets or sets the ErrorText color value. |
| HasResources | No summary available. |
| ListLow | Gets or sets the ListLow color value. |
| ListMedium | Gets or sets the ListMedium color value. |
| RegionColor | Gets or sets the RegionColor color value. |
| Owner | Gets the owner of the resource provider. Inherited from ResourceProvider. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
Accent Property
Gets or sets the Accent color value.
public Avalonia.Media.Color Accent { get; set; }
AltHigh Property
Gets or sets the AltHigh color value.
public Avalonia.Media.Color AltHigh { get; set; }
AltLow Property
Gets or sets the AltLow color value.
public Avalonia.Media.Color AltLow { get; set; }
AltMedium Property
Gets or sets the AltMedium color value.
public Avalonia.Media.Color AltMedium { get; set; }
AltMediumHigh Property
Gets or sets the AltMediumHigh color value.
public Avalonia.Media.Color AltMediumHigh { get; set; }
AltMediumLow Property
Gets or sets the AltMediumLow color value.
public Avalonia.Media.Color AltMediumLow { get; set; }
BaseHigh Property
Gets or sets the BaseHigh color value.
public Avalonia.Media.Color BaseHigh { get; set; }
BaseLow Property
Gets or sets the BaseLow color value.
public Avalonia.Media.Color BaseLow { get; set; }
BaseMedium Property
Gets or sets the BaseMedium color value.
public Avalonia.Media.Color BaseMedium { get; set; }
BaseMediumHigh Property
Gets or sets the BaseMediumHigh color value.
public Avalonia.Media.Color BaseMediumHigh { get; set; }
BaseMediumLow Property
Gets or sets the BaseMediumLow color value.
public Avalonia.Media.Color BaseMediumLow { get; set; }
ChromeAltLow Property
Gets or sets the ChromeAltLow color value.
public Avalonia.Media.Color ChromeAltLow { get; set; }
ChromeBlackHigh Property
Gets or sets the ChromeBlackHigh color value.
public Avalonia.Media.Color ChromeBlackHigh { get; set; }
ChromeBlackLow Property
Gets or sets the ChromeBlackLow color value.
public Avalonia.Media.Color ChromeBlackLow { get; set; }
ChromeBlackMedium Property
Gets or sets the ChromeBlackMedium color value.
public Avalonia.Media.Color ChromeBlackMedium { get; set; }
ChromeBlackMediumLow Property
Gets or sets the ChromeBlackMediumLow color value.
public Avalonia.Media.Color ChromeBlackMediumLow { get; set; }
ChromeDisabledHigh Property
Gets or sets the ChromeDisabledHigh color value.
public Avalonia.Media.Color ChromeDisabledHigh { get; set; }
ChromeDisabledLow Property
Gets or sets the ChromeDisabledLow color value.
public Avalonia.Media.Color ChromeDisabledLow { get; set; }
ChromeGray Property
Gets or sets the ChromeGray color value.
public Avalonia.Media.Color ChromeGray { get; set; }
ChromeHigh Property
Gets or sets the ChromeHigh color value.
public Avalonia.Media.Color ChromeHigh { get; set; }
ChromeLow Property
Gets or sets the ChromeLow color value.
public Avalonia.Media.Color ChromeLow { get; set; }
ChromeMedium Property
Gets or sets the ChromeMedium color value.
public Avalonia.Media.Color ChromeMedium { get; set; }
ChromeMediumLow Property
Gets or sets the ChromeMediumLow color value.
public Avalonia.Media.Color ChromeMediumLow { get; set; }
ChromeWhite Property
Gets or sets the ChromeWhite color value.
public Avalonia.Media.Color ChromeWhite { get; set; }
ErrorText Property
Gets or sets the ErrorText color value.
public Avalonia.Media.Color ErrorText { get; set; }
HasResources Property
public bool HasResources { get; set; }
ListLow Property
Gets or sets the ListLow color value.
public Avalonia.Media.Color ListLow { get; set; }
ListMedium Property
Gets or sets the ListMedium color value.
public Avalonia.Media.Color ListMedium { get; set; }
RegionColor Property
Gets or sets the RegionColor color value.
public Avalonia.Media.Color RegionColor { get; set; }
Fields
| Name | Description |
|---|---|
| AccentProperty | No summary available. |
AccentProperty Field
public Avalonia.DirectProperty<Avalonia.Themes.Fluent.ColorPaletteResources, Avalonia.Media.Color> AccentProperty
Events
| Name | Description |
|---|---|
| OwnerChanged | Raised when the Avalonia.Controls.IResourceProvider.Owner of the resource provider changes. Inherited from ResourceProvider. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |