Sdílet prostřednictvím


ColorPaletteResources Class

Definition

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

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ColorPaletteResources : ResourceDictionary
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ColorPaletteResources : ResourceDictionary
Public Class ColorPaletteResources
Inherits ResourceDictionary
Inheritance
Object IInspectable DependencyObject ResourceDictionary ColorPaletteResources
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Constructors

ColorPaletteResources()

Initializes a new instance of the ColorPaletteResources class.

Properties

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.

Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)
ErrorText

Gets or sets the ErrorText color value.

ListLow

Gets or sets the ListLow color value.

ListMedium

Gets or sets the ListMedium color value.

MergedDictionaries

Gets a collection of the ResourceDictionary dictionaries that constitute the various resource dictionaries in the merged dictionaries.

(Inherited from ResourceDictionary)
Size

Gets the number of elements contained in the collection.

(Inherited from ResourceDictionary)
Source

Gets or sets a Uniform Resource Identifier (URI) that provides the source location of a merged resource dictionary.

(Inherited from ResourceDictionary)
ThemeDictionaries

Gets a collection of merged resource dictionaries that are specifically keyed and composed to address theme scenarios, for example supplying theme values for "HighContrast".

(Inherited from ResourceDictionary)

Methods

Clear()

Removes all items from this ResourceDictionary.

(Inherited from ResourceDictionary)
ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)
First()

Returns an iterator for the items in the collection.

(Inherited from ResourceDictionary)
GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)
GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)
GetView()

Retrieves a view against the ResourceDictionary.

(Inherited from ResourceDictionary)
HasKey(Object)

Returns whether the ResourceDictionary has an entry with the requested key.

(Inherited from ResourceDictionary)
Insert(Object, Object)

Adds a new entry to the ResourceDictionary.

(Inherited from ResourceDictionary)
Lookup(Object)

Returns the value from the requested key, if an entry with that key exists.

(Inherited from ResourceDictionary)
ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)
Remove(Object)

Removes a specific item from the ResourceDictionary.

(Inherited from ResourceDictionary)
SetValue(DependencyProperty, Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)

Applies to