共用方式為


ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) 方法

定義

切換設定、製作動畫,並使用轉譯時間後置版面配置轉譯轉換,以使用組合 API 在畫面上放置 XAML 元素的功能。

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)

參數

element
UIElement

要啟用或停用轉譯轉換的專案。

value
Boolean

bool

true 表示啟用翻譯轉換; false 表示停用翻譯轉換。

適用於