ShellContent 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
與 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) |
方法
運算子
| 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 平台內部使用。 |