EntranceNavigationTransitionInfo 類別

定義

指定要在 內容出現在頁面上時執行的動畫。

public ref class EntranceNavigationTransitionInfo sealed : NavigationTransitionInfo
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class EntranceNavigationTransitionInfo final : NavigationTransitionInfo
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class EntranceNavigationTransitionInfo final : NavigationTransitionInfo
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class EntranceNavigationTransitionInfo : NavigationTransitionInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class EntranceNavigationTransitionInfo : NavigationTransitionInfo
Public NotInheritable Class EntranceNavigationTransitionInfo
Inherits NavigationTransitionInfo
繼承
Object Platform::Object IInspectable DependencyObject NavigationTransitionInfo EntranceNavigationTransitionInfo
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

EntranceNavigationTransitionInfo類別代表頁面重新整理動畫。 頁面重新整理是向上滑動動畫和淡入/淡出動畫的組合,適用於傳入內容。

使用 Windows 10 1803 版時,Frame 會使用NavigationThemeTransition在頁面之間產生導覽的動畫效果。 根據預設,動畫為 Page Refresh ,因為 DefaultNavigationTransitionInfo 是 EntranceNavigationTransitionInfo。

XAML 附加屬性

EntranceNavigationTransitionInfo 是 XAML 附加屬性的主機服務類別。

為了支援 XAML 處理器存取附加屬性,以及公開對等 的 getset 作業給程式碼,每個 XAML 附加屬性都有一對 Get 和 Set 存取子方法。 在程式碼中取得或設定值的另一種方式是使用相依性屬性系統,呼叫 GetValueSetValue ,並將識別碼欄位傳遞為相依性屬性識別碼。

附加屬性 描述
IsTargetElement 取得或設定值,這個值表示專案是否為動畫的目標。

建構函式

EntranceNavigationTransitionInfo()

初始化 EntranceNavigationTransitionInfo 類別的新實例。

屬性

Dispatcher

取得與此物件相關聯的 CoreDispatcherCoreDispatcher代表可以存取 UI 執行緒上DependencyObject的功能,即使程式碼是由非 UI 執行緒起始也一樣。

(繼承來源 DependencyObject)
IsTargetElementProperty

識別 EntranceNavigationTransitionInfo.IsTargetElement XAML 附加屬性。

附加屬性

IsTargetElement

取得或設定值,這個值表示專案是否為動畫的目標。

方法

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetIsTargetElement(UIElement)

取得目標專案的 EntranceNavigationTransitionInfo.IsTargetElement XAML 附加屬性的值。

GetNavigationStateCore()

在衍生類別中實作時,取得透過 Frame.Navigate 和類似 API 回報流覽動作的流覽狀態字串。

(繼承來源 NavigationTransitionInfo)
GetValue(DependencyProperty)

DependencyObject傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
ReadLocalValue(DependencyProperty)

如果已設定本機值,則傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此DependencyObject實例上特定DependencyProperty的變更。

(繼承來源 DependencyObject)
SetIsTargetElement(UIElement, Boolean)

設定目標專案的 EntranceNavigationTransitionInfo.IsTargetElement XAML 附加屬性的值。

SetNavigationStateCore(String)

在衍生類別中實作時,設定透過 Frame.Navigate 和類似 API 傳遞導覽動作的流覽狀態字串。

(繼承來源 NavigationTransitionInfo)
SetValue(DependencyProperty, Object)

DependencyObject上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback註冊的變更通知。

(繼承來源 DependencyObject)

適用於

另請參閱