locked
How to add two user controls inside one popup and show them as a flyout like the settings charm ?

    Question

  • i am trying to open a popup with a user control and when you click a button on that control it should display the second user control in the same popup flyout .

    19karabo91

    Friday, April 11, 2014 7:03 AM

Answers

  • You'll have to put them both in a horizontal StackPanel.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by 19karabo91 Tuesday, April 15, 2014 12:01 PM
    Monday, April 14, 2014 4:33 PM
    Moderator

All replies

  • Where are you having problems?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 11, 2014 1:35 PM
    Moderator
  • I'm only able to show one user control i can't show the second one on the same popup 

    19karabo91

    Friday, April 11, 2014 1:38 PM
  • Does Popup.Children.Add(control) work? If not, show the code.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 11, 2014 1:42 PM
    Moderator
  • i did use Popup.Children.Add(Control) but how do i make the orientation to show horizontally to show the second one next to the first control ?

    19karabo91

    Monday, April 14, 2014 6:59 AM
  • You'll have to put them both in a horizontal StackPanel.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by 19karabo91 Tuesday, April 15, 2014 12:01 PM
    Monday, April 14, 2014 4:33 PM
    Moderator
  • thanks that really worked for me  

    19karabo91

    Tuesday, April 15, 2014 12:02 PM