Share via


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.

Applies to