windows-phone-7 – 如何将SystemTray Progressbar绑定到选定PivotItem Da
发布时间:2020-09-02 02:54:25 所属栏目:Windows 来源:互联网
导读:我有一个带有Pivot和3个PivotItems的应用程序.每个PivotItem都有自己的DataContext,DataContext有一个名为IsLoading的属性. 可以将SystemTray.ProgressIndicator IsVisible属性绑定到选定的pivotitem DataContext.IsLoading属性? 这是我尝试过的: shell:Sys
|
我有一个带有Pivot和3个PivotItems的应用程序.每个PivotItem都有自己的DataContext,DataContext有一个名为IsLoading的属性. 可以将SystemTray.ProgressIndicator IsVisible属性绑定到选定的pivotitem DataContext.IsLoading属性? 这是我尝试过的: <shell:SystemTray.ProgressIndicator>
<shell:ProgressIndicator
IsVisible="{Binding ElementName=pivot,Path=SelectedItem.DataContext.IsLoading}" />
</shell:SystemTray.ProgressIndicator>
<Grid Background="Transparent">
<controls:Pivot x:Name="pivot">
<controls:PivotItem Header="pivot item"
Margin="0,28,24,0"
DataContext="{Binding DCOne}" />
<controls:PivotItem Header="pivot item"
Margin="0,0"
DataContext="{Binding DCTwo}" />
<controls:PivotItem Header="pivot item"
Margin="0,0"
DataContext="{Binding DCThree}" />
</Grid>
试试这个:
http://www.codeproject.com/Articles/246355/Binding-the-WP7-ProgressIndicator-in-XAML?display=Print <a:ProgressIndicatorProxy IsVisible="{Binding ElementName=pivot,Path=SelectedItem.DataContext.IsLoading}" />
(还没试过) (编辑:南阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 在windows平台下采用electron-packager打包electron程序为.
- windows-services – 首先是TopShelf,Ninject和EF代码的Nin
- PHP7安装Redis扩展教程【Linux与Windows平台】
- xaml – 属性内容设置多次
- .net – 在Win32/COM方法上调用PInvoke时,通常有一个明显的
- windows-phone-7 – Caliburn Micro中的墓碑
- 识别DLL的来源
- Windows Server 2016-安装AD域服务注意事项
- DOS命令重定向到文件截断输出
- Windows Filtering Platform用户模式或内核模式?
推荐文章
站长推荐
- Windows系统DOS命令之多线程技术
- 为什么有条件地包含direct.h或sys / stat.h基于_
- windows-phone-7 – Caliburn Micro中的墓碑
- 如何使用GUI独立于.NET或其他Libs为Windows制作便
- 如何在Windows Phone 7系列上获取屏幕尺寸?
- 如何在Windows上确定是否安装了C/C++编译器
- .net – 如何通过webclient下载图像(jpg)并保存到
- 根据Microsoft的说明,不会显示发布Web向导
- NodeJS、NPM安装配置步骤(windows版本) 以及环境
- windows – ruby win32apistructs(VerQueryValue
热点阅读
