BackButtonBehavior 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。
public ref class BackButtonBehavior : Microsoft::Maui::Controls::BindableObject
public class BackButtonBehavior : Microsoft.Maui.Controls.BindableObject
type BackButtonBehavior = class
inherit BindableObject
Public Class BackButtonBehavior
Inherits BindableObject
- 继承
构造函数
| BackButtonBehavior() |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
字段
| CommandParameterProperty |
的可绑定属性 CommandParameter。 |
| CommandProperty |
的可绑定属性 Command。 |
| IconOverrideProperty |
的可绑定属性 IconOverride。 |
| IsEnabledProperty |
的可绑定属性 IsEnabled。 |
| IsVisibleProperty |
的可绑定属性 IsVisible。 |
| TextOverrideProperty |
的可绑定属性 TextOverride。 |
属性
| BindingContext |
获取或设置一个对象,该对象包含由属于此 BindableObject属性的绑定属性所面向的属性。 这是一种可绑定属性。 (继承自 BindableObject) |
| Command |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| CommandParameter |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| Dispatcher |
获取创建此可绑定对象时可用的调度程序,否则会尝试查找最近的可用调度程序(可能是窗口的/应用)。 (继承自 BindableObject) |
| IconOverride |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| IsEnabled |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| IsVisible |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| TextOverride |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
方法
事件
| BindingContextChanged |
当 BindingContext 属性的值更改时发生。 (继承自 BindableObject) |
| PropertyChanged |
在属性值更改时发生。 (继承自 BindableObject) |
| PropertyChanging |
在属性值更改时发生。 (继承自 BindableObject) |
显式接口实现
| IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 (继承自 BindableObject) |
扩展方法
| GetPropertyIfSet<T>(BindableObject, BindableProperty, T) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| SetAppTheme<T>(BindableObject, BindableProperty, T, T) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
指定与 Shell 应用程序后退按钮关联的行为的 BindableObject。 |
| SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
创建绑定并将其应用到属性。 |
| SetBinding<TSource,TProperty>(BindableObject, BindableProperty, Func<TSource,TProperty>, BindingMode, IValueConverter, Object, String, Object, Object, Object) |
在源对象上的属性和目标对象的属性之间创建绑定。 |