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 |
的可绑定属性 Content。 |
| ContentTemplateProperty |
的可绑定属性 ContentTemplate。 |
| MenuItemsProperty |
的可绑定属性 MenuItems。 |
| 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 |
定义要在不属于浮出控件的镶边部分中显示的图标。 (继承自 BaseShellItem) |
| Id |
获取一个值,该值可用于在应用程序运行过程中唯一标识元素。 (继承自 Element) |
| IsChecked |
定义项当前是否在浮出控件中突出显示。 (继承自 BaseShellItem) |
| IsEnabled |
定义项是否可在镶边中选择。 (继承自 BaseShellItem) |
| IsVisible |
对应 ShellSection 中包含的 ContentPage。 (继承自 BaseShellItem) |
| LogicalChildren |
已过时.
对应 ShellSection 中包含的 ContentPage。 (继承自 Element) |
| MenuItems |
将 MenuItem 实例添加到浮出控件。 |
| Navigation |
获取负责处理基于堆栈的导航的对象。 (继承自 NavigableElement) |
| NavigationProxy |
获取转换为 Navigation . NavigationProxy. (继承自 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) |