ElementCompositeMode enumeration

Applies to Windows and Windows Phone

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

Syntax


public enum ElementCompositeMode

Attributes

[Version(0x06030000)]
[WebHostHidden()]

Members

The ElementCompositeMode enumeration has these members.

MemberValueDescription
Inherit0

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

SourceOver1

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

MinBlend2

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

(not named)3

Uses destination invert behavior. This corresponds to D2D1_COMPOSITE_MODE_MASK_INVERT.

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;

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

UIElement.CompositeMode property
SwapChainPanel

 

 

Show:
© 2014 Microsoft