Compositor Compositor Compositor Compositor Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Manages the session between an application and the system compositor process.

The Compositor class creates an instance of the Compositor for the application that can be used as a factory for a variety of types in the Windows.UI.Composition namespace spanning the visual layer, effects system and animation system. The Compositor class also manages the lifetime of objects created from the factory.

public : sealed class Compositor : IClosable, ICompositor, ICompositor2, ICompositor3, ICompositor4
struct winrt::Windows::UI::Composition::Compositor : IClosable, ICompositor, ICompositor2, ICompositor3, ICompositor4
public sealed class Compositor : IDisposable, ICompositor, ICompositor2, ICompositor3, ICompositor4
Public NotInheritable Class Compositor Implements IDisposable, ICompositor, ICompositor2, ICompositor3, ICompositor4
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The Compositor implicitly synchronizes changes made to associated visuals to ensure they get applied in a transactional manner.

See the Composition UI Overview and Composition Visual Tree Overview for more information.

New instances of Compositor must be created on a thread that has a CoreDispatcher.

Constructors

Compositor() Compositor() Compositor() Compositor()

Creates an instance of Compositor.

public : Compositor()
Compositor() const;
public Compositor()
Public Sub New()

Properties

Comment Comment Comment Comment

Prerelease. Gets or sets a string to associate with the Compositor.

public : Platform::String Comment { get; set; }
winrt::hstring Comment(); void Comment(winrt::hstring comment);
public string Comment { get; set; }
Public ReadWrite Property Comment As string
Value
string string

A string to associate with the Compositor.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

GlobalPlaybackRate GlobalPlaybackRate GlobalPlaybackRate GlobalPlaybackRate

Prerelease. Gets or sets the rate at which animation plays for all KeyFrame animations created by this compositor.

public : float GlobalPlaybackRate { get; set; }
float GlobalPlaybackRate(); void GlobalPlaybackRate(float globalplaybackrate);
public float GlobalPlaybackRate { get; set; }
Public ReadWrite Property GlobalPlaybackRate As float
Value
float float

The rate at which animation plays for all animations created by this compositor.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Remarks

This property has an effect only on KeyFrameAnimation s.

MaxGlobalPlaybackRate MaxGlobalPlaybackRate MaxGlobalPlaybackRate MaxGlobalPlaybackRate

Prerelease. Gets the maximum allowed playback rate for all KeyFrame animations created by this compositor..

public : static float MaxGlobalPlaybackRate { get; }
static float MaxGlobalPlaybackRate();
public static float MaxGlobalPlaybackRate { get; }
Public Static ReadOnly Property MaxGlobalPlaybackRate As float
Value
float float

The maximum allowed playback rate.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

MinGlobalPlaybackRate MinGlobalPlaybackRate MinGlobalPlaybackRate MinGlobalPlaybackRate

Prerelease. Gets the minimum allowed playback rate for all KeyFrame animations created by this compositor.

public : static float MinGlobalPlaybackRate { get; }
static float MinGlobalPlaybackRate();
public static float MinGlobalPlaybackRate { get; }
Public Static ReadOnly Property MinGlobalPlaybackRate As float
Value
float float

The minimum allowed playback rate.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Methods

Close() Close() Close() Close()

Closes the Compositor object and releases system resources.

public : void Close()
void Close() const;
// This member is not implemented in C#
' This member is not implemented in VB.Net

CreateAmbientLight() CreateAmbientLight() CreateAmbientLight() CreateAmbientLight()

Creates an instance of AmbientLight.

public : AmbientLight CreateAmbientLight()
AmbientLight CreateAmbientLight() const;
public AmbientLight CreateAmbientLight()
Public Function CreateAmbientLight() As AmbientLight
Returns

Returns the created AmbientLight object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreateAnimationGroup() CreateAnimationGroup() CreateAnimationGroup() CreateAnimationGroup()

Creates an instance of CompositionAnimationGroup.

public : CompositionAnimationGroup CreateAnimationGroup()
CompositionAnimationGroup CreateAnimationGroup() const;
public CompositionAnimationGroup CreateAnimationGroup()
Public Function CreateAnimationGroup() As CompositionAnimationGroup
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CreateBackdropBrush() CreateBackdropBrush() CreateBackdropBrush() CreateBackdropBrush()

Creates an instance of CompositionBackdropBrush.

public : CompositionBackdropBrush CreateBackdropBrush()
CompositionBackdropBrush CreateBackdropBrush() const;
public CompositionBackdropBrush CreateBackdropBrush()
Public Function CreateBackdropBrush() As CompositionBackdropBrush
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Examples


// Create an effect description 

GaussianBlurEffect blurEffect = new GaussianBlurEffect() 
{ 
  Name = "Blur", 
  BlurAmount = 1.0f, 
  BorderMode = EffectBorderMode.Hard, 
  Optimization = EffectOptimization.Balanced 
}; 

