(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Windows 8 Apps now support ViewModel Dictionaries

(0 votes)
0 comments   /   posted by Silverlight Show on Jul 06, 2012
Tags:   windows-8 , rohit-sharma

Read original post at Rohit Sharma's Blog

Working with the default Win8 Gridview app (generated via VS 2012 GridView Template), I found it now supports a new way to share and access multiple view-models for a given view.

The idea is to bind the view’s DataContext property to a dictionary object (where key is the name of the viewmodel, and value is the viewmodel itself), you can then refer the viewmodel from XAML/View via Binding markup such as {Binding KeyName}. In other words, the Binding markup now supports KeyNames on the IObservableMap (beside getter properties).


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter