windows-phone-7 – 如何将SystemTray Progressbar绑定到选定PivotItem Da
发布时间:2020-09-02 02:47:16 所属栏目: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-8 – 在MetroStyle应用程序中使用COM对象
- Qt 5 QML应用程序,包含许多Windows或复杂的UI
- windows – 用户和内核之间的线程fs段寄存器切换
- 无法找到MSVCP120D.DLL或0x00007启动错误的解决方法
- adodb – Windows脚本宿主(jscript):我如何下载二进制文件
- windows-server-2008 – IIS可以从GPU核心创建线程吗?
- Windows Server 2016-WinSer 2016标准版与数据中心版的区别
- .net – Windows Azure Web角色缓存(预览)“挂起”使模拟器
- 在非Qt应用程序中使用基于Qt的DLL
- windows – 使用cmd提示符搜索谷歌或其他搜索引擎上的单词