windows-phone-7 – 如何将SystemTray Progressbar绑定到选定Piv
发布时间:2020-12-13 21:29:46 所属栏目:Windows 来源:网络整理
导读:我有一个带有Pivot和3个PivotItems的应用程序.每个PivotItem都有自己的DataContext,DataContext有一个名为IsLoading的属性. 可以将SystemTray.ProgressIndicator IsVisible属性绑定到选定的pivotitem DataContext.IsLoading属性? 这是我尝试过的: shell:Sy
我有一个带有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-server-2003 – 2k3到2k12 AD,DC和DNS迁移
- 24.Windows任意文件读取漏洞
- windows-store-apps – 无法打开数据库文件Windows Store A
- windows – ProcMon和CreateFile处理选项之间的对应关系
- windows-server-2008-r2 – 如何使用Centreon Nagios监控Wi
- winapi – Windows游戏循环双核50%CPU
- 什么是最有效的Windows负载平衡解决方案?
- windows-8 – Visual Studio错误:“无法激活后台任务.后台
- .net – 如何导出CIL DLL中的方法,以便本地程序可以调用它?
- windows-server-2008 – 我有2个相同的windows 2008 r2服务
推荐文章
站长推荐
- windows – “Deny Logon Locally”效果
- windows – 如何在右键菜单中添加条目?
- Windows Server 2012 R2 VM备份失败,可用存储空间
- .net – 如何部署用MonoDevelop编写的Windows应用
- windows-server-2003 – 在Windows Server 2003中
- group-policy – GPMC缺少隐藏/显示链接
- windows-server-2008 – 具有两个或多个域的ADFS
- 如何重新加载Windows窗体而不使用VB.NET关闭它?
- 忽略Windows Genuine Advantage安装弹出窗口的任
- windows-server-2008-r2 – 可以在HyperV Window
热点阅读