NavigationPage 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Page,用於管理一疊其他頁面的巡覽和使用者體驗。
[Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._NavigationPageRenderer))]
public class NavigationPage : Xamarin.Forms.Page, Xamarin.Forms.IElementConfiguration<Xamarin.Forms.NavigationPage>, Xamarin.Forms.INavigationPageController, Xamarin.Forms.IPageContainer<Xamarin.Forms.Page>
type NavigationPage = class
inherit Page
interface IPageContainer<Page>
interface INavigationPageController
interface IElementConfiguration<NavigationPage>
- 繼承
- 屬性
- 實作
備註
請注意,在 Android 平臺上, INavigation 作業不會產生活動生命週期通知。 針對您推送或快顯的每個 Page 專案,的 Android 實 NavigationPage 作只會在單一活動中新增或移除頁面的內容。
另請注意,Windows Phone平臺會以原生方式提供流覽。 因此,您不需要使用 NavigationPage 物件來取得該平臺上的導覽。
建構函式
NavigationPage() |
初始化新的 NavigationPage 物件。 |
NavigationPage(Page) |
建立新的 NavigationPage 項目,並以 |
欄位
ActionSheetSignalName |
此方法供內部使用。 (繼承來源 Page) |
AlertSignalName |
此方法供內部使用。 (繼承來源 Page) |
BackButtonTitleProperty |
識別與 [上一頁] 按鈕標題建立關聯的屬性。 |
BarBackgroundColorProperty |
識別屬性,該屬性與 NavigationPage 列背景色彩之色彩建立關聯的。 |
BarBackgroundProperty |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 |
BarTextColorProperty |
識別屬性,該屬性與 NavigationPage 列文字色彩的色彩建立關聯。 |
BusySetSignalName |
此方法供內部使用。 (繼承來源 Page) |
CurrentPageProperty |
識別 CurrentPage 屬性。 |
HasBackButtonProperty |
HasBackButton 屬性的備份存放區。 |
HasNavigationBarProperty |
HasNavigationBar 屬性的備份存放區。 |
IconColorProperty |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 |
PromptSignalName |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 Page) |
RootPageProperty |
識別 RootPage 屬性。 |
TintProperty |
已過時。
識別 Tint 可繫結屬性。 |
TitleIconImageSourceProperty |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 |
TitleIconProperty |
已過時。
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 |
TitleViewProperty |
附加屬性的備份存放區,會取得和設定標題檢視。 |
屬性
AnchorX |
取得或設定任何轉換內中心點的 X 元件 (相對於項目界限)。 這是可繫結屬性。 (繼承來源 VisualElement) |
AnchorY |
取得或設定任何轉換內中心點的 Y 元件 (相對於項目界限)。 這是可繫結屬性。 (繼承來源 VisualElement) |
AutomationId |
取得或設定值,允許自動化架構尋找此項目並與之互動。 (繼承來源 Element) |
Background |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 VisualElement) |
BackgroundColor |
取得或設定將會填滿 VisualElement 背景的色彩。 這是可繫結屬性。 (繼承來源 VisualElement) |
BackgroundImage |
已過時。
識別用作 Page 背景的影像。 (繼承來源 Page) |
BackgroundImageSource |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 Page) |
BarBackground |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 |
BarBackgroundColor |
取得或設定 NavigationPage 頂端列的背景色彩。 |
BarTextColor |
取得或設定顯示在 NavigationPage 頂端列的文字。 |
Batched |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
Behaviors |
取得與此元素關聯的行為清單。 這是可繫結屬性。 (繼承來源 VisualElement) |
BindingContext |
取得或設定物件,這個物件包含屬於此 BindableObject 屬性繫結屬性將設為目標的屬性。 (繼承來源 BindableObject) |
Bounds |
取得項目的界限。 (繼承來源 VisualElement) |
class |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 NavigableElement) |
ClassId |
取得或設定值,用來識別語意類似項目的集合。 (繼承來源 Element) |
Clip |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 VisualElement) |
ContainerArea |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Page) |
CurrentPage |
目前在巡覽堆疊最上方的 Page。 |
DisableLayout |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
Dispatcher |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 BindableObject) |
EffectControlProvider |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Element) |
Effects |
套用至此項目的效果清單。 (繼承來源 Element) |
FlowDirection |
取得或設定配置流程方向。 (繼承來源 VisualElement) |
Height |
取得此項目的目前呈現高度。 這是唯讀的可繫結屬性。 (繼承來源 VisualElement) |
HeightRequest |
取得或設定此項目所需的高度覆寫項。 (繼承來源 VisualElement) |
Icon |
已過時。
Page 相關聯圖示的資源識別碼。 (繼承來源 Page) |
IconImageSource |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 Page) |
Id |
取得值,可用來在應用程式執行期間唯一識別項目。 (繼承來源 Element) |
IgnoresContainerArea |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Page) |
InputTransparent |
取得或設定值,這個值指出是否應該在使用者互動週期中包含此項目。 這是可繫結屬性。 (繼承來源 VisualElement) |
InternalChildren |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Page) |
IsBusy |
將頁面標記為忙碌。 這會導致平台特定全域活動指示器顯示忙碌狀態。 (繼承來源 Page) |
IsEnabled |
取得或設定值,這個值指出使用者介面中是否已啟用此項目。 這是可繫結屬性。 (繼承來源 VisualElement) |
IsFocused |
取得值,這個值指出此項目目前是否為焦點。 這是可繫結屬性。 (繼承來源 VisualElement) |
IsInNativeLayout |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
IsNativeStateConsistent |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
IsPlatformEnabled |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
IsTabStop |
取得或設定值,這個值表示此元素是否包含於索引標籤巡覽。 這是可繫結屬性。 (繼承來源 VisualElement) |
IsVisible |
取得或設定值,這個值會決定此項目是否應成為視覺化樹狀結構的一部分。 這是可繫結屬性。 (繼承來源 VisualElement) |
LogicalChildren |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Element) |
MinimumHeightRequest |
取得或設定值,這個值會覆寫項目在配置期間要求的最小高度。 (繼承來源 VisualElement) |
MinimumWidthRequest |
取得或設定值,這個值會覆寫項目在配置期間要求的最小寬度。 (繼承來源 VisualElement) |
Navigation |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 NavigableElement) |
NavigationProxy |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 NavigableElement) |
Opacity |
取得或設定套用至項目 (呈現時) 的不透明度值。 這是可繫結屬性。 (繼承來源 VisualElement) |
Padding |
Page 內容和其框線之間的間距。 (繼承來源 Page) |
Pages |
供 Xamarin.Forms 平台內部使用。 |
Parent |
取得或設定項目的父項目。 (繼承來源 Element) |
ParentView |
已過時。
取得即此項目最接近上階的項目,而此項目是 VisualElement。 (繼承來源 Element) |
Platform |
已過時。
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 Element) |
RealParent |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Element) |
Resources |
取得或設定本機資源字典。 (繼承來源 VisualElement) |
RootPage |
巡覽堆疊的根 Page。 |
Rotation |
取得或設定呈現元素時繞著 Z 軸 (仿射旋轉) 的旋轉 (度)。 (繼承來源 VisualElement) |
RotationX |
取得或設定呈現元素時繞著 X 軸 (透視旋轉) 的旋轉 (度)。 (繼承來源 VisualElement) |
RotationY |
取得或設定呈現元素時繞著 Y 軸 (透視旋轉) 的旋轉 (度)。 (繼承來源 VisualElement) |
Scale |
取得或設定套用至項目的縮放比例。 (繼承來源 VisualElement) |
ScaleX |
取得或設定要套用至 X 方向的小數位數值。 (繼承來源 VisualElement) |
ScaleY |
取得或設定要套用至 Y 方向的小數位數值。 (繼承來源 VisualElement) |
StackDepth |
供 Xamarin.Forms 平台內部使用。 |
Style |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 NavigableElement) |
StyleClass |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 NavigableElement) |
StyleId |
取得或設定使用者定義值來唯一識別項目。 (繼承來源 Element) |
TabIndex |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 VisualElement) |
Tint |
已過時。
作為 NavigationPage 濃淡使用的色彩。 |
Title |
Page 的標題。 (繼承來源 Page) |
ToolbarItems |
一組 ToolbarItem,以平台特定的方式實作。 (繼承來源 Page) |
TranslationX |
取得或設定項目的 X 轉譯差異。 (繼承來源 VisualElement) |
TranslationY |
取得或設定項目的 Y 轉譯差異。 (繼承來源 VisualElement) |
Triggers |
取得與此項目建立關聯的觸發程序清單。 這是可繫結屬性。 (繼承來源 VisualElement) |
Visual |
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 VisualElement) |
Width |
取得此項目的目前呈現寬度。 這是唯讀的可繫結屬性。 (繼承來源 VisualElement) |
WidthRequest |
取得或設定此項目所需的寬度覆寫項。 (繼承來源 VisualElement) |
X |
取得此項目的目前 X 位置。 這是唯讀的可繫結屬性。 (繼承來源 VisualElement) |
Y |
取得此項目的目前 Y 位置。 這是唯讀的可繫結屬性。 (繼承來源 VisualElement) |
方法
事件
Appearing |
指出 Page 即將出現。 (繼承來源 Page) |
BatchCommitted |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
BindingContextChanged |
每當 BindingContext 屬性變更時引發。 (繼承來源 BindableObject) |
ChildAdded |
只要將子項目新增至項目時就發生。 (繼承來源 Element) |
ChildRemoved |
只要從項目移除子項目時就發生。 (繼承來源 Element) |
ChildrenReordered |
在 VisualElement 的子系已重新排序時發生。 (繼承來源 VisualElement) |
DescendantAdded |
只要將子項目新增至項目樹狀子目錄時即發生。 (繼承來源 Element) |
DescendantRemoved |
只要從項目樹狀子目錄移除子項目時即發生。 (繼承來源 Element) |
Disappearing |
指出 Page 即將停止顯示。 (繼承來源 Page) |
FocusChangeRequested |
供 Xamarin.Forms 平台內部使用。 (繼承來源 VisualElement) |
Focused |
在項目取得焦點時發生。 (繼承來源 VisualElement) |
InsertPageBeforeRequested |
供 Xamarin.Forms 平台內部使用。 |
LayoutChanged |
Page 的配置變更時引發。 (繼承來源 Page) |
MeasureInvalidated |
視覺項目配置失效時所引發的事件。 (繼承來源 VisualElement) |
PlatformSet |
已過時。
Page,用於管理一疊其他頁面的巡覽和使用者體驗。 (繼承來源 Element) |
Popped |
從這個 NavigationPage 項目推出頁面之後所引發的事件。 |
PoppedToRoot |
從這個 NavigationPage 項目推出最後一個非根項目時所引發的事件。 |
PopRequested |
供 Xamarin.Forms 平台內部使用。 |
PopToRootRequested |
供 Xamarin.Forms 平台內部使用。 |
PropertyChanged |
在屬性變更時引發。 (繼承來源 BindableObject) |
PropertyChanging |
在屬性即將變更時引發。 (繼承來源 BindableObject) |
Pushed |
將頁面推入這個 NavigationPage 項目上方時所引發的事件。 |
PushRequested |
供 Xamarin.Forms 平台內部使用。 |
RemovePageRequested |
供 Xamarin.Forms 平台內部使用。 |
SizeChanged |
當這個項目的 Width 或 Height 屬性變更值時發生。 (繼承來源 VisualElement) |
Unfocused |
在項目失去焦點時發生。 (繼承來源 VisualElement) |
明確介面實作
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) |
供 Xamarin.Forms 平台內部使用。 (繼承來源 BindableObject) |
IElementController.SetValueFromRenderer(BindableProperty, Object) |
供 Xamarin.Forms 平台內部使用。 (繼承來源 Element) |
INameScope.RegisterName(String, Object) |
僅供內部使用。 (繼承來源 Element) |
INavigationPageController.RemoveAsyncInner(Page, Boolean, Boolean) |
供 Xamarin.Forms 平台內部使用。 |
IVisualElementController.EffectiveFlowDirection |
取得平台上項目的有效視覺流程方向,並將地區設定和邏輯流程設定納入考量。 (繼承來源 VisualElement) |
IVisualElementController.InvalidateMeasure(InvalidationTrigger) |
此方法供內部使用。 (繼承來源 VisualElement) |