locked
How to access page's UI elements from flyout (Popup) ? RRS feed

  • Question

  • I am creating an app in which I am providing theme option in flyout (popup). Now when theme is selected I want to change background/foreground property of page's various controls. I know there's Closed event but I want to update the UI when theme is selected and flyout is still open. I know there's x:Modifier="public" property as well as MVVM approach. Apart from it is there any other way ?


    • Edited by Xyroid Wednesday, September 4, 2013 10:20 AM
    Wednesday, September 4, 2013 9:49 AM

All replies

  • You can reload the underlying page using the new theme.


    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.

    Wednesday, September 4, 2013 7:19 PM
    Moderator
  • How ?
    Wednesday, September 4, 2013 8:11 PM
  • Frame.Navigate(typeof(<page type>));


    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.

    Thursday, September 5, 2013 1:21 PM
    Moderator
  • No no, that will be no use of.
    Thursday, September 5, 2013 1:26 PM
  • I don't understand.  If you change the look of the content, and then reload the page, it should pick up the new look, right?  At least, that's how I managed it.  If you already have solutions that work, then go for it.

    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.

    Thursday, September 5, 2013 2:45 PM
    Moderator