blurEffect.Source = new CompositionEffectSourceParameter("source"); 

CompositionEffectFactory blurEffectFactory = _compositor.CreateEffectFactory(blurEffect); 

CompositionEffectBrush blurBrush = blurEffectFactory.CreateBrush(); 

// Create a BackdropBrush and bind it to the EffectSourceParameter “source” 
CompositionBackdropBrush backdropBrush = _compositor.CreateBackdropBrush(); 

blurBrush.SetSourceParameter("source", backdropBrush); 

Remarks

See the remarks section of CompositionEffectBrush for information on creating and using effects.

CreateBounceScalarAnimation() CreateBounceScalarAnimation() CreateBounceScalarAnimation() CreateBounceScalarAnimation()

Prerelease. Creates an instance of BounceScalarNaturalMotionAnimation.

public : BounceScalarNaturalMotionAnimation CreateBounceScalarAnimation()
BounceScalarNaturalMotionAnimation CreateBounceScalarAnimation() const;
public BounceScalarNaturalMotionAnimation CreateBounceScalarAnimation()
Public Function CreateBounceScalarAnimation() As BounceScalarNaturalMotionAnimation
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateBounceVector2Animation() CreateBounceVector2Animation() CreateBounceVector2Animation() CreateBounceVector2Animation()

Prerelease. Creates an instance of BounceVector2NaturalMotionAnimation.

public : BounceVector2NaturalMotionAnimation CreateBounceVector2Animation()
BounceVector2NaturalMotionAnimation CreateBounceVector2Animation() const;
public BounceVector2NaturalMotionAnimation CreateBounceVector2Animation()
Public Function CreateBounceVector2Animation() As BounceVector2NaturalMotionAnimation
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateBounceVector3Animation() CreateBounceVector3Animation() CreateBounceVector3Animation() CreateBounceVector3Animation()

Prerelease. Creates an instance of BounceVector3NaturalMotionAnimation.

public : BounceVector3NaturalMotionAnimation CreateBounceVector3Animation()
BounceVector3NaturalMotionAnimation CreateBounceVector3Animation() const;
public BounceVector3NaturalMotionAnimation CreateBounceVector3Animation()
Public Function CreateBounceVector3Animation() As BounceVector3NaturalMotionAnimation
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateColorBrush() CreateColorBrush() CreateColorBrush() CreateColorBrush()

Creates an instance of CompositionColorBrush.

public : CompositionColorBrush CreateColorBrush()
CompositionColorBrush CreateColorBrush() const;
public CompositionColorBrush CreateColorBrush()
Public Function CreateColorBrush() As CompositionColorBrush
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
See Also

CreateColorBrush(Color) CreateColorBrush(Color) CreateColorBrush(Color) CreateColorBrush(Color)

Creates an instance of CompositionColorBrush using the specified color.

public : CompositionColorBrush CreateColorBrush(Color color)
CompositionColorBrush CreateColorBrush(Color color) const;
public CompositionColorBrush CreateColorBrush(Color color)
Public Function CreateColorBrush(color As Color) As CompositionColorBrush
Parameters
color
Color Color

The color for the brush to use.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
See Also

CreateColorGradientStop() CreateColorGradientStop() CreateColorGradientStop() CreateColorGradientStop()

Creates an instance of CompositionColorGradientStop.

public : CompositionColorGradientStop CreateColorGradientStop()
CompositionColorGradientStop CreateColorGradientStop() const;
public CompositionColorGradientStop CreateColorGradientStop()
Public Function CreateColorGradientStop() As CompositionColorGradientStop
Returns

The created CompositionColorGradientStop object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color)

Creates an instance of CompositionColorGradientStop with the specified offset and color.

public : CompositionColorGradientStop CreateColorGradientStop(float offset, Color color)
CompositionColorGradientStop CreateColorGradientStop(Single offset, Color color) const;
public CompositionColorGradientStop CreateColorGradientStop(Single offset, Color color)
Public Function CreateColorGradientStop(offset As Single, color As Color) As CompositionColorGradientStop
Parameters
offset
Single Single

The location of the gradient stop within the gradient vector.

color
Color Color

The color of the gradient stop.

Returns

The created CompositionColorGradientStop object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation()

Creates an instance of ColorKeyFrameAnimation.

public : ColorKeyFrameAnimation CreateColorKeyFrameAnimation()
ColorKeyFrameAnimation CreateColorKeyFrameAnimation() const;
public ColorKeyFrameAnimation CreateColorKeyFrameAnimation()
Public Function CreateColorKeyFrameAnimation() As ColorKeyFrameAnimation
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

CreateContainerShape() CreateContainerShape() CreateContainerShape() CreateContainerShape()

Prerelease. Creates an instance of CompositionContainerShape.

