How to trigger button in another page simultaneously?

I have multiple pages in my hrp, so i want to change the property of button simultaneously.
eg: i have button ‘a’ (@main page) and button ‘b’ (@ second page)

if i press button ‘a’ (from main page)
then changing back ground of the button ‘a’
at the same time the button ‘b’ should change back ground
(changing properties simultaneously ,but buttons are different pages)

Do the button have the same functions across the multiple pages, like a static menu that is the same on all the pages?

The two buttons has different functions
Not same use or same function
Eg: if i press a power button (IR global cache) button in ‘media control page’, the i want to see what i am recently pressed in ‘media control page’ to ‘main page’ as label or change the image or any type indication…

I got an answer here, it’s work in a single page
But i need this solution for page-to-page

Main page cannot access 2nd page’s contents. Each XAML page is isolated from one another. You’ll need virtual device variable to accomplish what you want. Have button ‘a’ set your virtual variable & have button ‘b’ react to that variable by using a DataTrigger.

Can you just give me an example for that.
I don’t have much knowledge in virtual variables…
Thanks for your replay…

The attached demo project is something I put together for someone who wanted to do the same sort of thing with elements outside of a page browser. This method could be applied to multiple pages as well. It utilizes virtual devices.

virtual_device_demo.hrp (2.8 MB)

1 Like

Thanks john :blush:
It’s works…:clap::clap::clap::+1::+1:

1 Like