locked
Change the Frame content Control style

    Question

  • Hi,

    Is any way to change the style of current Frame content control  as dynamically...?

    I am using Frame control and navigating to Test.xaml, Test.xaml contains some windows Label control  with styles, So Need change the Test.xaml label color dynamically, while it's in Frame, How..Please help me...?.

    Frame.Navigate(typeof(Test));

    After navigating in to Frame, I need change the Test.xaml control styles  how..?


    • Edited by PRABUdotNet Thursday, February 12, 2015 7:21 AM
    Thursday, February 12, 2015 7:17 AM

Answers

  • Try this:
    1) Create some public static Brushes inside Test.xaml.cs

    2) In the setters for these brushes, assign the value to the Labels


    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, February 12, 2015 2:17 PM
    Moderator