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 字段的后备存储。 |
属性
方法
运算符
| 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 平台内部使用。 |