1.

What Is View First Construction In Xaml?

Answer»

One way is to simply add your ViewModel as a NESTED ELEMENT in the setter for the DataContext PROPERTY as shown in the following code.

<UserControl.DataContext> 
<viewModel:StudentViewModel/> 
</UserControl.DataContext>

One way is to simply add your ViewModel as a nested element in the setter for the DataContext property as shown in the following code.

<UserControl.DataContext> 
<viewModel:StudentViewModel/> 
</UserControl.DataContext>



Discussion

No Comment Found