Caliburn micro, access conductor page from view model

Im building Windows Phone 8 app which has pivot control (conductor page) with few pivot items (user controls).

In my main pivot/conductor page I have defined ProgressIndicator like this:

<shell:SystemTray.ProgressIndicator>
    <shell:ProgressIndicator IsVisible="{Binding Loading}"
                             IsIndeterminate="{Binding Loading}"
                             Text="Loading..." />
</shell:SystemTray.ProgressIndicator>

How should I access the ProgressIndicator IsVisible binding from pivot items view model?

Answers


The best approach would be to use messaging.

Create say ProgressInidcatorChangeMessage with and Active bool property, subrscribe your Pivot page to handle the message (IHandle) and then send the message from your "pivot" ViewModels.


Need Your Help

Webstorm: debugging node.js sails app

node.js debugging webstorm sails.js

I'm having a hard time finding the right combination of settings to allow me to debug my node.js sails application in webstorm.

Inserting 3rd party changes in git

git atlassian-sourcetree

I was handed over a project by a friend. No versioning was used. I needed to make changes so I created a git repository from this project directory with Sourcetree. I use this versioning for local ...