public : CompositionContainerShape CreateContainerShape()
CompositionContainerShape CreateContainerShape() const;
public CompositionContainerShape CreateContainerShape()
Public Function CreateContainerShape() As CompositionContainerShape
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateContainerVisual() CreateContainerVisual() CreateContainerVisual() CreateContainerVisual()

Creates an instance of ContainerVisual.

public : ContainerVisual CreateContainerVisual()
ContainerVisual CreateContainerVisual() const;
public ContainerVisual CreateContainerVisual()
Public Function CreateContainerVisual() As ContainerVisual
Returns

Returns the created ContainerVisual object.

Examples


//
// Set up Windows.UI.Composition Compositor, root ContainerVisual, and associate with
// the CoreWindow.
//

_compositor = new Compositor();

_root = _compositor.CreateContainerVisual();
_view.CompositionRootVisual = _root;


//
// Create a simple scene.
//

var child = _compositor.CreateSpriteVisual();
child.Brush = _compositor.CreateColorBrush(Color.FromArgb(0xFF, 0x00, 0xCC, 0x00));
child.Offset = new Vector2(50.0f, 50.0f);
child.Size = new Vector2(200, 200);

_root.Children.InsertAtTop(child);

ref class MyClass
{
    Compositor ^ _compositor;
    CompositionTarget ^ _target;
    ContainerVisual ^ _root;

    void Initialize()
    {
        //
        // Set up Composition.
        //

        _compositor = ref new Compositor();
        _target = _compositor->CreateTargetForCurrentView();
        _root = _compositor->CreateContainerVisual();
        _target->Root = _root;


        //
        // Create a simple scene.
        //

        auto child = _compositor->CreateSpriteVisual();
        child->Brush = _compositor.CreateColorBrush(ColorHelper::FromArgb(0xFF, 0x00, 0xCC, 0x00));
        child->Offset = float2(50.0f, 50.0f);
        child->Size = float2(200, 200);

        _root->Children->InsertAtTop(child);
    }
}

CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2)

Creates an instance of CubicBezierEasingFunction.

public : CubicBezierEasingFunction CreateCubicBezierEasingFunction(Vector2 controlPoint1, Vector2 controlPoint2)
CubicBezierEasingFunction CreateCubicBezierEasingFunction(Vector2 controlPoint1, Vector2 controlPoint2) const;
public CubicBezierEasingFunction CreateCubicBezierEasingFunction(Vector2 controlPoint1, Vector2 controlPoint2)
Public Function CreateCubicBezierEasingFunction(controlPoint1 As Vector2, controlPoint2 As Vector2) As CubicBezierEasingFunction
Parameters
controlPoint1
Vector2 Vector2

The first control point for the easing function.

controlPoint2
Vector2 Vector2

The second control point for the easing function.

Returns

CreateDistantLight() CreateDistantLight() CreateDistantLight() CreateDistantLight()

Creates an instance of DistantLight.

public : DistantLight CreateDistantLight()
DistantLight CreateDistantLight() const;
public DistantLight CreateDistantLight()
Public Function CreateDistantLight() As DistantLight
Returns

Returns the created DistantLight object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreateDropShadow() CreateDropShadow() CreateDropShadow() CreateDropShadow()

Creates an instance of DropShadow.

public : DropShadow CreateDropShadow()
DropShadow CreateDropShadow() const;
public DropShadow CreateDropShadow()
Public Function CreateDropShadow() As DropShadow
Returns

Returns the created DropShadow object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect)

Creates an instance of CompositionEffectFactory.

public : CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect)
CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect) const;
public CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect)
Public Function CreateEffectFactory(graphicsEffect As IGraphicsEffect) As CompositionEffectFactory
Parameters
graphicsEffect
IGraphicsEffect IGraphicsEffect

The type of effect to create.

Returns

Remarks

Creating an effect factory compiles an effect and allows instances of that effect to be created.

See the remarks section of CompositionEffectBrush for information on creating and using effects.

Currently supported effects types are:

Effect NameDescription
ArithmeticCompositeEffectCombines two images using a weighted sum of pixels from the source images.
CompositeEffectCombines two or more images based on their alpha channel. This effect has 13 different composite modes. The composite effect accepts 2 or more inputs. When you specify 2 images, destination is the first input (index 0) and the source is the second input (index 1). If you specify more than 2 inputs the images are composited starting with the first input and the second and so on.
BlendEffect (21 of 26 modes)Combines 2 images. This effect has 26 blend modes with 21 of the modes currently supported by the Compositon API. The 5 blend modes that are currently not implemented are dissolve, hue, saturation, color, and luminosity.
ColorSourceEffectThe color source effect generates a specified solid color. It is useful as a source to other effects, such as tinting an image using a blend with a color source.
SaturationEffectAlters the saturation of an image. If you set it to 1 the output image is fully saturated. If you set it to 0 the output image is monochrome.
Transform2DEffectThe 2D affine transform effect applies a spatial transform to an image based on a 3X2 matrix. This effect can be used to rotate, scale, skew, or translate an image. Or, you can combine these operations. Affine transfers preserve parallel lines and the ratio of distances between any three points in an image.

