Search code examples
xamlsilverlight-4.0mvvmmvvm-light

Silverlight: Not naming controls in XAML when using MVVM (Silverlight)?


Can anyone confirm if I am using MVVM (2 way binding) then I don't need to name my controls in XAML as I won't be accessing them via code behind but will be updating them by Binding?

This was the case with WPF but unsure whether Silverlight allows a control without x:Name?


Solution

  • You don't have to name your controls to use binding. But you still can name them to aid in some UI scenarios (animations, drag&drop, etc).