Binding Binding Class

Definition

A single 1:1 immutable data binding.

public sealed class Binding : Xamarin.Forms.BindingBase
type Binding = class
    inherit BindingBase
Inheritance

Remarks

This class is immutable.

Constructors

Binding() Binding()

Constructs and initializes a new instance of the Binding class.

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

Constructs and initializes a new instance of the Binding class.

Properties

Converter Converter

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

ConverterParameter ConverterParameter

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

FallbackValue FallbackValue

Gets or sets the value to use instead of the default value for the property, if no specified value exists.

(Inherited from BindingBase)
Mode Mode

Gets or sets the mode for this binding.

(Inherited from BindingBase)
Path Path

Gets or sets the path of the property

Source Source

Gets or sets the source of the binding.

StringFormat StringFormat

Gets or sets the string format for this binding.

(Inherited from BindingBase)
TargetNullValue TargetNullValue

Gets or sets the value to supply for a bound property when the target of the binding is null.

(Inherited from BindingBase)
UpdateSourceEventName UpdateSourceEventName

For internal use by the Xamarin.Forms platform.

Methods

Create<TSource>(Expression<Func<TSource,Object>>, BindingMode, IValueConverter, Object, String) Create<TSource>(Expression<Func<TSource,Object>>, BindingMode, IValueConverter, Object, String)

This is a convenient factory method to create a binding from an expression, instead of a property name. This api is more resilient to refactoring.

ThrowIfApplied() ThrowIfApplied()

Throws an InvalidOperationException if the binding has been applied.

(Inherited from BindingBase)

Extension Methods

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to