ElementCompositeMode ElementCompositeMode ElementCompositeMode ElementCompositeMode Enum

Definition

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

public : enum class ElementCompositeMode
enum class winrt::Windows::UI::Xaml::Media::ElementCompositeMode : int32_t
public enum ElementCompositeMode
Public Enum ElementCompositeMode
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 0

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

MinBlend MinBlend MinBlend MinBlend 2

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

SourceOver SourceOver SourceOver SourceOver 1

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;

See also