Show / Hide Table of Contents

Class BindingBase

Defines the common characteristics of the Binding and MultiBinding classes.

Inheritance
System.Object
MarkupExtension
BindingBase
Binding
MultiBinding
Implements
IMarkupExtension<System.Object>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Data
Assembly: OpenSilver.dll
Syntax
public abstract class BindingBase : MarkupExtension, IMarkupExtension<object>

Constructors

| Improve this Doc View Source

BindingBase()

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 Source

FallbackValue

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CheckSealed()

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.

| Improve this Doc View Source

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.

Overrides
MarkupExtension.ProvideValue(IServiceProvider)

Implements

IMarkupExtension<T>
  • Improve this Doc
  • View Source