![](/img/trans.png)
[英]Caliburn Micro Conductor + TransitioningContentControl
[英]Caliburn micro, access conductor page from view model
我正在构建Windows Phone 8应用程序,该应用程序具有枢轴控件(导体页)和少量枢轴项(用户控件)。
在主枢纽/导体页面上,我定义了ProgressIndicator,如下所示:
<shell:SystemTray.ProgressIndicator>
<shell:ProgressIndicator IsVisible="{Binding Loading}"
IsIndeterminate="{Binding Loading}"
Text="Loading..." />
</shell:SystemTray.ProgressIndicator>
我应该如何从枢纽项目视图模型访问ProgressIndicator IsVisible绑定?
最好的方法是使用消息传递。
创建具有Active Bool属性的ProgressInidcatorChangeMessage,订阅您的“数据透视”页面以处理消息(IHandle),然后从“数据透视” ViewModels发送该消息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.