ElementCompositeMode ElementCompositeMode ElementCompositeMode ElementCompositeMode Enum

Definition

Declares alternate composition and blending modes for elements in mixed XAML / Microsoft DirectX UI.

public : enum class ElementCompositeModepublic enum ElementCompositeModePublic Enum ElementCompositeMode// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Inherit Inherit Inherit Inherit

Uses values from successive parents in the visual tree. This is the default.

MinBlend MinBlend MinBlend MinBlend

Uses the minimum of the source and destination value for each pixel. This corresponds to D2D1_PRIMITIVE_BLEND_MIN.

SourceOver SourceOver SourceOver SourceOver

Uses standard XAML source-over-destination mode. This corresponds to D2D1_PRIMITIVE_BLEND_SOURCE_OVER.

Remarks

The destination-invert blend mode is not included in the Windows Runtime metadata definition of the enumeration, which is why (not named) appears as the name. You can set a value that enables the mode by casting the value 3 as the enumeration, for example: var compositeMode = (ElementCompositeMode)3;