Jaa


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 const& element, bool const& value);
public static void SetIsTranslationEnabled(UIElement element, bool value);
function setIsTranslationEnabled(element, value)
Public Shared Sub SetIsTranslationEnabled (element As UIElement, value As Boolean)

Parameters

element
UIElement

The element on which to enable or disable translate transforms.

value
Boolean

bool

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

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to