MVVMbasics Logo

mobilemotion.eu Logo


Back to Class Reference home page


MVVMbasics.Attributes
Class MvvmCommandAutobindingAttribute

System.Attribute
  extended by MVVMbasics.Attributes.MvvmCommandAutobindingAttribute
 

 
AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class MvvmCommandAutobindingAttribute : Attribute

Attribute to be applied to Viewmodel classes. Defines whether CommandAutobinding (the automatic binding of BaseCommands to matching methods in the Viewmodel) is activated or not.


Constructor Summary
public  MvvmCommandAutobindingAttribute()
Constructs a MvvmCommandAutobindingAttribute attribute that activates automatic binding of commands to methods in the Viewmodel it is assgined to.
public  MvvmCommandAutobindingAttribute(bool autobinding)
Constructs a MvvmCommandAutobindingAttribute attribute that activates or deactivates automatic binding of commands to methods in the Viewmodel it is assgined to.
 
Constructor Detail

MvvmCommandAutobindingAttribute

public MvvmCommandAutobindingAttribute()

Constructs a MvvmCommandAutobindingAttribute attribute that activates automatic binding of commands to methods in the Viewmodel it is assgined to.


MvvmCommandAutobindingAttribute

public MvvmCommandAutobindingAttribute(bool autobinding)

Constructs a MvvmCommandAutobindingAttribute attribute that activates or deactivates automatic binding of commands to methods in the Viewmodel it is assgined to.

Parameters:

autobinding - Flag indicating whether automatic binding of commands to methods shall be activated for the Viewmodel the Attribute is assigned to.