ColorPaletteResources Class

Definition

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

Equivalent WinUI class: Microsoft.UI.Xaml.ColorPaletteResources.

/// [Windows.Foundation.Metadata.Composable(Windows.UI.Xaml.IColorPaletteResourcesFactory, Windows.Foundation.Metadata.CompositionType.Public, 458752, "Windows.Foundation.UniversalApiContract")]
/// [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)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class ColorPaletteResources : ResourceDictionary
[Windows.Foundation.Metadata.Composable(typeof(Windows.UI.Xaml.IColorPaletteResourcesFactory), Windows.Foundation.Metadata.CompositionType.Public, 458752, "Windows.Foundation.UniversalApiContract")]
[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)]
[Windows.Foundation.Metadata.WebHostHidden]
public class ColorPaletteResources : ResourceDictionary
Public Class ColorPaletteResources
Inherits ResourceDictionary
Inheritance
Attributes

Windows 10 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.

Equivalent WinUI constructor: Microsoft.UI.Xaml.ColorPaletteResources.ColorPaletteResources.

Properties

Accent

Gets or sets the Accent color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.Accent.

AltHigh

Gets or sets the AltHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.AltHigh.

AltLow

Gets or sets the AltLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.AltLow.

AltMedium

Gets or sets the AltMedium color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.AltMedium.

AltMediumHigh

Gets or sets the AltMediumHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.AltMediumHigh.

AltMediumLow

Gets or sets the AltMediumLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.AltMediumLow.

BaseHigh

Gets or sets the BaseHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.BaseHigh.

BaseLow

Gets or sets the BaseLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.BaseLow.

BaseMedium

Gets or sets the BaseMedium color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.BaseMedium.

BaseMediumHigh

Gets or sets the BaseMediumHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.BaseMediumHigh.

BaseMediumLow

Gets or sets the BaseMediumLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.BaseMediumLow.

ChromeAltLow

Gets or sets the ChromeAltLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeAltLow.

ChromeBlackHigh

Gets or sets the ChromeBlackHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeBlackHigh.

ChromeBlackLow

Gets or sets the ChromeBlackLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeBlackLow.

ChromeBlackMedium

Gets or sets the ChromeBlackMedium color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeBlackMedium.

ChromeBlackMediumLow

Gets or sets the ChromeBlackMediumLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeBlackMediumLow.

ChromeDisabledHigh

Gets or sets the ChromeDisabledHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeDisabledHigh.

ChromeDisabledLow

Gets or sets the ChromeDisabledLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeDisabledLow.

ChromeGray

Gets or sets the ChromeGray color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeGray.

ChromeHigh

Gets or sets the ChromeHigh color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeHigh.

ChromeLow

Gets or sets the ChromeLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeLow.

ChromeMedium

Gets or sets the ChromeMedium color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeMedium.

ChromeMediumLow

Gets or sets the ChromeMediumLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeMediumLow.

ChromeWhite

Gets or sets the ChromeWhite color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ChromeWhite.

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.

Equivalent WinUI property: Microsoft.UI.Xaml.DependencyObject.Dispatcher.

(Inherited from DependencyObject)
ErrorText

Gets or sets the ErrorText color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ErrorText.

ListLow

Gets or sets the ListLow color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ListLow.

ListMedium

Gets or sets the ListMedium color value.

Equivalent WinUI property: Microsoft.UI.Xaml.ColorPaletteResources.ListMedium.

MergedDictionaries

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

Equivalent WinUI property: Microsoft.UI.Xaml.ResourceDictionary.MergedDictionaries.

(Inherited from ResourceDictionary)
Size

Gets the number of elements contained in the collection.

Equivalent WinUI property: Microsoft.UI.Xaml.ResourceDictionary.Size.

(Inherited from ResourceDictionary)
Source

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

Equivalent WinUI property: Microsoft.UI.Xaml.ResourceDictionary.Source.

(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".

Equivalent WinUI property: Microsoft.UI.Xaml.ResourceDictionary.ThemeDictionaries.

(Inherited from ResourceDictionary)

Methods

Clear()

Removes all items from this ResourceDictionary.

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.Clear.

(Inherited from ResourceDictionary)
ClearValue(DependencyProperty)

Clears the local value of a dependency property.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.ClearValue.

(Inherited from DependencyObject)
First()

Returns an iterator for the items in the collection.

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.First.

(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.

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.GetAnimationBaseValue.

(Inherited from DependencyObject)
GetValue(DependencyProperty)

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

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.GetValue.

(Inherited from DependencyObject)
GetView()

Retrieves a view against the ResourceDictionary.

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.GetView.

(Inherited from ResourceDictionary)
HasKey(Object)

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

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.HasKey.

(Inherited from ResourceDictionary)
Insert(Object, Object)

Adds a new entry to the ResourceDictionary.

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.Insert.

(Inherited from ResourceDictionary)
Lookup(Object)

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

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.Lookup.

(Inherited from ResourceDictionary)
ReadLocalValue(DependencyProperty)

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

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.ReadLocalValue.

(Inherited from DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

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

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.RegisterPropertyChangedCallback.

(Inherited from DependencyObject)
Remove(Object)

Removes a specific item from the ResourceDictionary.

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.Remove.

(Inherited from ResourceDictionary)
SetValue(DependencyProperty, Object)

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

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.SetValue.

(Inherited from DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

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

Equivalent WinUI method: Microsoft.UI.Xaml.DependencyObject.UnregisterPropertyChangedCallback.

(Inherited from DependencyObject)

Applies to