ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) Method

Definition

Toggles the ability to set, animate, and use a render-time post-layout translate transform to position XAML elements on screen using Composition APIs.

public : static void SetIsTranslationEnabled(UIElement element, bool value)
static void SetIsTranslationEnabled(UIElement element, bool value) const;
public static void SetIsTranslationEnabled(UIElement element, Boolean value)
Public Shared Sub SetIsTranslationEnabled(element As UIElement, value As Boolean)

Parameters

element
UIElement UIElement

The element on which to enable or disable translate transforms.

value
Boolean Boolean

true to enable translate transforms; false to disable translate transforms.

Additional features and requirements

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