C# Class MvvmCross.Binding.BindingContext.MvxTaskBasedBindingContext

OnDataContextChange executes asynchronously on a worker thread
Inheritance: IMvxBindingContext
Afficher le fichier Open project: MvvmCross/MvvmCross Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode Description
AddDelayedAction ( object key, IEnumerable value ) : void
AddDelayedAction ( object key, string value ) : void

Method Details

ClearAllBindings() public méthode

public ClearAllBindings ( ) : void
Résultat void

ClearAllDelayedBindings() protected méthode

protected ClearAllDelayedBindings ( ) : void
Résultat void

ClearAllDirectBindings() protected méthode

protected ClearAllDirectBindings ( ) : void
Résultat void

ClearAllViewBindings() protected méthode

protected ClearAllViewBindings ( ) : void
Résultat void

ClearBindings() public méthode

public ClearBindings ( object clearKey ) : void
clearKey object
Résultat void

DelayBind() public méthode

public DelayBind ( Action action ) : void
action Action
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Init() public méthode

public Init ( object dataContext, object firstBindingKey, IEnumerable firstBindingValue ) : IMvxBindingContext
dataContext object
firstBindingKey object
firstBindingValue IEnumerable
Résultat IMvxBindingContext

Init() public méthode

public Init ( object dataContext, object firstBindingKey, string firstBindingValue ) : IMvxBindingContext
dataContext object
firstBindingKey object
firstBindingValue string
Résultat IMvxBindingContext

OnDataContextChange() protected méthode

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
Résultat void

RegisterBinding() public méthode

public RegisterBinding ( object target, IMvxUpdateableBinding binding ) : void
target object
binding IMvxUpdateableBinding
Résultat void

RegisterBindingWithClearKey() public méthode

public RegisterBindingWithClearKey ( object clearKey, object target, IMvxUpdateableBinding binding ) : void
clearKey object
target object
binding IMvxUpdateableBinding
Résultat void

RegisterBindingsWithClearKey() public méthode

public RegisterBindingsWithClearKey ( object clearKey, IMvxUpdateableBinding>.IEnumerable bindings ) : void
clearKey object
bindings IMvxUpdateableBinding>.IEnumerable
Résultat void