C# Class MvvmCross.Binding.BindingContext.MvxTaskBasedBindingContext

OnDataContextChange executes asynchronously on a worker thread
Inheritance: IMvxBindingContext
Mostrar archivo Open project: MvvmCross/MvvmCross Class Usage Examples

Public Methods

Method Description
ClearAllBindings ( ) : void
ClearBindings ( object clearKey ) : void
DelayBind ( Action action ) : void
Dispose ( ) : void
Init ( object dataContext, object firstBindingKey, IEnumerable firstBindingValue ) : IMvxBindingContext
Init ( object dataContext, object firstBindingKey, string firstBindingValue ) : IMvxBindingContext
RegisterBinding ( object target, IMvxUpdateableBinding binding ) : void
RegisterBindingWithClearKey ( object clearKey, object target, IMvxUpdateableBinding binding ) : void
RegisterBindingsWithClearKey ( object clearKey, IMvxUpdateableBinding>.IEnumerable bindings ) : void

Protected Methods

Method Description
ClearAllDelayedBindings ( ) : void
ClearAllDirectBindings ( ) : void
ClearAllViewBindings ( ) : void
Dispose ( bool disposing ) : void
OnDataContextChange ( ) : void

Must be called on main thread as it creates the target bindings, and creating target bindings might subscribe to events that needs to be done on main thread (like touchupinside). If the code is run in Synchronous mode there will be a performance hit, there are however some use-cases(iOS automatic resizing cells).

Private Methods

Method Description
AddDelayedAction ( object key, IEnumerable value ) : void
AddDelayedAction ( object key, string value ) : void

Method Details

ClearAllBindings() public method

public ClearAllBindings ( ) : void
return void

ClearAllDelayedBindings() protected method

protected ClearAllDelayedBindings ( ) : void
return void

ClearAllDirectBindings() protected method

protected ClearAllDirectBindings ( ) : void
return void

ClearAllViewBindings() protected method

protected ClearAllViewBindings ( ) : void
return void

ClearBindings() public method

public ClearBindings ( object clearKey ) : void
clearKey object
return void

DelayBind() public method

public DelayBind ( Action action ) : void
action Action
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Init() public method

public Init ( object dataContext, object firstBindingKey, IEnumerable firstBindingValue ) : IMvxBindingContext
dataContext object
firstBindingKey object
firstBindingValue IEnumerable
return IMvxBindingContext

Init() public method

public Init ( object dataContext, object firstBindingKey, string firstBindingValue ) : IMvxBindingContext
dataContext object
firstBindingKey object
firstBindingValue string
return IMvxBindingContext

OnDataContextChange() protected method

Must be called on main thread as it creates the target bindings, and creating target bindings might subscribe to events that needs to be done on main thread (like touchupinside). If the code is run in Synchronous mode there will be a performance hit, there are however some use-cases(iOS automatic resizing cells).
protected OnDataContextChange ( ) : void
return void

RegisterBinding() public method

public RegisterBinding ( object target, IMvxUpdateableBinding binding ) : void
target object
binding IMvxUpdateableBinding
return void

RegisterBindingWithClearKey() public method

public RegisterBindingWithClearKey ( object clearKey, object target, IMvxUpdateableBinding binding ) : void
clearKey object
target object
binding IMvxUpdateableBinding
return void

RegisterBindingsWithClearKey() public method

public RegisterBindingsWithClearKey ( object clearKey, IMvxUpdateableBinding>.IEnumerable bindings ) : void
clearKey object
bindings IMvxUpdateableBinding>.IEnumerable
return void