Tab 類別

定義

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
public class Tab : Xamarin.Forms.ShellSection
type Tab = class
    inherit ShellSection
繼承
屬性

建構函式

Tab()

屬性

AutomationId

取得或設定值,允許自動化架構尋找此項目並與之互動。

(繼承來源 Element)
BindingContext

取得或設定物件,這個物件包含屬於此 BindableObject 屬性繫結屬性將設為目標的屬性。

(繼承來源 BindableObject)
class (繼承來源 NavigableElement)
ClassId

取得或設定值,用來識別語意類似項目的集合。

(繼承來源 Element)
CurrentItem

目前選取的 ShellContent

(繼承來源 ShellSection)
Dispatcher (繼承來源 BindableObject)
EffectControlProvider

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
Effects

套用至此項目的效果清單。

(繼承來源 Element)
FlyoutDisplayOptions

AsSingleItem (預設) 只會在飛出視窗中顯示此項目的標題。 AsMultipleItems 會為每個子系和 MenuItem 建立個別飛出視窗選項。

(繼承來源 ShellGroupItem)
FlyoutIcon

要針對項目使用的圖示。 如果未設定這個屬性,它將轉而使用 Icon 屬性值。

(繼承來源 BaseShellItem)
Icon

定義要在不是飛出視窗的 Chrome 組件中顯示的圖示。

(繼承來源 BaseShellItem)
Id

取得值,可用來在應用程式執行期間唯一識別項目。

(繼承來源 Element)
IsChecked

定義目前是否已在飛出視窗中強調顯示該項目。

(繼承來源 BaseShellItem)
IsEnabled

定義是否可在 Chrome 中選取該項目。

(繼承來源 BaseShellItem)
IsTabStop

指出 Tab 瀏覽中是否包含 FlyoutItem。

(繼承來源 BaseShellItem)
IsVisible (繼承來源 BaseShellItem)
Items

thisShellSection 管理之 ShellContent 物件的集合。

(繼承來源 ShellSection)
LogicalChildren

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
Navigation (繼承來源 NavigableElement)
NavigationProxy (繼承來源 NavigableElement)
Parent

取得或設定項目的父項目。

(繼承來源 Element)
ParentView
已過時。

取得即此項目最接近上階的項目,而此項目是 VisualElement

(繼承來源 Element)
Platform
已過時。
(繼承來源 Element)
RealParent

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
Route

用於處理該項目的字串。

(繼承來源 BaseShellItem)
Stack (繼承來源 ShellSection)
Style (繼承來源 NavigableElement)
StyleClass (繼承來源 NavigableElement)
StyleId

取得或設定使用者定義值來唯一識別項目。

(繼承來源 Element)
TabIndex

指定當使用者按下 Tab 鍵來瀏覽項目時,FlyoutItem 物件接收焦點的順序。

(繼承來源 BaseShellItem)
Title

要在 UI 中顯示的標題。

(繼承來源 BaseShellItem)

方法

ApplyBindings()

將繫結套用至 BindingContext

(繼承來源 BindableObject)
ClearValue(BindableProperty)

清除 SetValue 針對 property 所設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除 SetValue 針對 propertyKey 所識別屬性設定的任何值。

(繼承來源 BindableObject)
CoerceValue(BindableProperty) (繼承來源 BindableObject)
CoerceValue(BindablePropertyKey) (繼承來源 BindableObject)
Descendants()

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
EffectIsAttached(String)

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
FindByName(String)

傳回具有指定名稱的元素。

(繼承來源 Element)
GetNavigationStack() (繼承來源 ShellSection)
GetValue(BindableProperty)

傳回 BindableProperty 中包含的值。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty)
已過時。

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已過時。

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
IsSet(BindableProperty)

如果目標屬性存在且已設定,則傳回 true

(繼承來源 BindableObject)
OnAppearing() (繼承來源 BaseShellItem)
OnBindingContextChanged() (繼承來源 ShellSection)
OnChildAdded(Element)

開發人員可以覆寫這個方法以自訂新增 Element 時的行為。

(繼承來源 ShellSection)
OnChildRemoved(Element)
已過時。

開發人員可以覆寫這個方法以自訂移除子系 Element 時的行為。

(繼承來源 ShellSection)
OnChildRemoved(Element, Int32) (繼承來源 ShellSection)
OnDisappearing() (繼承來源 BaseShellItem)
OnInsertPageBefore(Page, Page) (繼承來源 ShellSection)
OnParentSet() (繼承來源 NavigableElement)
OnPopAsync(Boolean) (繼承來源 ShellSection)
OnPopToRootAsync(Boolean) (繼承來源 ShellSection)
OnPropertyChanged(String)

