ShellContent 類別

定義

ShellSection 中包含的 ContentPage 相對應。

[Xamarin.Forms.ContentProperty("Content")]
public class ShellContent : Xamarin.Forms.BaseShellItem, Xamarin.Forms.IShellContentController
type ShellContent = class
    inherit BaseShellItem
    interface IShellContentController
    interface IElementController
繼承
屬性
實作

建構函式

ShellContent()

ShellSection 中包含的 ContentPage 相對應。

欄位

ContentProperty

Content 欄位的備份存放區。

ContentTemplateProperty

ContentTemplate 欄位的備份存放區。

MenuItemsProperty

MenuItems 欄位的備份存放區。

屬性

AutomationId

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

(繼承來源 Element)
BindingContext

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

(繼承來源 BindableObject)
class

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 NavigableElement)
ClassId

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

(繼承來源 Element)
Content

取得或設定 Page

ContentTemplate

取得或設定要在 ShellContent 變成使用中時建立的資料範本。

Dispatcher

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BindableObject)
EffectControlProvider

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
Effects

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

(繼承來源 Element)
FlyoutIcon

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

(繼承來源 BaseShellItem)
Icon

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

(繼承來源 BaseShellItem)
Id

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

(繼承來源 Element)
IsChecked

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

(繼承來源 BaseShellItem)
IsEnabled

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

(繼承來源 BaseShellItem)
IsTabStop

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

(繼承來源 BaseShellItem)
IsVisible

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BaseShellItem)
LogicalChildren

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
MenuItems

新增 MenuItem 執行個體至飛出視窗。

Navigation

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 NavigableElement)
NavigationProxy

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 NavigableElement)
Parent

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

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

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

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

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 Element)
RealParent

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
Route

用於處理該項目的字串。

(繼承來源 BaseShellItem)
Style

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 NavigableElement)
StyleClass

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 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)

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BindableObject)
Descendants()

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
EffectIsAttached(String)

供 Xamarin.Forms 平台內部使用。

(繼承來源 Element)
FindByName(String)

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

(繼承來源 Element)
GetValue(BindableProperty)

傳回 BindableProperty 中包含的值。

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

供 Xamarin.Forms 平台內部使用。

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

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
IsSet(BindableProperty)

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

(繼承來源 BindableObject)
OnAppearing()

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BaseShellItem)
OnBindingContextChanged()

只要項目的繫結內容變更時就叫用。 實作這個方法可為此事件加入類別處理。

(繼承來源 Element)
OnChildAdded(Element)

ShellSection 中包含的 ContentPage 相對應。

OnChildRemoved(Element)
已過時。

ShellSection 中包含的 ContentPage 相對應。

OnChildRemoved(Element, Int32)

ShellSection 中包含的 ContentPage 相對應。

OnDisappearing()

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BaseShellItem)
OnParentSet()

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 NavigableElement)
OnPropertyChanged(String)

當屬性變更時呼叫。

(繼承來源 BaseShellItem)
OnPropertyChanging(String)

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

(繼承來源 BindableObject)
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)

運算子

Implicit(TemplatedPage to ShellContent)

主要是由 XAML 用來以隱含方式使用 ShellContent 包裝頁面。

事件

Appearing

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 BaseShellItem)
BindingContextChanged

每當 BindingContext 屬性變更時引發。

(繼承來源 BindableObject)
ChildAdded

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

(繼承來源 Element)
ChildRemoved

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

(繼承來源 Element)
DescendantAdded

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

(繼承來源 Element)
DescendantRemoved

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

(繼承來源 Element)
Disappearing

ShellSection 中包含的 ContentPage 相對應。

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

ShellSection 中包含的 ContentPage 相對應。

(繼承來源 Element)
PropertyChanged

在屬性變更時引發。

(繼承來源 BindableObject)
PropertyChanging

在屬性即將變更時引發。

(繼承來源 BindableObject)

明確介面實作

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台內部使用。

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

供 Xamarin.Forms 平台內部使用。

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

僅供內部使用。

(繼承來源 Element)
IShellContentController.GetOrCreateContent()

供 Xamarin.Forms 平台內部使用。

IShellContentController.IsPageVisibleChanged

ShellSection 中包含的 ContentPage 相對應。

IShellContentController.Page

供 Xamarin.Forms 平台內部使用。

IShellContentController.RecyclePage(Page)

供 Xamarin.Forms 平台內部使用。

擴充方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

ShellSection 中包含的 ContentPage 相對應。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

ShellSection 中包含的 ContentPage 相對應。

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

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

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

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

SetOnAppTheme<T>(BindableObject, BindableProperty, T, T)

ShellSection 中包含的 ContentPage 相對應。

FindByName<T>(Element, String)

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

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

ShellSection 中包含的 ContentPage 相對應。

GetTabIndexesOnParentPage(ITabStopElement, Int32)

ShellSection 中包含的 ContentPage 相對應。

適用於