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
    hanso

    Hello,

    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

    Greets

  • User profile image
    footballism

    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.

    Sheva

Conversation locked

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