AttachedShadowElementContext Class

Definition

Class which maintains the context of a Windows.UI.Composition.DropShadow for a particular Windows.UI.Xaml.UIElement linked to the definition of that shadow provided by the AttachedShadowBase implementation being used.

public sealed class AttachedShadowElementContext
type AttachedShadowElementContext = class
Public NotInheritable Class AttachedShadowElementContext
Inheritance
AttachedShadowElementContext

Constructors

AttachedShadowElementContext()

Properties

Compositor

Gets the Windows.UI.Composition.Compositor for this instance.

Element

Gets the Windows.UI.Xaml.FrameworkElement this instance is attached to

ElementVisual

Gets the Windows.UI.Composition.Visual for the Windows.UI.Xaml.FrameworkElement this instance is attached to.

IsInitialized

Gets a value indicating whether or not this AttachedShadowElementContext has been initialized.

Parent

Gets the AttachedShadowBase that contains this AttachedShadowElementContext.

Shadow

Gets the Windows.UI.Composition.DropShadow that is rendered on this instance's Element

SpriteVisual

Gets the SpriteVisual that contains the Windows.UI.Composition.DropShadow for this instance

Methods

AddResource<T>(String, T)

Adds a resource to this instance's resource dictionary with the specified key

ClearAndDisposeResources()

Disposes of any resources that implement IDisposable and then clears all resources

CreateResources()

Force early creation of this instance's resources, otherwise they will be created automatically when Element is loaded.

GetResource<T>(String)

Retries a resource with the specified key and type

RemoveAndDisposeResource<T>(String)

Removes an existing resource with the specified key and type, and disposes it

RemoveResource<T>(String)

Removes an existing resource with the specified key and type

TryGetResource<T>(String, T)

Retrieves a resource with the specified key and type if it exists

Applies to