BackButtonBehavior 類別

定義

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

public class BackButtonBehavior : Xamarin.Forms.BindableObject
type BackButtonBehavior = class
    inherit BindableObject
繼承
System.Object
BackButtonBehavior

建構函式

BackButtonBehavior()

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

欄位

CommandParameterProperty

CommandParameter 欄位的備份存放區。

CommandProperty

Command 欄位的備份存放區。

IconOverrideProperty

IconOverride 欄位的備份存放區。

IsEnabledProperty

IsEnabled 欄位的備份存放區。

TextOverrideProperty

TextOverride 欄位的備份存放區。

屬性

BindingContext

取得或設定物件,這個物件包含屬於此 BindableObject 屬性繫結屬性將設為目標的屬性。

(繼承來源 BindableObject)
Command

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

CommandParameter

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

Dispatcher

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

(繼承來源 BindableObject)
IconOverride

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

IsEnabled

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

TextOverride

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

方法

ApplyBindings()

將繫結套用至 BindingContext

(繼承來源 BindableObject)
ClearValue(BindableProperty)

清除 SetValue 針對 property 所設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除 SetValue 針對 propertyKey 所識別屬性設定的任何值。

(繼承來源 BindableObject)
CoerceValue(BindableProperty)

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

(繼承來源 BindableObject)
GetValue(BindableProperty)

傳回 BindableProperty 中包含的值。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty)
已淘汰.

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已淘汰.

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
IsSet(BindableProperty)

如果目標屬性存在且已設定,則傳回 true

(繼承來源 BindableObject)
OnBindingContextChanged()

覆寫此方法,以在 BindingContext 變更時執行動作。

(繼承來源 BindableObject)
OnPropertyChanged(String)

從子類別呼叫這個方法,以通知屬性發生了變更。

(繼承來源 BindableObject)
OnPropertyChanging(String)

從子類別呼叫這個方法,以通知屬性即將發生變更。

(繼承來源 BindableObject)
RemoveBinding(BindableProperty)

移除先前設定的繫結。

(繼承來源 BindableObject)
SetBinding(BindableProperty, BindingBase)

將繫結指派給屬性。

(繼承來源 BindableObject)
SetValue(BindableProperty, Object)

設定指定之屬性的值。

(繼承來源 BindableObject)
SetValue(BindablePropertyKey, Object)

設定 propertyKey 的值。

(繼承來源 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)
UnapplyBindings()

取消套用所有先前設定的繫結。

(繼承來源 BindableObject)

事件

BindingContextChanged

每當 BindingContext 屬性變更時引發。

(繼承來源 BindableObject)
PropertyChanged

在屬性變更時引發。

(繼承來源 BindableObject)
PropertyChanging

在屬性即將變更時引發。

(繼承來源 BindableObject)

明確介面實作

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台內部使用。

(繼承來源 BindableObject)

擴充方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 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)

指定與殼層應用程式中 [返回] 按鈕相關聯行為的 BindableObject

適用於