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
2275
Insert user control into Tile
posted

How do I populate a Tile with a user control?  I can create tiles in C# and am getting layout pretty much under control.  However, I want user controls to appear in my tiles and don't know how to do it in C#.  I can do it in xaml, but I have to do it in C#.

Thank you,

Mike

Parents
No Data
Reply
  • 1005
    Verified Answer
    posted

    Hi Mike,

    You just have to assign the user control to the Content property of the tile:

    Tile tile = new Tile() { Content = ctrl, Header = "Tile Name" };

    Brian 

Children