See the Win2D namespace, Microsoft.Graphics.Canvas.Effects, for more information on the effect types.

See Also

CreateEffectFactory(IGraphicsEffect, IIterable) CreateEffectFactory(IGraphicsEffect, IIterable) CreateEffectFactory(IGraphicsEffect, IIterable) CreateEffectFactory(IGraphicsEffect, IIterable)

Creates an instance of CompositionEffectFactory specifying effect parameters that should be animatable.

public : CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect, IIterable<Platform::String> animatableProperties)
CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect, IIterable<winrt::hstring> animatableProperties) const;
public CompositionEffectFactory CreateEffectFactory(IGraphicsEffect graphicsEffect, IEnumerable<String> animatableProperties)
Public Function CreateEffectFactory(graphicsEffect As IGraphicsEffect, animatableProperties As IEnumerable<String>) As CompositionEffectFactory
Parameters
graphicsEffect
IGraphicsEffect IGraphicsEffect

The type of effect to create.

animatableProperties
IEnumerable<String> IEnumerable<String>

The list of properties that should be animatable. Properties are specified using strings of the form 'EffectName.PropertyName', where 'EffectName' identifies a graphics effect object by its IGraphicsEffect.Name property and 'PropertyName' identifies a property of that object.

Returns
See Also

CreateEllipseGeometry() CreateEllipseGeometry() CreateEllipseGeometry() CreateEllipseGeometry()

Prerelease. Creates an instance of CompositionEllipseGeometry.

public : CompositionEllipseGeometry CreateEllipseGeometry()
CompositionEllipseGeometry CreateEllipseGeometry() const;
public CompositionEllipseGeometry CreateEllipseGeometry()
Public Function CreateEllipseGeometry() As CompositionEllipseGeometry
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateExpressionAnimation() CreateExpressionAnimation() CreateExpressionAnimation() CreateExpressionAnimation()

Creates an instance of ExpressionAnimation.

public : ExpressionAnimation CreateExpressionAnimation()
ExpressionAnimation CreateExpressionAnimation() const;
public ExpressionAnimation CreateExpressionAnimation()
Public Function CreateExpressionAnimation() As ExpressionAnimation
Returns
See Also

CreateExpressionAnimation(String) CreateExpressionAnimation(String) CreateExpressionAnimation(String) CreateExpressionAnimation(String)

Creates an instance of ExpressionAnimation.

public : ExpressionAnimation CreateExpressionAnimation(Platform::String expression)
ExpressionAnimation CreateExpressionAnimation(winrt::hstring expression) const;
public ExpressionAnimation CreateExpressionAnimation(String expression)
Public Function CreateExpressionAnimation(expression As String) As ExpressionAnimation
Parameters
expression
String String

The expression describing how the ExpressionAnimation should calculate its current value.

Returns
See Also

CreateHostBackdropBrush() CreateHostBackdropBrush() CreateHostBackdropBrush() CreateHostBackdropBrush()

Creates an instance of CompositionBackdropBrush that samples from the area behind the visual, before the window is drawn.

public : CompositionBackdropBrush CreateHostBackdropBrush()
CompositionBackdropBrush CreateHostBackdropBrush() const;
public CompositionBackdropBrush CreateHostBackdropBrush()
Public Function CreateHostBackdropBrush() As CompositionBackdropBrush
Returns

Returns the created CompositionBackdropBrush.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

The standard backdrop brush samples the area immediately behind the visual where it is used.� The host backdrop brush tells the compositor to sample from the area behind the visual, before the window is drawn.� The host backdrop brush is translucent and it hit-tests as opaque. The app cannot read the pixel data back.

CreateImplicitAnimationCollection() CreateImplicitAnimationCollection() CreateImplicitAnimationCollection() CreateImplicitAnimationCollection()

Creates an instance of ImplicitAnimationCollection.

public : ImplicitAnimationCollection CreateImplicitAnimationCollection()
ImplicitAnimationCollection CreateImplicitAnimationCollection() const;
public ImplicitAnimationCollection CreateImplicitAnimationCollection()
Public Function CreateImplicitAnimationCollection() As ImplicitAnimationCollection
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Examples


class PropertyAnimation 
{ 
  PropertyAnimation(Compositor compositor, SpriteVisual heroVisual, SpriteVisual listVisual) 
  { 
    // Define ImplicitAnimationCollection 
    ImplicitAnimationCollection implicitAnimations = compositor.CreateImplicitAnimationCollection(); 

    // Trigger animation when the “Offset” property changes. 
    implicitAnimations["Offset"] = CreateAnimation(compositor); 

    // Assign ImplicitAnimations to a visual. Unlike Visual.Children,     
    // ImplicitAnimations can be shared by multiple visuals so that they  
    // share the same implicit animation behavior (same as Visual.Clip). 
    heroVisual.ImplicitAnimations = implicitAnimations; 

    // ImplicitAnimations can be shared among visuals  
    listVisual.ImplicitAnimations = implicitAnimations; 

    listVisual.Offset = new Vector3(20f, 20f, 20f); 
  } 

  Vector3KeyFrameAnimation CreateAnimation(Compositor compositor) 
  { 
    Vector3KeyFrameAnimation animation = compositor.CreateVector3KeyFrameAnimation(); 
    animation.InsertExpressionKeyFrame(0f, "this.StartingValue"); 
    animation.InsertExpressionKeyFrame(1f, "this.FinalValue"); 
    animation.Target = “Offset”; 
    animation.Duration = TimeSpan.FromSeconds(0.25); 
    return animation; 
  } 

} 

CreateInsetClip() CreateInsetClip() CreateInsetClip() CreateInsetClip()

Creates an instance of InsetClip.

public : InsetClip CreateInsetClip()
InsetClip CreateInsetClip() const;
public InsetClip CreateInsetClip()
Public Function CreateInsetClip() As InsetClip
Returns

Returns the created InsetClip object.

See Also

CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single)

Creates an instance of InsetClip.

public : InsetClip CreateInsetClip(float leftInset, float topInset, float rightInset, float bottomInset)
InsetClip CreateInsetClip(Single leftInset, Single topInset, Single rightInset, Single bottomInset) const;
public InsetClip CreateInsetClip(Single leftInset, Single topInset, Single rightInset, Single bottomInset)
Public Function CreateInsetClip(leftInset As Single, topInset As Single, rightInset As Single, bottomInset As Single) As InsetClip
Parameters
leftInset
Single Single

Inset from the left of the visual.

topInset
Single Single

Inset from the top of the visual.

rightInset
Single Single

Inset from the right of the visual.

bottomInset
Single Single

Inset from the bottom of the visual.

Returns

Returns the created InsetClip object.

See Also

CreateLayerVisual() CreateLayerVisual() CreateLayerVisual() CreateLayerVisual()

Creates an instance of LayerVisual.

public : LayerVisual CreateLayerVisual()
LayerVisual CreateLayerVisual() const;
public LayerVisual CreateLayerVisual()
Public Function CreateLayerVisual() As LayerVisual
Returns

Returns the created LayerVisual object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CreateLinearEasingFunction() CreateLinearEasingFunction() CreateLinearEasingFunction() CreateLinearEasingFunction()

Creates an instance of LinearEasingFunction.

public : LinearEasingFunction CreateLinearEasingFunction()
LinearEasingFunction CreateLinearEasingFunction() const;
public LinearEasingFunction CreateLinearEasingFunction()
Public Function CreateLinearEasingFunction() As LinearEasingFunction
Returns

CreateLinearGradientBrush() CreateLinearGradientBrush() CreateLinearGradientBrush() CreateLinearGradientBrush()

Creates an instance of CompositionLinearGradientBrush.

public : CompositionLinearGradientBrush CreateLinearGradientBrush()
CompositionLinearGradientBrush CreateLinearGradientBrush() const;
public CompositionLinearGradientBrush CreateLinearGradientBrush()
Public Function CreateLinearGradientBrush() As CompositionLinearGradientBrush
Returns

The created CompositionLinearGradientBrush object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateLineGeometry() CreateLineGeometry() CreateLineGeometry() CreateLineGeometry()

Prerelease. Creates an instance of CompositionLineGeometry.

public : CompositionLineGeometry CreateLineGeometry()
CompositionLineGeometry CreateLineGeometry() const;
public CompositionLineGeometry CreateLineGeometry()
Public Function CreateLineGeometry() As CompositionLineGeometry
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateMaskBrush() CreateMaskBrush() CreateMaskBrush() CreateMaskBrush()

Creates an instance of CompositionMaskBrush.

public : CompositionMaskBrush CreateMaskBrush()
CompositionMaskBrush CreateMaskBrush() const;
public CompositionMaskBrush CreateMaskBrush()
Public Function CreateMaskBrush() As CompositionMaskBrush
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CreateNineGridBrush() CreateNineGridBrush() CreateNineGridBrush() CreateNineGridBrush()

Creates an instance of CompositionNineGridBrush.

public : CompositionNineGridBrush CreateNineGridBrush()
CompositionNineGridBrush CreateNineGridBrush() const;
public CompositionNineGridBrush CreateNineGridBrush()
Public Function CreateNineGridBrush() As CompositionNineGridBrush
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

CreatePathGeometry() CreatePathGeometry() CreatePathGeometry() CreatePathGeometry()

Prerelease. Creates an instance of CompositionPathGeometry.