當屬性變更時呼叫。

(繼承來源 BaseShellItem)
OnPropertyChanging(String)

從子類別呼叫這個方法,以通知屬性即將發生變更。

(繼承來源 BindableObject)
OnPushAsync(Page, Boolean) (繼承來源 ShellSection)
OnRemovePage(Page) (繼承來源 ShellSection)
OnTabIndexPropertyChanged(Int32, Int32)

當 TabIndex 屬性變更時呼叫。

(繼承來源 BaseShellItem)
OnTabStopPropertyChanged(Boolean, Boolean)

當 IsTabStop 屬性變更時呼叫。

(繼承來源 BaseShellItem)
RemoveBinding(BindableProperty)

移除先前設定的繫結。

(繼承來源 BindableObject)
RemoveDynamicResource(BindableProperty)

移除先前設定的動態資源

(繼承來源 Element)
SetBinding(BindableProperty, BindingBase)

將繫結指派給屬性。

(繼承來源 BindableObject)
SetDynamicResource(BindableProperty, String)

透過具有所提供索引鍵的 DynamicResource,設定更新此項目的 BindableProperty 屬性。

(繼承來源 Element)
SetValue(BindableProperty, Object)

設定指定之屬性的值。

(繼承來源 BindableObject)
SetValue(BindablePropertyKey, Object)

設定 propertyKey 的值。

(繼承來源 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
SetValueFromRenderer(BindableProperty, Object)

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
TabIndexDefaultValueCreator()

呼叫來設定 TabIndex 屬性的預設值。

(繼承來源 BaseShellItem)
TabStopDefaultValueCreator()

呼叫來設定 TabStop 屬性的預設值。

(繼承來源 BaseShellItem)
UnapplyBindings()

取消套用所有先前設定的繫結。

(繼承來源 BindableObject)

事件

Appearing (繼承來源 BaseShellItem)
BindingContextChanged

每當 BindingContext 屬性變更時引發。

(繼承來源 BindableObject)
ChildAdded

只要將子項目新增至項目時就發生。

(繼承來源 Element)
ChildRemoved

只要從項目移除子項目時就發生。

(繼承來源 Element)
DescendantAdded

只要將子項目新增至項目樹狀子目錄時即發生。

(繼承來源 Element)
DescendantRemoved

只要從項目樹狀子目錄移除子項目時即發生。

(繼承來源 Element)
Disappearing (繼承來源 BaseShellItem)
PlatformSet
已過時。
(繼承來源 Element)
PropertyChanged

在屬性變更時引發。

(繼承來源 BindableObject)
PropertyChanging

在屬性即將變更時引發。

(繼承來源 BindableObject)

明確介面實作

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
IElementController.SetValueFromRenderer(BindableProperty, Object)

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
INameScope.RegisterName(String, Object)

僅供內部使用。

(繼承來源 Element)
IShellSectionController.AddContentInsetObserver(IShellContentInsetObserver)

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.AddDisplayedPageObserver(Object, Action<Page>)

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.GetItems() (繼承來源 ShellSection)
IShellSectionController.ItemsCollectionChanged (繼承來源 ShellSection)
IShellSectionController.NavigationRequested (繼承來源 ShellSection)
IShellSectionController.PresentedPage

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.RemoveContentInsetObserver(IShellContentInsetObserver)

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.RemoveDisplayedPageObserver(Object)

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.SendInsetChanged(Thickness, Double)

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.SendPopped()
已過時。

供 Xamarin.Forms 平台內部使用。

(繼承來源 ShellSection)
IShellSectionController.SendPopped(Page)
已過時。
(繼承來源 ShellSection)
IShellSectionController.SendPopping(Page)
已過時。
(繼承來源 ShellSection)
IShellSectionController.SendPopping(Task) (繼承來源 ShellSection)
IShellSectionController.SendPoppingToRoot(Task) (繼承來源 ShellSection)

擴充方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)
SetAppThemeColor(BindableObject, BindableProperty, Color, Color)
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

建立並將繫結套用至屬性。

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
已過時。

從運算式建立及套用繫結。

SetOnAppTheme<T>(BindableObject, BindableProperty, T, T)
FindByName<T>(Element, String)

傳回包含 element 的範圍中具有 name 名稱的 T 類型執行個體。

FindNextElement(ITabStopElement, Boolean, IDictionary<Int32,List<ITabStopElement>>, Int32)
GetTabIndexesOnParentPage(ITabStopElement, Int32)

適用於