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 |
的 CommandParameter可系結屬性。 |
CommandProperty |
的 Command可系結屬性。 |
IconOverrideProperty |
的 IconOverride可系結屬性。 |
IsEnabledProperty |
的 IsEnabled可系結屬性。 |
IsVisibleProperty |
的 IsVisible可系結屬性。 |
TextOverrideProperty |
的 TextOverride可系結屬性。 |
屬性
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) |
建立並將繫結套用至屬性。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應