Binding in Special Attribute"

From Documentation
(Created page with " When ViewModel's property changes,")
 
Line 1: Line 1:
 +
location:
 +
MVVM/Advanced/Binding in Special Attributes
  
When ViewModel's property changes,
+
 
 +
When a ViewModel's property changes, ZK will re-load those corresponding bindings on attributes. Then this reloading usually causes a UI change because attributes control a component's status and behavior. This is the basic way we change an attribute's value in MVVM approach. But there are [[ZUML_Reference/ZUML/Attributes| some special attributes]] that we can't do so. ZK will not reload value of these special attributes after a component is created and their value is determined and fixed at creation phase.

Revision as of 09:22, 13 March 2013

location:

MVVM/Advanced/Binding in Special Attributes


When a ViewModel's property changes, ZK will re-load those corresponding bindings on attributes. Then this reloading usually causes a UI change because attributes control a component's status and behavior. This is the basic way we change an attribute's value in MVVM approach. But there are some special attributes that we can't do so. ZK will not reload value of these special attributes after a component is created and their value is determined and fixed at creation phase.