C# Caliburn micro,从视图模型访问导体页面
Im正在构建Windows Phone 8应用程序,该应用程序具有枢轴控件(指挥者页面)和少量枢轴项目(用户控件) 在我的主pivot/conductor页面中,我定义了如下ProgressIndicator:C# Caliburn micro,从视图模型访问导体页面,c#,mvvm,windows-phone-8,caliburn.micro,C#,Mvvm,Windows Phone 8,Caliburn.micro,Im正在构建Windows Phone 8应用程序,该应用程序具有枢轴控件(指挥者页面)和少量枢轴项目(用户控件) 在我的主pivot/conductor页面中,我定义了如下ProgressIndicator: <shell:SystemTray.ProgressIndicator> <shell:ProgressIndicator IsVisible="{Binding Loading}" IsIndeterm
<shell:SystemTray.ProgressIndicator>
<shell:ProgressIndicator IsVisible="{Binding Loading}"
IsIndeterminate="{Binding Loading}"
Text="Loading..." />
</shell:SystemTray.ProgressIndicator>
如何从透视项目视图模型访问ProgressIndicator IsVisible绑定?最好的方法是使用消息传递 创建say progressindCatorChangeMessage with and Active bool属性,将Pivot页面子脚本化以处理消息(IHandle),然后从“Pivot”视图模型发送消息