ElementCompositeMode ElementCompositeMode ElementCompositeMode Enum

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

Syntax

Declaration

public enum ElementCompositeModepublic enum ElementCompositeModePublic Enum ElementCompositeMode

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;

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.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Media.dll