-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
William,
A MVVM solution could be :
<window>
<textbox id="myTextBox" value="@bind(vm.xxx)/>
</window>
As long your viewmodel have that getter/setter there is no problem.
I'll see for a solution with the id's but for MVVM I do think you need to avoid having id's.
2 | No.2 Revision |
William,
A MVVM solution could be :
<window>
<textbox id="myTextBox" value="@bind(vm.xxx)/>
</window>
As long your viewmodel have that getter/setter there is no problem.
I'll see for a solution with the id's but for MVVM I do think you need to avoid having id's.
In addition of the other answer :
Returns the first textbox under window (no id needed):
myInclude.query("window > textbox").value
Same but on id's : (is faster then previous)
myInclude.query("#win > #myTextBox").value