Share via


Binding Class

Definition

A single 1:1 immutable data binding.

public ref class Binding sealed : Microsoft::Maui::Controls::BindingBase
public sealed class Binding : Microsoft.Maui.Controls.BindingBase
type Binding = class
    inherit BindingBase
Public NotInheritable Class Binding
Inherits BindingBase
Inheritance

Remarks

This class is immutable.

Constructors

Binding()

Constructs and initializes a new instance of the Binding class.

Binding(String, BindingMode, IValueConverter, Object, String, Object)

Constructs and initializes a new instance of the Binding class.

Fields

DoNothing
SelfPath

Properties

Converter

Gets or sets the converter to be used for this binding ?

ConverterParameter

Gets or sets the parameter passed as argument to the converter.

FallbackValue

Gets or sets the value used when the binding cannot produce a source value (e.g. path not found, conversion failure).

(Inherited from BindingBase)
Mode

Gets or sets the mode for this binding.

(Inherited from BindingBase)
Path

Gets or sets the path of the property

Source

Gets or sets the source of the binding.

StringFormat

Gets or sets the string format applied to the bound value.

(Inherited from BindingBase)
TargetNullValue

Gets or sets the value to use when the binding successfully resolves the source path and the resulting source value is null.

(Inherited from BindingBase)
UpdateSourceEventName

For internal use by the Microsoft.Maui.Controls platform.

Methods

ThrowIfApplied()

Throws InvalidOperationException if the binding has already been applied.

(Inherited from BindingBase)

Applies to