BindingBase 类

定义

定义 BindingPriorityBindingMultiBinding 类的公共特性。Defines the common characteristics of the Binding, PriorityBinding, and MultiBinding classes.

public ref class BindingBase abstract : System::Windows::Markup::MarkupExtension
[System.Windows.Localizability(System.Windows.LocalizationCategory.None, Modifiability=System.Windows.Modifiability.Unmodifiable, Readability=System.Windows.Readability.Unreadable)]
[System.Windows.Markup.MarkupExtensionReturnType(typeof(System.Object))]
public abstract class BindingBase : System.Windows.Markup.MarkupExtension
type BindingBase = class
    inherit MarkupExtension
Public MustInherit Class BindingBase
Inherits MarkupExtension
继承
BindingBase
派生
属性

注解

由于 BindingBase.ProvideValue 方法是密封的,因此从 BindingBase 派生的自定义绑定类将无法作为 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) 标记扩展正常运行。Because the BindingBase.ProvideValue method is sealed, a custom binding class that derives from BindingBase will not function correctly as a 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) markup extension.

属性

BindingGroupName

获取或设置此绑定所属的 BindingGroup 的名称。Gets or sets the name of the BindingGroup to which this binding belongs.

Delay

获取或设置更新位于目标更改上的值之后的绑定源前要等待的时间(毫秒)。Gets or sets the amount of time, in milliseconds, to wait before updating the binding source after the value on the target changes.

FallbackValue

获取或设置当绑定无法返回值时要使用的值。Gets or sets the value to use when the binding is unable to return a value.

StringFormat

获取或设置一个字符串,该字符串指定如果绑定值显示为字符串,应如何设置该绑定的格式。Gets or sets a string that specifies how to format the binding if it displays the bound value as a string.

TargetNullValue

获取或设置当源的值为 null 时在目标中使用的值。Gets or sets the value that is used in the target when the value of the source is null.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ProvideValue(IServiceProvider)

返回一个应在应用了此绑定和扩展的属性上设置的对象。Returns an object that should be set on the property where this binding and extension are applied.

ShouldSerializeFallbackValue()

返回一个值,该值指示序列化进程是否应当对此类的实例的 FallbackValue 有效属性值进行序列化。Returns a value that indicates whether serialization processes should serialize the effective value of the FallbackValue property on instances of this class.

ShouldSerializeTargetNullValue()

返回一个值,该值指示是否应序列化 TargetNullValue 属性。Returns a value that indicates whether the TargetNullValue property should be serialized.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于