Xamarin.Forms.BindableObject.ApplyBindings Method
Apply the bindings to thisBindableObject.BindingContex.

Syntax

protected void ApplyBindings (object oldContext)

Parameters

oldContext
The object that contains the properties that will be targeted by the bound properties that belong to this Xamarin.Forms.BindableObject. This parameter is optional.

Remarks

If an object is passed for the oldContext argument, bindings are first unapplied from oldContext. This method removes any current bindings from the old context, and applies every binding to the current BindableObject.BindingContex. Application developers could use this method to bind the UI from a new View to an existing ViewModel, while optionally removing the bindings from the old View. Application developers can omit the oldContext argument in order to leave the old bindings in place.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0