ShellContent 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
與 ShellSection 中包含的 ContentPage 相對應。
public ref class ShellContent : Microsoft::Maui::Controls::BaseShellItem, Microsoft::Maui::Controls::IShellContentController, Microsoft::Maui::IVisualTreeElement
[Microsoft.Maui.Controls.ContentProperty("Content")]
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ShellContent+ShellContentConverter))]
public class ShellContent : Microsoft.Maui.Controls.BaseShellItem, Microsoft.Maui.Controls.IShellContentController, Microsoft.Maui.IVisualTreeElement
[Microsoft.Maui.Controls.ContentProperty("Content")]
public class ShellContent : Microsoft.Maui.Controls.BaseShellItem, Microsoft.Maui.Controls.IShellContentController, Microsoft.Maui.IVisualTreeElement
[<Microsoft.Maui.Controls.ContentProperty("Content")>]
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ShellContent+ShellContentConverter))>]
type ShellContent = class
inherit BaseShellItem
interface IShellContentController
interface IElementController
interface IVisualTreeElement
[<Microsoft.Maui.Controls.ContentProperty("Content")>]
type ShellContent = class
inherit BaseShellItem
interface IShellContentController
interface IElementController
interface IVisualTreeElement
Public Class ShellContent
Inherits BaseShellItem
Implements IShellContentController, IVisualTreeElement
- 繼承
- 繼承
- 屬性
- 實作
建構函式
| ShellContent() |
與 ShellSection 中包含的 ContentPage 相對應。 |
欄位
| ContentProperty |
的 ContentBindable 屬性。 |
| ContentTemplateProperty |
的 ContentTemplateBindable 屬性。 |
| MenuItemsProperty |
的 MenuItemsBindable 屬性。 |
| transientNamescope |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 Element) |
屬性
| AutomationId |
取得或設定值,允許自動化架構尋找此項目並與之互動。 (繼承來源 Element) |
| BindingContext |
取得或設定 物件,其中包含屬於這個 BindableObject之系結屬性的目標屬性。 這是可繫結屬性。 (繼承來源 BindableObject) |
| class |
取得或設定 項目的樣式類別。 (繼承來源 NavigableElement) |
| ClassId |
取得或設定值,用來識別語意類似項目的集合。 (繼承來源 Element) |
| Content |
取得或設定 Page。 |
| ContentTemplate |
取得或設定要在 ShellContent 變成使用中時建立的資料範本。 |
| Dispatcher |
取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器(可能是視窗的/應用程式)。 (繼承來源 BindableObject) |
| EffectControlProvider |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
| Effects |
取得或設定將在運行時間期間套用至項目的樣式和屬性。 (繼承來源 Element) |
| FlyoutIcon |
要針對項目使用的圖示。 如果未設定這個屬性,它將轉而使用 Icon 屬性值。 (繼承來源 BaseShellItem) |
| FlyoutItemIsVisible |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 BaseShellItem) |
| Handler |
取得或設定這個項目的相關處理程式。 (繼承來源 Element) |
| Icon |
定義要在不是飛出視窗的 Chrome 組件中顯示的圖示。 (繼承來源 BaseShellItem) |
| Id |
取得值,這個值可用來在應用程式執行期間唯一識別專案。 (繼承來源 Element) |
| IsChecked |
定義目前是否已在飛出視窗中強調顯示該項目。 (繼承來源 BaseShellItem) |
| IsEnabled |
定義是否可在 Chrome 中選取該項目。 (繼承來源 BaseShellItem) |
| IsVisible |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 BaseShellItem) |
| LogicalChildren |
已淘汰.
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 Element) |
| MenuItems |
新增 MenuItem 執行個體至飛出視窗。 |
| Navigation |
取得負責處理堆疊型瀏覽的物件。 (繼承來源 NavigableElement) |
| NavigationProxy |
取得的NavigationProxy轉換Navigation。 (繼承來源 NavigableElement) |
| Parent |
取得或設定這個專案的父 Element 代。 (繼承來源 Element) |
| RealParent |
供 .NET MAUI 內部使用。 (繼承來源 Element) |
| Route |
用於處理該項目的字串。 (繼承來源 BaseShellItem) |
| Style |
取得或設定這個項目的唯 Style 一 。 (繼承來源 NavigableElement) |
| StyleClass |
取得或設定 項目的樣式類別。 (繼承來源 NavigableElement) |
| StyleId |
取得或設定使用者定義值來唯一識別項目。 (繼承來源 Element) |
| Title |
要在 UI 中顯示的標題。 (繼承來源 BaseShellItem) |
| Window |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 BaseShellItem) |
方法
操作員
| Implicit(TemplatedPage to ShellContent) |
與 ShellSection 中包含的 ContentPage 相對應。 |
事件
| Appearing |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 BaseShellItem) |
| BindingContextChanged |
發生於 BindingContext 屬性的值變更時。 (繼承來源 BindableObject) |
| ChildAdded |
每當子專案加入至 項目時引發。 (繼承來源 Element) |
| ChildRemoved |
每當從專案中移除子項目時引發。 (繼承來源 Element) |
| DescendantAdded |
每當子專案加入至專案的子樹時引發。 (繼承來源 Element) |
| DescendantRemoved |
每當從專案子樹中移除子項目時引發。 (繼承來源 Element) |
| Disappearing |
與 ShellSection 中包含的 ContentPage 相對應。 (繼承來源 BaseShellItem) |
| HandlerChanged |
每當元素的處理程式變更時引發。 (繼承來源 Element) |
| HandlerChanging |
每當元素的處理程序開始變更時引發。 (繼承來源 Element) |
| ParentChanged |
每當專案的父代變更時引發。 (繼承來源 Element) |
| ParentChanging |
每當元素開始變更時引發。 (繼承來源 Element) |
| PropertyChanged |
當屬性值變更時發生。 (繼承來源 BindableObject) |
| PropertyChanging |
屬性值正在變更時發生。 (繼承來源 BindableObject) |