BackButtonBehavior 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。
public class BackButtonBehavior : Xamarin.Forms.BindableObject
type BackButtonBehavior = class
inherit BindableObject
- 继承
构造函数
BackButtonBehavior() |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
字段
CommandParameterProperty |
CommandParameter 字段的后备存储。 |
CommandProperty |
Command 字段的后备存储。 |
IconOverrideProperty |
IconOverride 字段的后备存储。 |
IsEnabledProperty |
IsEnabled 字段的后备存储。 |
TextOverrideProperty |
TextOverride 字段的后备存储。 |
属性
BindingContext |
获取或设置对象,该对象包含将被属于此 BindableObject 的绑定属性设定为目标的属性。 (继承自 BindableObject) |
Command |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
CommandParameter |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
Dispatcher |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 (继承自 BindableObject) |
IconOverride |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
IsEnabled |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
TextOverride |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
方法
事件
BindingContextChanged |
只要 BindingContext 属性更改就会引发。 (继承自 BindableObject) |
PropertyChanged |
在属性已更改时引发。 (继承自 BindableObject) |
PropertyChanging |
在属性将要更改时引发。 (继承自 BindableObject) |
显式接口实现
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) |
供 Xamarin.Forms 平台内部使用。 (继承自 BindableObject) |
扩展方法
GetPropertyIfSet<T>(BindableObject, BindableProperty, T) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
创建绑定并将其应用到属性。 |
SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String) |
已过时.
通过表达式创建并应用绑定。 |
SetOnAppTheme<T>(BindableObject, BindableProperty, T, T) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |