Repository navigation
1 of Steps: Bindable Property
Description
现在可以通过修改MainWindowViewModel中的MyProperty属性来控制按钮旁边的TextBlock
Changes
Pages & Views & Window:
MainWindow
ViewModels:
MainWindowViewModel
Macros
Common.h:
-
WinUINamespace,WinUINamespace1~WinUINamespace5 -
Bindable -
FactoryDefinition(className)className : Page or Window's type
-
Property
type : Property's type
name : Property's nameProperty(type,name)NotifyChangedProperty(type,name)ReadonlyProperty(type,name)
-
UpdateValue(propertyName,var,value)propertyName : Name of a property to change
var : Property inner field
value : Value to change -
SetPropertyValue(name,value)name : Name of a property to set
value : Value to set -
_PropertyName(name)name : Name of a property