Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Menu-driven wpf: loading xaml into content section

Back to Forum: Tech Off
  • User profile image


    I want to develop a menu-driven wpf application where i define a menu section (dockpanel) and a content section (grid) in the main window.

    Now when a user clicks on a menu item i want to show the associated xaml file into the content section.

    How can I do this?
    Or are there better solutions?

    Thanks for your help


  • User profile image

    You can use XamlReader.Load to dynamically construct object graph by deserializing loose XAML, or optionally you can use Application.Component to "load" compiled XAML aka BAML.


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.