windows-phone-7 – 如何将SystemTray Progressbar绑定到选定PivotItem Da
发布时间:2020-09-02 02:41:17 所属栏目: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}" /> (还没试过) (编辑:4S站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- wcf – 有关替换Microsoft .NET的Web服务增强功能(WSE)3.0的
- windows – 使用cmd提示符搜索谷歌或其他搜索引擎上的单词
- haskell – 用于Windows的Linux主机上的GHC交叉编译源代码
- 如何控制Windows中打印机的打印机托盘选择
- windows-runtime – 将Action绑定到XAML中UserControl的属性
- windows – sysopen权限被拒绝
- windows – 为什么输出传输时某些“for”命令不起作用?
- Windows:忘记本地账户开机密码,但记得住PIN码
- 02、Windows Server 2003域账户管理(02)
- .net – 适用于Windows 7.0的蓝牙低功耗API
推荐文章
站长推荐
- windows10 安装python.msi出现error 2502/2503解
- windows – 用户和内核之间的线程fs段寄存器切换
- .net – 为什么我无法在2.0.0.0播放器框架中重用
- Windows:忘记本地账户开机密码,但记得住PIN码
- Windows Containers 大冒险: 优化计划(Dockerfil
- windows – CreateWindowEx的lpClassName参数如何
- windows – 如何通过apt-cyg安装cygwin / X
- assembly – windows进程内存布局
- tfs – 在测试用例通过或失败时发送电子邮件警报
- 批处理文件 – 以编程方式更改和刷新图标(无需重
热点阅读