Back to Class Reference home page
System.Attribute
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 |
---|
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.
autobinding
- Flag indicating whether automatic binding of commands to methods shall be activated for the Viewmodel the Attribute is assigned to.