Thursday, March 15, 2012

Instantiating a view model in view (XAML)

You can create an instance of viewmodel in view (XAML) in order to create data binding at design time for a data context that is assigned at run time using DESIGN INSTANCE.

Syntax: d:DataContext="{d:DesignInstance Type=local:ABC}"


More information about it on MSDN article : Click here

No comments:

Post a Comment