public : CompositionPathGeometry CreatePathGeometry()
CompositionPathGeometry CreatePathGeometry() const;
public CompositionPathGeometry CreatePathGeometry()
Public Function CreatePathGeometry() As CompositionPathGeometry
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath)

Prerelease. Creates an instance of CompositionPathGeometry using the specified path.

public : CompositionPathGeometry CreatePathGeometry(CompositionPath path)
CompositionPathGeometry CreatePathGeometry(CompositionPath path) const;
public CompositionPathGeometry CreatePathGeometry(CompositionPath path)
Public Function CreatePathGeometry(path As CompositionPath) As CompositionPathGeometry
Parameters
path
CompositionPath CompositionPath

The path data.

Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation()

Prerelease. Creates an instance of PathKeyFrameAnimation.

public : PathKeyFrameAnimation CreatePathKeyFrameAnimation()
PathKeyFrameAnimation CreatePathKeyFrameAnimation() const;
public PathKeyFrameAnimation CreatePathKeyFrameAnimation()
Public Function CreatePathKeyFrameAnimation() As PathKeyFrameAnimation
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreatePointLight() CreatePointLight() CreatePointLight() CreatePointLight()

Creates an instance of PointLight.

public : PointLight CreatePointLight()
PointLight CreatePointLight() const;
public PointLight CreatePointLight()
Public Function CreatePointLight() As PointLight
Returns

Returns the created PointLight object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreatePropertySet() CreatePropertySet() CreatePropertySet() CreatePropertySet()

Creates an instance of CompositionPropertySet.

public : CompositionPropertySet CreatePropertySet()
CompositionPropertySet CreatePropertySet() const;
public CompositionPropertySet CreatePropertySet()
Public Function CreatePropertySet() As CompositionPropertySet
Returns

CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation()

Creates an instance of QuaternionKeyFrameAnimation.

public : QuaternionKeyFrameAnimation CreateQuaternionKeyFrameAnimation()
QuaternionKeyFrameAnimation CreateQuaternionKeyFrameAnimation() const;
public QuaternionKeyFrameAnimation CreateQuaternionKeyFrameAnimation()
Public Function CreateQuaternionKeyFrameAnimation() As QuaternionKeyFrameAnimation
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

CreateRectangleGeometry() CreateRectangleGeometry() CreateRectangleGeometry() CreateRectangleGeometry()

Prerelease. Creates an instance of CompositionRectangleGeometry.

public : CompositionRectangleGeometry CreateRectangleGeometry()
CompositionRectangleGeometry CreateRectangleGeometry() const;
public CompositionRectangleGeometry CreateRectangleGeometry()
Public Function CreateRectangleGeometry() As CompositionRectangleGeometry
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry()

Prerelease. Creates an instance of CompositionRoundedRectangleGeometry.

public : CompositionRoundedRectangleGeometry CreateRoundedRectangleGeometry()
CompositionRoundedRectangleGeometry CreateRoundedRectangleGeometry() const;
public CompositionRoundedRectangleGeometry CreateRoundedRectangleGeometry()
Public Function CreateRoundedRectangleGeometry() As CompositionRoundedRectangleGeometry
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation()

Creates an instance of ScalarKeyFrameAnimation.

public : ScalarKeyFrameAnimation CreateScalarKeyFrameAnimation()
ScalarKeyFrameAnimation CreateScalarKeyFrameAnimation() const;
public ScalarKeyFrameAnimation CreateScalarKeyFrameAnimation()
Public Function CreateScalarKeyFrameAnimation() As ScalarKeyFrameAnimation
Returns

CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes)

Creates an instance of CompositionScopedBatch.

public : CompositionScopedBatch CreateScopedBatch(CompositionBatchTypes batchType)
CompositionScopedBatch CreateScopedBatch(CompositionBatchTypes batchType) const;
public CompositionScopedBatch CreateScopedBatch(CompositionBatchTypes batchType)
Public Function CreateScopedBatch(batchType As CompositionBatchTypes) As CompositionScopedBatch
Parameters
batchType
CompositionBatchTypes CompositionBatchTypes

The type of composition batch to create.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

CreateShapeVisual() CreateShapeVisual() CreateShapeVisual() CreateShapeVisual()

Prerelease. Creates an instance of ShapeVisual.

public : ShapeVisual CreateShapeVisual()
ShapeVisual CreateShapeVisual() const;
public ShapeVisual CreateShapeVisual()
Public Function CreateShapeVisual() As ShapeVisual
Returns

Returns the created ShapeVisual object.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateSpotLight() CreateSpotLight() CreateSpotLight() CreateSpotLight()

Creates an instance of SpotLight.

public : SpotLight CreateSpotLight()
SpotLight CreateSpotLight() const;
public SpotLight CreateSpotLight()
Public Function CreateSpotLight() As SpotLight
Returns

Returns the created SpotLight object.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreateSpringScalarAnimation() CreateSpringScalarAnimation() CreateSpringScalarAnimation() CreateSpringScalarAnimation()

Creates an instance of SpringScalarNaturalMotionAnimation.

public : SpringScalarNaturalMotionAnimation CreateSpringScalarAnimation()
SpringScalarNaturalMotionAnimation CreateSpringScalarAnimation() const;
public SpringScalarNaturalMotionAnimation CreateSpringScalarAnimation()
Public Function CreateSpringScalarAnimation() As SpringScalarNaturalMotionAnimation
Returns

The created SpringScalarNaturalMotionAnimation object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateSpringVector2Animation() CreateSpringVector2Animation() CreateSpringVector2Animation() CreateSpringVector2Animation()

Creates an instance of SpringVector2NaturalMotionAnimation.

public : SpringVector2NaturalMotionAnimation CreateSpringVector2Animation()
SpringVector2NaturalMotionAnimation CreateSpringVector2Animation() const;
public SpringVector2NaturalMotionAnimation CreateSpringVector2Animation()
Public Function CreateSpringVector2Animation() As SpringVector2NaturalMotionAnimation
Returns

The created SpringVector2NaturalMotionAnimation object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateSpringVector3Animation() CreateSpringVector3Animation() CreateSpringVector3Animation() CreateSpringVector3Animation()

Creates an instance of SpringVector3NaturalMotionAnimation.

public : SpringVector3NaturalMotionAnimation CreateSpringVector3Animation()
SpringVector3NaturalMotionAnimation CreateSpringVector3Animation() const;
public SpringVector3NaturalMotionAnimation CreateSpringVector3Animation()
Public Function CreateSpringVector3Animation() As SpringVector3NaturalMotionAnimation
Returns

The created SpringVector3NaturalMotionAnimation object.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

CreateSpriteShape() CreateSpriteShape() CreateSpriteShape() CreateSpriteShape()

Prerelease. Creates an instance of CompositionSpriteShape.

public : CompositionSpriteShape CreateSpriteShape()
CompositionSpriteShape CreateSpriteShape() const;
public CompositionSpriteShape CreateSpriteShape()
Public Function CreateSpriteShape() As CompositionSpriteShape
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry)

Prerelease. Creates an instance of CompositionSpriteShape using the specified geometry.

public : CompositionSpriteShape CreateSpriteShape(CompositionGeometry geometry)
CompositionSpriteShape CreateSpriteShape(CompositionGeometry geometry) const;
public CompositionSpriteShape CreateSpriteShape(CompositionGeometry geometry)
Public Function CreateSpriteShape(geometry As CompositionGeometry) As CompositionSpriteShape
Parameters
geometry
CompositionGeometry CompositionGeometry

The geometry of the shape to create.

Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

CreateSpriteVisual() CreateSpriteVisual() CreateSpriteVisual() CreateSpriteVisual()

Creates an instance of SpriteVisual.

public : SpriteVisual CreateSpriteVisual()
SpriteVisual CreateSpriteVisual() const;
public SpriteVisual CreateSpriteVisual()
Public Function CreateSpriteVisual() As SpriteVisual
Returns

Returns the created SpriteVisual object.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

CreateStepEasingFunction() CreateStepEasingFunction() CreateStepEasingFunction() CreateStepEasingFunction()

Creates an instance of StepEasingFunction.

public : StepEasingFunction CreateStepEasingFunction()
StepEasingFunction CreateStepEasingFunction() const;
public StepEasingFunction CreateStepEasingFunction()
Public Function CreateStepEasingFunction() As StepEasingFunction
Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Examples


StepsEasing(Compositor compositor, SpriteVisual heroVisual) 
{ 
  // This step function makes the property offset change in 5 steps  
  // i.e. goes from (0,0,0) à (20,20,20) in 5 steps. 
  StepEasingFunction steps = compositor.CreateStepEasingFunction(); 
  steps.StepCount = 5; 
  Vector3KeyFrameAnimation animation = compositor.CreateVector3KeyFrameAnimation(); 
  animation.InsertKeyFrame(0f, new Vector3(0f,0f,0f)); 
  animation.InsertKeyFrame(1f, new Vector3(20f,20f,0f), steps); 
  animation.Duration = TimeSpan.FromSeconds(2); 

  // Run animation for 4 times 
  animation.IterationCount = 4; 

  heroVisual.StartAnimation("Offset", animation); 
} 
See Also

CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32)

Creates an instance of StepEasingFunction with the specified step count.

public : StepEasingFunction CreateStepEasingFunction(int stepCount)
StepEasingFunction CreateStepEasingFunction(int32_t stepCount) const;
public StepEasingFunction CreateStepEasingFunction(Int32 stepCount)
Public Function CreateStepEasingFunction(stepCount As Int32) As StepEasingFunction
Parameters
stepCount
Int32 Int32

