Menu 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示支持它们的平台上的应用程序菜单。
public class Menu : Xamarin.Forms.BaseMenuItem, System.Collections.Generic.ICollection<Xamarin.Forms.Menu>, System.Collections.Generic.IEnumerable<Xamarin.Forms.Menu>, System.Collections.Generic.IList<Xamarin.Forms.Menu>
type Menu = class
inherit BaseMenuItem
interface IList<Menu>
interface ICollection<Menu>
interface seq<Menu>
interface IEnumerable
- 继承
- 实现
构造函数
Menu() |
新建具有默认值的菜单。 |
属性
AutomationId |
获取或设置允许自动化框架查找此元素并与其交互的值。 (继承自 Element) |
BindingContext |
获取或设置对象,该对象包含将被属于此 BindableObject 的绑定属性设定为目标的属性。 (继承自 BindableObject) |
ClassId |
获取或设置用于标识语义相似元素集合的值。 (继承自 Element) |
Count |
获取此菜单中包含的菜单数。 |
Dispatcher |
表示支持它们的平台上的应用程序菜单。 (继承自 BindableObject) |
EffectControlProvider |
供 Xamarin.Forms 平台内部使用。 (继承自 Element) |
Effects |
应用于此项的效果列表。 (继承自 Element) |
Id |
获取可用于通过运行应用程序唯一地标识元素的值。 (继承自 Element) |
IsReadOnly |
返回 |
Item[Int32] |
获取或设置 |
Items |
获取属于此菜单的菜单集合。 |
LogicalChildren |
供 Xamarin.Forms 平台内部使用。 (继承自 Element) |
Parent |
获取或设置元素的父元素。 (继承自 Element) |
ParentView |
已过时.
获取作为 VisualElement 的此元素的最近的上级元素。 (继承自 Element) |
Platform |
已过时.
表示支持它们的平台上的应用程序菜单。 (继承自 Element) |
RealParent |
供 Xamarin.Forms 平台内部使用。 (继承自 Element) |
StyleId |
获取或设置用于唯一地标识元素的用户定义的值。 (继承自 Element) |
Text |
获取或设置菜单的文本。 |
方法
事件
BindingContextChanged |
只要 BindingContext 属性更改就会引发。 (继承自 BindableObject) |
ChildAdded |
每当将子元素添加到元素时就会发生。 (继承自 Element) |
ChildRemoved |
每当从元素中删除子元素时就会发生。 (继承自 Element) |
DescendantAdded |
每当将子元素添加到元素子树时就会发生。 (继承自 Element) |
DescendantRemoved |
每当从元素子树中删除子元素时就会发生。 (继承自 Element) |
PlatformSet |
已过时.
表示支持它们的平台上的应用程序菜单。 (继承自 Element) |
PropertyChanged |
在属性已更改时引发。 (继承自 BindableObject) |
PropertyChanging |
在属性将要更改时引发。 (继承自 BindableObject) |
显式接口实现
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) |
供 Xamarin.Forms 平台内部使用。 (继承自 BindableObject) |
IElementController.SetValueFromRenderer(BindableProperty, Object) |
供 Xamarin.Forms 平台内部使用。 (继承自 Element) |
IEnumerable.GetEnumerator() |
仅限内部使用。 |
INameScope.RegisterName(String, Object) |
仅限内部使用。 (继承自 Element) |
扩展方法
GetPropertyIfSet<T>(BindableObject, BindableProperty, T) |
表示支持它们的平台上的应用程序菜单。 |
SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
表示支持它们的平台上的应用程序菜单。 |
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
创建绑定并将其应用到属性。 |
SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String) |
已过时.
通过表达式创建并应用绑定。 |
SetOnAppTheme<T>(BindableObject, BindableProperty, T, T) |
表示支持它们的平台上的应用程序菜单。 |
ForEach<T>(IEnumerable<T>, Action<T>) |
供 Xamarin.Forms 平台内部使用。 |
GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) |
供 Xamarin.Forms 平台内部使用。 |
IndexOf<T>(IEnumerable<T>, T) |
供 Xamarin.Forms 平台内部使用。 |
IndexOf<T>(IEnumerable<T>, Func<T,Boolean>) |
供 Xamarin.Forms 平台内部使用。 |
Prepend<T>(IEnumerable<T>, T) |
供 Xamarin.Forms 平台内部使用。 |
FindByName<T>(Element, String) |
返回包含 |