語言

ViewExtensions 類別

定義

VisualElement 的擴充方法,提供可用來建立動畫的調整、旋轉和配置功能。

public ref class ViewExtensions abstract sealed
public static class ViewExtensions
type ViewExtensions = class
Public Module ViewExtensions
繼承
ViewExtensions

方法

名稱 Description
CancelAnimations(VisualElement)

中止專案上LayoutTo的所有動畫(例如TranslateTo、 ScaleToview等等)。

FadeTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回僅根據 opacity、length 和 easing 參數描述的內容執行淡化的工作。

FadeToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回僅根據 opacity、length 和 easing 參數描述的內容執行淡化的工作。

FadeToAsync(VisualElement, Double, UInt32, Easing)

傳回僅根據 opacity、length 和 easing 參數描述的內容執行淡化的工作。

InvalidateMeasure(VisualElement)

版面配置更新可由應用程式程式代碼強制執行,而不是依賴內建配置系統行為。 不過,通常不建議這麼做。 呼叫 InvalidateArrange、InvalidateMeasure 或 UpdateLayout 通常是不必要的,如果過度使用,可能會導致效能不佳。 在許多情況下,應用程式程式代碼可能會變更版面配置屬性,配置系統可能已經以異步方式處理更新。 版面配置系統也有優化功能,可透過父子式關聯性處理配置變更的串聯,並強制使用應用程式程式代碼的版面配置可以針對這類優化運作。 不過,在更複雜的案例中,可能會有配置情況,其中強制配置是解決計時問題或其他配置問題的最佳選項。 只要刻意和謹慎地使用它。

LayoutTo(VisualElement, Rect, UInt32, Easing)
已淘汰.
傳回工作,這個工作可簡化 由 VisualElement 參數所指定view之矩形的 界限bounds。
LayoutToAsync(VisualElement, Rect, UInt32, Easing, CancellationToken)
已淘汰.

回傳一個任務,將由參數指定的VisualElement矩形view的界限bounds放寬。

LayoutToAsync(VisualElement, Rect, UInt32, Easing)
已淘汰.
傳回工作,這個工作可簡化 由 VisualElement 參數所指定view之矩形的 界限bounds。
RelRotateTo(VisualElement, Double, UInt32, Easing)
已淘汰.

將 VisualElement 所指定的 view,從其目前的旋轉,加以旋轉 drotation。

RelRotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

將 VisualElement 所指定的 view,從其目前的旋轉,加以旋轉 drotation。

RelRotateToAsync(VisualElement, Double, UInt32, Easing)

將 VisualElement 所指定的 view,從其目前的旋轉,加以旋轉 drotation。

RelScaleTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回將 VisualElement 所指定 view 從其目前大小縮放至 dscale 的工作。

RelScaleToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回將 VisualElement 所指定 view 從其目前大小縮放至 dscale 的工作。

RelScaleToAsync(VisualElement, Double, UInt32, Easing)

傳回將 VisualElement 所指定 view 從其目前大小縮放至 dscale 的工作。

RotateTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回工作,此工作會輪替 VisualElement 、、 和 view 參數所rotationlength指定的 easing 。

RotateToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回工作,此工作會輪替 VisualElement 、、 和 view 參數所rotationlength指定的 easing 。

RotateToAsync(VisualElement, Double, UInt32, Easing)

傳回工作,此工作會輪替 VisualElement 、、 和 view 參數所rotationlength指定的 easing 。

RotateXTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回一項工作,這個工作會扭曲 所VisualElementview指定 之的 rotation X 軸,並花費時間和length使用 easing。

RotateXToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回一項工作,這個工作會扭曲 所VisualElementview指定 之的 rotation X 軸,並花費時間和length使用 easing。

RotateXToAsync(VisualElement, Double, UInt32, Easing)

傳回一項工作,這個工作會扭曲 所VisualElementview指定 之的 rotation X 軸,並花費時間和length使用 easing。

RotateYTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回工作,這個工作會扭曲 所VisualElementview指定 之的 Y 軸rotation,並花費時間和length使用 easing。

RotateYToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回工作,這個工作會扭曲 所VisualElementview指定 之的 Y 軸rotation,並花費時間和length使用 easing。

RotateYToAsync(VisualElement, Double, UInt32, Easing)

傳回工作,這個工作會扭曲 所VisualElementview指定 之的 Y 軸rotation,並花費時間和length使用 easing。

ScaleTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回將 VisualElement 所指定 view 縮放至絕對縮放比例 scale 的工作。

ScaleToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回將 VisualElement 所指定 view 縮放至絕對縮放比例 scale 的工作。

ScaleToAsync(VisualElement, Double, UInt32, Easing)

傳回將 VisualElement 所指定 view 縮放至絕對縮放比例 scale 的工作。

ScaleXTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回將 所VisualElement指定 之 view X 軸調整為絕對刻度因數 scale的工作。

ScaleXToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回將 所VisualElement指定 之 view X 軸調整為絕對刻度因數 scale的工作。

ScaleXToAsync(VisualElement, Double, UInt32, Easing)

傳回將 所VisualElement指定 之 view X 軸調整為絕對刻度因數 scale的工作。

ScaleYTo(VisualElement, Double, UInt32, Easing)
已淘汰.

傳回將 所VisualElement指定 之的 Y 軸view調整為絕對刻度係數 scale的工作。

ScaleYToAsync(VisualElement, Double, UInt32, Easing, CancellationToken)

傳回將 所VisualElement指定 之的 Y 軸view調整為絕對刻度係數 scale的工作。

ScaleYToAsync(VisualElement, Double, UInt32, Easing)

傳回將 所VisualElement指定 之的 Y 軸view調整為絕對刻度係數 scale的工作。

TranslateTo(VisualElement, Double, Double, UInt32, Easing)
已淘汰.

將專案 TranslationX 和 TranslationY 屬性從目前的值動畫到新的值。 這可確保輸入配置在與視覺效果配置相同的位置。

TranslateToAsync(VisualElement, Double, Double, UInt32, Easing, CancellationToken)

將專案 TranslationX 和 TranslationY 屬性從目前的值動畫到新的值。 這可確保輸入配置在與視覺效果配置相同的位置。

TranslateToAsync(VisualElement, Double, Double, UInt32, Easing)

將專案 TranslationX 和 TranslationY 屬性從目前的值動畫到新的值。 這可確保輸入配置在與視覺效果配置相同的位置。

適用於