The step count for the StepEasingFunction.

Returns
Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
See Also

CreateSurfaceBrush() CreateSurfaceBrush() CreateSurfaceBrush() CreateSurfaceBrush()

Creates an instance of CompositionSurfaceBrush.

public : CompositionSurfaceBrush CreateSurfaceBrush()
CompositionSurfaceBrush CreateSurfaceBrush() const;
public CompositionSurfaceBrush CreateSurfaceBrush()
Public Function CreateSurfaceBrush() As CompositionSurfaceBrush
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Examples


SpriteVisual visual= compositor.CreateSpriteVisual();

var surface = graphicsDevice.CreateDrawingSurface(new Size(300, 50), 
                       Windows.Graphics.DirectX.DirectXPixelFormat.B8G8R8A8UIntNormalized, 
                       CompositionAlphaMode.Ignore); 

var surfaceBrush = _compositor.CreateSurfaceBrush(surface);
surfaceBrush.HorizontalAlignmentRatio = 0.0;
surfaceBrush.VerticalAlignmentRatio= 0.0;
surfaceBrush.Stretch = CompositionStretch.None;

visual.Brush = surfaceBrush;
See Also

CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface)

Creates an instance of CompositionSurfaceBrush using the specified composition surface.

public : CompositionSurfaceBrush CreateSurfaceBrush(ICompositionSurface surface)
CompositionSurfaceBrush CreateSurfaceBrush(ICompositionSurface surface) const;
public CompositionSurfaceBrush CreateSurfaceBrush(ICompositionSurface surface)
Public Function CreateSurfaceBrush(surface As ICompositionSurface) As CompositionSurfaceBrush
Parameters
surface
ICompositionSurface ICompositionSurface

The composition surface to associate with the CompositionSurfaceBrush.

Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)
See Also

CreateTargetForCurrentView() CreateTargetForCurrentView() CreateTargetForCurrentView() CreateTargetForCurrentView()

Creates a CompositionTarget for the current view.

public : CompositionTarget CreateTargetForCurrentView()
CompositionTarget CreateTargetForCurrentView() const;
public CompositionTarget CreateTargetForCurrentView()
Public Function CreateTargetForCurrentView() As CompositionTarget
Returns

CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation()

Creates an instance of Vector2KeyFrameAnimation.

public : Vector2KeyFrameAnimation CreateVector2KeyFrameAnimation()
Vector2KeyFrameAnimation CreateVector2KeyFrameAnimation() const;
public Vector2KeyFrameAnimation CreateVector2KeyFrameAnimation()
Public Function CreateVector2KeyFrameAnimation() As Vector2KeyFrameAnimation
Returns

CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation()

Creates an instance of Vector3KeyFrameAnimation.

public : Vector3KeyFrameAnimation CreateVector3KeyFrameAnimation()
Vector3KeyFrameAnimation CreateVector3KeyFrameAnimation() const;
public Vector3KeyFrameAnimation CreateVector3KeyFrameAnimation()
Public Function CreateVector3KeyFrameAnimation() As Vector3KeyFrameAnimation
Returns

CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation()

Creates an instance of Vector4KeyFrameAnimation.

public : Vector4KeyFrameAnimation CreateVector4KeyFrameAnimation()
Vector4KeyFrameAnimation CreateVector4KeyFrameAnimation() const;
public Vector4KeyFrameAnimation CreateVector4KeyFrameAnimation()
Public Function CreateVector4KeyFrameAnimation() As Vector4KeyFrameAnimation
Returns

CreateViewBox() CreateViewBox() CreateViewBox() CreateViewBox()

Prerelease. Creates an instance of CompositionViewBox.

public : CompositionViewBox CreateViewBox()
CompositionViewBox CreateViewBox() const;
public CompositionViewBox CreateViewBox()
Public Function CreateViewBox() As CompositionViewBox
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

// This member is not implemented in C++/CX
void Dispose()
Sub Dispose

GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes)

Retrieves a commit batch for the current commit cycle.

public : CompositionCommitBatch GetCommitBatch(CompositionBatchTypes batchType)
CompositionCommitBatch GetCommitBatch(CompositionBatchTypes batchType) const;
public CompositionCommitBatch GetCommitBatch(CompositionBatchTypes batchType)
Public Function GetCommitBatch(batchType As CompositionBatchTypes) As CompositionCommitBatch
Parameters
batchType
CompositionBatchTypes CompositionBatchTypes

The batch type.

Returns

Returns a CompositionCommitBatch representing the retrieved commit batch.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

RequestCommitAsync() RequestCommitAsync() RequestCommitAsync() RequestCommitAsync()

Prerelease.

public : IAsyncAction RequestCommitAsync()
IAsyncAction RequestCommitAsync() const;
public IAsyncAction RequestCommitAsync()
Public Function RequestCommitAsync() As IAsyncAction
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.17095.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

See Also