Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Caliburn micro,从视图模型访问导体页面_C#_Mvvm_Windows Phone 8_Caliburn.micro - Fatal编程技术网

C# Caliburn micro,从视图模型访问导体页面

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

Im正在构建Windows Phone 8应用程序,该应用程序具有枢轴控件(指挥者页面)和少量枢轴项目(用户控件)

在我的主pivot/conductor页面中,我定义了如下ProgressIndicator:

<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”视图模型发送消息