Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Each Tile is a different UserControl with it's data bind to a different ViewModel
posted

Hi

Can you show me how to accomplish this?  I think I need to set a DataTemplateSelector and have each DataTemplate a UserControl.  Also I would like to bind each UserControl's data to a different ViewModel.

Thanks!

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Marlon,

     

    Thank you for your post. I have been looking into it and since the XamTileManager doesn’t have TemplateSelector I used another approach to achieve this functionality. I created a DataTemplate with two controls (Button and TextBlock) and based on value in the ViewModel only one of them is shown in the different Tiles. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

    XamTileManagerTemplateSelector.zip
Children