Silverlight: Do not assign controls in XAML when using MVVM (silverlight)?

Can anyone confirm that I am using MVVM (2-way binding), then I do not need to specify my controls in XAML, since I will not access them through the code behind, but will update them through the binding.

This was the case with WPF, but I'm not sure that silverlight allows you to control without x: Name

Any help really appreciated

thank

+3
source share
2 answers

You do not need to specify your controls to use bindings. But you can still name them to help in some user interface scenarios (animations, drag and drop, etc.).

+4
source

View-ViewModel. , .. XAML ( Binding ElementName=nameOfControl, Path=propertyOfControl).

0

All Articles