I'm new to Silverlight (version 4) and MVVM, and I can't figure out how to associate a command in XAML with my ViewModel for the Loaded event in UserControl. I can bind a command to such a button ...
<Button Command="{Binding ShowImageClick}" />
And it works great. But I do not know how to do something similar onload. I tried this, but he threw an exception: "Failed to assign property" ...
<UserControl Loaded="{Binding WindowLoad}">
Any ideas?
source
share