BackButtonBehavior 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 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() |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
欄位
| CommandParameterProperty |
的 CommandParameterBindable 屬性。 |
| CommandProperty |
的 CommandBindable 屬性。 |
| IconOverrideProperty |
的 IconOverrideBindable 屬性。 |
| IsEnabledProperty |
的 IsEnabledBindable 屬性。 |
| IsVisibleProperty |
的 IsVisibleBindable 屬性。 |
| TextOverrideProperty |
的 TextOverrideBindable 屬性。 |
屬性
| BindingContext |
取得或設定 物件,其中包含屬於這個 BindableObject之系結屬性的目標屬性。 這是可繫結屬性。 (繼承來源 BindableObject) |
| Command |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| CommandParameter |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| Dispatcher |
取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器(可能是視窗的/應用程式)。 (繼承來源 BindableObject) |
| IconOverride |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| IsEnabled |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| IsVisible |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| TextOverride |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
方法
事件
| BindingContextChanged |
發生於 BindingContext 屬性的值變更時。 (繼承來源 BindableObject) |
| PropertyChanged |
當屬性值變更時發生。 (繼承來源 BindableObject) |
| PropertyChanging |
屬性值正在變更時發生。 (繼承來源 BindableObject) |
明確介面實作
| IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 (繼承來源 BindableObject) |
擴充方法
| GetPropertyIfSet<T>(BindableObject, BindableProperty, T) |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| SetAppTheme<T>(BindableObject, BindableProperty, T, T) |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| SetAppThemeColor(BindableObject, BindableProperty, Color, Color) |
指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject。 |
| SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) |
建立並將繫結套用至屬性。 |
| SetBinding<TSource,TProperty>(BindableObject, BindableProperty, Func<TSource,TProperty>, BindingMode, IValueConverter, Object, String, Object, Object, Object) |
在來源物件上的 屬性與目標物件上的屬性之間建立系結。 |