ElementCompositionPreview.SetIsTranslationEnabled(UIElement, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
切換設定、製作動畫,並使用轉譯時間後置版面配置轉譯轉換,以使用組合 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 表示停用翻譯轉換。