ShellSection 类

定义

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

public ref class ShellSection : Microsoft::Maui::Controls::ShellGroupItem, Microsoft::Maui::Controls::IShellSectionController, Microsoft::Maui::IStackNavigation, Microsoft::Maui::IVisualTreeElement
[Microsoft.Maui.Controls.ContentProperty("Items")]
public class ShellSection : Microsoft.Maui.Controls.ShellGroupItem, Microsoft.Maui.Controls.IShellSectionController, Microsoft.Maui.IStackNavigation, Microsoft.Maui.IVisualTreeElement
[Microsoft.Maui.Controls.ContentProperty("Items")]
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ShellSection+ShellSectionTypeConverter))]
public class ShellSection : Microsoft.Maui.Controls.ShellGroupItem, Microsoft.Maui.Controls.IShellSectionController, Microsoft.Maui.IStackNavigation, Microsoft.Maui.IVisualTreeElement
[<Microsoft.Maui.Controls.ContentProperty("Items")>]
type ShellSection = class
    inherit ShellGroupItem
    interface IShellSectionController
    interface IElementController
    interface IVisualTreeElement
    interface IStackNavigation
[<Microsoft.Maui.Controls.ContentProperty("Items")>]
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ShellSection+ShellSectionTypeConverter))>]
type ShellSection = class
    inherit ShellGroupItem
    interface IShellSectionController
    interface IElementController
    interface IVisualTreeElement
    interface IStackNavigation
Public Class ShellSection
Inherits ShellGroupItem
Implements IShellSectionController, IStackNavigation, IVisualTreeElement
继承
派生
属性
实现

构造函数

ShellSection()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

字段

CurrentItemProperty

的可绑定属性 CurrentItem

ItemsProperty

的可绑定属性 Items

属性

AutomationId

获取或设置允许自动化框架查找此元素并与其交互的值。

(继承自 Element)
BindingContext

获取或设置一个对象,该对象包含由属于此 BindableObject属性的绑定属性所面向的属性。 这是一种可绑定属性。

(继承自 BindableObject)
class

获取或设置元素的样式类。

(继承自 NavigableElement)
ClassId

获取或设置用于标识语义相似元素集合的值。

(继承自 Element)
CurrentItem

当前选定的 ShellContent

Dispatcher

获取创建此可绑定对象时可用的调度程序,否则会尝试查找最近的可用调度程序(可能是窗口的/应用)。

(继承自 BindableObject)
EffectControlProvider

供 .NET MAUI 内部使用。

(继承自 Element)
Effects

获取或设置将在运行时应用于元素的样式和属性。

(继承自 Element)
FlyoutDisplayOptions

AsSingleItem(默认值)将仅在浮出控件中显示此项目的标题。 AsMultipleItems 将为各个子类和 MenuItem 创建单独的浮出控件选项。

(继承自 ShellGroupItem)
FlyoutIcon

用于项的图标。 如果未设置此属性,则会回退为使用 Icon 属性值。

(继承自 BaseShellItem)
FlyoutItemIsVisible

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
Handler

获取或设置此元素的关联处理程序。

(继承自 Element)
Icon

定义要在不属于浮出控件的镶边部分中显示的图标。

(继承自 BaseShellItem)
Id

获取一个值,该值可用于在应用程序运行过程中唯一标识元素。

(继承自 Element)
IsChecked

定义项当前是否在浮出控件中突出显示。

(继承自 BaseShellItem)
IsEnabled

定义项是否可在镶边中选择。

(继承自 BaseShellItem)
IsVisible

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
Items

thisShellSection. 管理的对象集合ShellContent

LogicalChildren
已过时.

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 Element)
Navigation

获取负责处理基于堆栈的导航的对象。

(继承自 NavigableElement)
NavigationProxy

获取转换为 Navigation . NavigationProxy.

(继承自 NavigableElement)
Parent

获取或设置此元素的父 Element 级。

