Data Binding – Lifecycle

Binding initialization during Loading Event

  • Bindings.Initialize will init bindings
  • Can call Bindings.Update() for async data
  • Bindings.StopTracking() to pause tracking, Update() will resume

OneTime binding is cheaper than OneWay

  • bindings.Update can be used to update OneTime Bindings
  • For lists – consider INCC (Update Collection) update of item rather than INPC (Update Property) for property

Not all binding path nodes need to Support Change notifications

Within a binding scope, shared pahts share code

  • {x.Bind Model.ManagerProp.Reports[0].FirstName}
  • {x.Bind Model.ManagerProp.Reports[0].LastName}
  • Code is shared!