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

Use Prism data template selector in Windows Phone app

(0 votes)
0 comments   /   posted by Silverlight Show on Feb 20, 2013
Tags:   windows-phone , prism , johan-bjarneryd

Read original post at Johan Bjarneryd's Blog

Quite often you would like to have a Collection in your view model that supports multiple types that derives from the same base type. Along with the different subclasses, you might want different data templates in your view, one for each type. Microsoft Prism can help you do this in an easy way and automatically select correct template for each type. This post will show how to do it on Windows Phone and you can also download the source code for the demo project (Windows Phone 7.1 for compatability) at the bottom of the page.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter


Latest News