(继承自 Element)
RealParent

供 .NET MAUI 内部使用。

(继承自 Element)
Route

用于对项进行寻址的字符串。

(继承自 BaseShellItem)
Stack

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

Style

获取或设置此元素的唯 Style 一值。

(继承自 NavigableElement)
StyleClass

获取或设置元素的样式类。

(继承自 NavigableElement)
StyleId

获取或设置用于唯一地标识元素的用户定义的值。

(继承自 Element)
Title

要在 UI 中显示的标题。

(继承自 BaseShellItem)
Window

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)

方法

AddLogicalChild(Element)

向逻辑子级添加一个 Element

(继承自 Element)
ApplyBindings()

将所有当前绑定应用于 BindingContext

(继承自 BindableObject)
ClearLogicalChildren()

删除所有子项 Element

(继承自 Element)
ClearValue(BindableProperty)

清除以前为可绑定属性设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除以前为其键标识的可绑定属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
EffectIsAttached(String)

供 .NET MAUI 内部使用。

(继承自 Element)
FindByName(String)

返回具有指定名称的元素。

(继承自 Element)
GetNavigationStack()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

GetValue(BindableProperty)

返回给定可绑定属性中包含的值。

(继承自 BindableObject)
InsertLogicalChild(Int32, Element)

Element 指定的索引处插入逻辑子级。

(继承自 Element)
IsSet(BindableProperty)

确定可绑定属性是否存在并设置了值。

(继承自 BindableObject)
OnAppearing()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
OnBindingContextChanged()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnChildAdded(Element)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnChildRemoved(Element, Int32)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnDisappearing()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
OnHandlerChanged()

在派生类中重写时,应引发该 HandlerChanged 事件。

(继承自 Element)
OnHandlerChanging(HandlerChangingEventArgs)

在派生类中重写时,应引发该 HandlerChanging 事件。

(继承自 Element)
OnInsertPageBefore(Page, Page)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnParentChanged()

在派生类中重写时,应引发该 ParentChanged 事件。

(继承自 Element)
OnParentChanging(ParentChangingEventArgs)

在派生类中重写时,应引发该 ParentChanging 事件。

(继承自 Element)
OnParentSet()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnPopAsync(Boolean)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnPopToRootAsync(Boolean)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnPropertyChanged(String)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
OnPropertyChanging(String)

引发 PropertyChanging 事件。

(继承自 BindableObject)
OnPushAsync(Page, Boolean)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

OnRemovePage(Page)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

RemoveBinding(BindableProperty)

从可绑定属性中删除以前设置的绑定。

(继承自 BindableObject)
RemoveDynamicResource(BindableProperty)

删除以前设置的动态资源。

(继承自 Element)
RemoveLogicalChild(Element)

从逻辑子级中删除特定 Element 项的第一个匹配项。

(继承自 Element)
SetBinding(BindableProperty, BindingBase)

将绑定分配给可绑定属性。

(继承自 BindableObject)
SetDynamicResource(BindableProperty, String)

BindableProperty使用提供的键设置要通过 DynamicResource 更新的此元素的属性。

(继承自 Element)
SetValue(BindableProperty, Object)

设置指定的可绑定属性的值。

(继承自 BindableObject)
SetValue(BindablePropertyKey, Object)

设置指定的可绑定属性的值。

(继承自 BindableObject)
SetValueFromRenderer(BindableProperty, Object)

供 .NET MAUI 内部使用。

(继承自 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

供 .NET MAUI 内部使用。

(继承自 Element)
UnapplyBindings()

从当前上下文中删除所有当前绑定。

(继承自 BindableObject)

运算符

Implicit(ShellContent to ShellSection)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

Implicit(TemplatedPage to ShellSection)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

事件

Appearing

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
BindingContextChanged

BindingContext 属性的值更改时发生。

(继承自 BindableObject)
ChildAdded

每当将子元素添加到元素时引发。

(继承自 Element)
ChildRemoved

每当从元素中删除子元素时引发。

(继承自 Element)
DescendantAdded

每当将子元素添加到元素的子树时引发。

(继承自 Element)
DescendantRemoved

每当从元素子树中删除子元素时引发。

(继承自 Element)
Disappearing

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BaseShellItem)
HandlerChanged

每当元素的处理程序发生更改时引发。

(继承自 Element)
HandlerChanging

每当元素的处理程序开始更改时引发。

(继承自 Element)
ParentChanged

每当元素的父级发生更改时引发。

(继承自 Element)
ParentChanging

每当元素开始更改时引发。

(继承自 Element)
PropertyChanged

在属性值更改时发生。

(继承自 BindableObject)
PropertyChanging

在属性值更改时发生。

(继承自 BindableObject)

显式接口实现

IContextFlyoutElement.ContextFlyout

获取 ContextFlyout 视图。 菜单浮出控件、菜单浮出控件子项和菜单浮出控件分隔符可以添加到上下文浮出控件中。

(继承自 Element)
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

(继承自 BindableObject)
IEffectControlProvider.RegisterEffect(Effect)

注册此元素的指定 effect 项。

(继承自 Element)
IElement.Parent

获取元素的父级。

(继承自 Element)
IElementController.Descendants()

供 .NET MAUI 内部使用。

(继承自 Element)
IElementController.LogicalChildren

供 .NET MAUI 内部使用。

(继承自 Element)
IElementController.SetValueFromRenderer(BindableProperty, Object)

供 .NET MAUI 内部使用。

(继承自 Element)
INameScope.RegisterName(String, Object)

供 .NET MAUI 内部使用。

(继承自 Element)
INameScope.UnregisterName(String)

供 .NET MAUI 内部使用。

(继承自 Element)
IShellSectionController.AddContentInsetObserver(IShellContentInsetObserver)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.AddDisplayedPageObserver(Object, Action<Page>)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.GetItems()

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.ItemsCollectionChanged

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.NavigationRequested

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.PresentedPage

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.RemoveContentInsetObserver(IShellContentInsetObserver)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.RemoveDisplayedPageObserver(Object)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendInsetChanged(Thickness, Double)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendPopped()
已过时.

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendPopped(Page)
已过时.

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendPopping(Page)
已过时.

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendPopping(Task)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IShellSectionController.SendPoppingToRoot(Task)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IStackNavigation.NavigationFinished(IReadOnlyList<IView>)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IStackNavigation.RequestNavigation(NavigationRequest)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

IToolTipElement.ToolTip

表示一个小矩形弹出窗口,当用户将指针放在视图上时,显示视图用途的简要说明。

(继承自 Element)
IVisualTreeElement.GetVisualChildren()

获取元素的视觉子级的只读列表。

(继承自 Element)
IVisualTreeElement.GetVisualParent()

获取元素的视觉父级。

(继承自 Element)

扩展方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

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

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

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

创建绑定并将其应用到属性。

FindByName<T>(Element, String)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

ToHandler(IElement, IMauiContext)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

ToPlatform(IElement, IMauiContext)

Shell 应用程序中的分组内容,可使用底部选项卡进行导航。

GetVisualElementWindow(IVisualTreeElement)

获取包含可视化树元素的窗口(如果元素包含在一个中)。

GetVisualTreeDescendants(IVisualTreeElement)

获取子代的整个层次结构,作为给定可视化树元素的子级列表。

GetVisualTreeElements(IVisualTreeElement, Point)

基于给定点获取可视化树元素的子元素的列表。

GetVisualTreeElements(IVisualTreeElement, Rect)

获取基于矩形的可视化树元素子项的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double)

获取基于给定 x、y 点的可视化树元素子项的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

基于由其坐标定义的矩形(而不是像素)定义的矩形的可视化树元素子项的列表,这些坐标在平台单位中指定。

适用于