windows-phone-7 – 如何将SystemTray Progressbar绑定到选定PivotItem Da
发布时间:2020-09-02 01:39:42 所属栏目: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 – 如何为Git-Bash设置16种终端颜色?
- Windows Filtering Platform用户模式或内核模式?
- windows – 为什么输出传输时某些“for”命令不起作用?
- npm ERR!注册表错误解析json – 尝试在Windows 8中安装Cor
- Vulkan Tutorial 01 开发环境搭建之Windows
- wpf – xaml Scrollviewer – 禁用整个窗口的过度滚动/橡皮
- Microsoft Dynamics(Navision)vs C#.NET
- 深度技术 Ghost XP SP3 全新系统下载
- windows – PSExec如何以SYSTEM用户身份运行应用程序?
- .net – 加载Azure Storage 2.0时出错 – 无法加载Microsof