windows-phone-7 – 如何将SystemTray Progressbar绑定到选定PivotItem Da
发布时间:2020-09-02 02:47:02 所属栏目: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-phone-8 – 新的Live磁贴在Windows Phone Silverli
- resolveLocalFileSystemURI错误代码5 windows phone 7 phon
- windows-phone-7 – Caliburn Micro中的墓碑
- WIN10家庭中文版远程提示要求的函数不支持 win10家庭版提示
- .net – 如何通过webclient下载图像(jpg)并保存到Windows P
- Windows Server 2016-Win Ser 2016新增功能
- 在Windows上使用clang编译c 11程序时出错
- macos – 在Windows上使用Tycho构建的Eclipse RCP应用程序的
- 02、Windows Server 2003域账户管理(02)
- .net – 可以按需下载先决条件的好安装程序
推荐文章
站长推荐
- windows – 如何为Git-Bash设置16种终端颜色?
- windows-runtime – 将Action绑定到XAML中UserCo
- 在没有Microsoft.NET.Sdk.Web的情况下使用Razor
- Microsoft Windows远程桌面协议中间人攻击漏洞(C
- windows-phone-8.1 – 升级到最新Windows Phone
- xaml – 如何将我的视图模型中的富文本(FlowDocu
- 深度技术 Win7 SP1 32位全新系统下载
- windows10下安装source insight 4.0
- windows – 如何隐藏批量输出
- windows下编译支持https的libcurl
热点阅读