Feb 16, 2013, 7:01 PM
[CLOSED] Load UserControl in a Window
Hello,
How can I load a UserControl inside a window? I'm using "Desktop" in my application and have several options set in StartMenu. For each option run a DirectMethod responsible for creating the window.
In this UserControl I have a ViewPort and Page_Load event do dynamic creation of GridPanel.
Made a few attempts to link the UserControl in ComponentLoader LoadMode.Component configuring the window but it did not work. I also tried to instantiate a UserControlLoader and add Items how the window but did not work well.
Thanks!
Ermanni
How can I load a UserControl inside a window? I'm using "Desktop" in my application and have several options set in StartMenu. For each option run a DirectMethod responsible for creating the window.
In this UserControl I have a ViewPort and Page_Load event do dynamic creation of GridPanel.
Made a few attempts to link the UserControl in ComponentLoader LoadMode.Component configuring the window but it did not work. I also tried to instantiate a UserControlLoader and add Items how the window but did not work well.
Thanks!
Ermanni
Last edited by geoffrey.mcgill; Feb 28, 2013 at 7:42 AM.
Reason: [CLOSED]