Xamarin.Forms by Microsoft

<PackageReference Include="Xamarin.Forms" Version="4.5.0.266-pre3" />

.NET API 1,238,656 bytes

 BindableObject

Provides a mechanism by which application developers can propagate changes that are made to data in one object to another, by enabling validation, type coercion, and an event system. BindableProperty.

Implements the bound property whose interface is provided by the BindingContext property.

public object BindingContext { get; set; }

Gets or sets object that contains the properties that will be targeted by the bound properties that belong to this BindableObject.

public virtual IDispatcher Dispatcher { get; }

Raised whenever the BindingContext property changes.

Raised when a property has changed.

Raised when a property is about to change.

protected BindableObject()

public static void SetInheritedBindingContext(BindableObject bindable, object value)

Sets the inherited context to a nested element.

protected void ApplyBindings()

Apply the bindings to BindingContext.

public void ClearValue(BindableProperty property)

Clears any value set by SetValue* for property.

public void ClearValue(BindablePropertyKey propertyKey)

Clears any value set by SetValue* for the property that is identified by propertyKey.

public void CoerceValue(BindableProperty property)

public void CoerceValue(BindablePropertyKey propertyKey)

public object GetValue(BindableProperty property)

Returns the value that is contained in the BindableProperty.

public object[] GetValues(BindableProperty property0, BindableProperty property1)

For internal use by the Xamarin.Forms platform.

public object[] GetValues(BindableProperty property0, BindableProperty property1, BindableProperty property2)

For internal use by the Xamarin.Forms platform.

public bool IsSet(BindableProperty targetProperty)

Returns true if the target property exists and has been set.

protected virtual void OnBindingContextChanged()

Override this method to execute an action when the BindingContext changes.

protected virtual void OnPropertyChanged(string propertyName = null)

Call this method from a child class to notify that a change happened on a property.

protected virtual void OnPropertyChanging(string propertyName = null)

Call this method from a child class to notify that a change is going to happen on a property.

public void RemoveBinding(BindableProperty property)

Removes a previously set binding.

public void SetBinding(BindableProperty targetProperty, BindingBase binding)

Assigns a binding to a property.

public void SetValue(BindableProperty property, object value)

Sets the value of the specified property.

public void SetValue(BindablePropertyKey propertyKey, object value)

Sets the value of the propertyKey.

public void SetValueCore(BindableProperty property, object value, SetValueFlags attributes = 0)

For internal use by the Xamarin.Forms platform.

protected void UnapplyBindings()

Unapplies all previously set bindings.