Class BindingBase
Defines the common characteristics of the Binding and MultiBinding classes.
Implements
Inherited Members
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public abstract class BindingBase : MarkupExtension, IMarkupExtension<object>
Constructors
| Improve this Doc View SourceBindingBase()
Initializes a new instance of the BindingBase class.
Declaration
protected BindingBase()
Fields
| Improve this Doc View Source_stringFormat
Declaration
protected string _stringFormat
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceFallbackValue
Gets or sets the value to use when the binding is unable to return a value.
Declaration
public object FallbackValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value to use when the binding is unable to return a value. The default is null. |
StringFormat
Gets or sets a string that specifies how to format the binding if it displays the bound value as a string.
Declaration
public string StringFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies how to format the binding if it displays the bound value as a string. The default is null. |
TargetNullValue
Gets or sets the value that is used in the target when the value of the source is null.
Declaration
public object TargetNullValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value that is used in the target when the value of the source is null. |
Methods
| Improve this Doc View SourceCheckSealed()
Throws an exception if the binding has already been attached to a binding target.
Declaration
protected void CheckSealed()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The binding has already been attached to a binding target. |
ProvideValue(IServiceProvider)
Returns an object that should be set on the property where this binding and extension are applied.
Declaration
public sealed override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | The object that can provide services for the markup extension. May be null; see the Remarks section for more information. |
Returns
Type | Description |
---|---|
System.Object | The value to set on the binding target property. |