Skip to main content

ColorPaletteResources Class

Definition

Assembly:Avalonia.Themes.Fluent
Package:Avalonia.Themes.Fluent

Represents a specialized resource dictionary that contains color resources used by FluentTheme elements.

public class ColorPaletteResources

Inheritance: object -> AvaloniaObject -> ResourceProvider -> ColorPaletteResources

Remarks

This class can only be used in Avalonia.Themes.Fluent.FluentTheme.Palettes.

Constructors

NameDescription
ColorPaletteResourcesNo summary available.

ColorPaletteResources Constructor

public ColorPaletteResources()

Methods

NameDescription
TryGetResourceNo summary available.
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns 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.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks 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.
VerifyAccessChecks 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

NameDescription
AccentGets or sets the Accent color value.
AltHighGets or sets the AltHigh color value.
AltLowGets or sets the AltLow color value.
AltMediumGets or sets the AltMedium color value.
AltMediumHighGets or sets the AltMediumHigh color value.
AltMediumLowGets or sets the AltMediumLow color value.
BaseHighGets or sets the BaseHigh color value.
BaseLowGets or sets the BaseLow color value.
BaseMediumGets or sets the BaseMedium color value.
BaseMediumHighGets or sets the BaseMediumHigh color value.
BaseMediumLowGets or sets the BaseMediumLow color value.
ChromeAltLowGets or sets the ChromeAltLow color value.
ChromeBlackHighGets or sets the ChromeBlackHigh color value.
ChromeBlackLowGets or sets the ChromeBlackLow color value.
ChromeBlackMediumGets or sets the ChromeBlackMedium color value.
ChromeBlackMediumLowGets or sets the ChromeBlackMediumLow color value.
ChromeDisabledHighGets or sets the ChromeDisabledHigh color value.
ChromeDisabledLowGets or sets the ChromeDisabledLow color value.
ChromeGrayGets or sets the ChromeGray color value.
ChromeHighGets or sets the ChromeHigh color value.
ChromeLowGets or sets the ChromeLow color value.
ChromeMediumGets or sets the ChromeMedium color value.
ChromeMediumLowGets or sets the ChromeMediumLow color value.
ChromeWhiteGets or sets the ChromeWhite color value.
ErrorTextGets or sets the ErrorText color value.
HasResourcesNo summary available.
ListLowGets or sets the ListLow color value.
ListMediumGets or sets the ListMedium color value.
RegionColorGets or sets the RegionColor color value.
OwnerGets the owner of the resource provider. Inherited from ResourceProvider.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited 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

NameDescription
AccentPropertyNo summary available.

AccentProperty Field

public Avalonia.DirectProperty<Avalonia.Themes.Fluent.ColorPaletteResources, Avalonia.Media.Color> AccentProperty

Events

NameDescription
OwnerChangedRaised when the Avalonia.Controls.IResourceProvider.Owner of the resource provider changes. Inherited from ResourceProvider.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.