Pivotと3つのPivotItemsを備えたアプリを入手しました。各PivotItemには独自のDataContextがあり、DataContextにはIsLoadingという名前のプロパティがあります。
SystemTray.ProgressIndicator IsVisibleプロパティを選択したpivotitemDataContext.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,28,24,0"
DataContext="{Binding DCTwo}" />
<controls:PivotItem Header="pivot item"
Margin="0,28,24,0"
DataContext="{Binding DCThree}" />
</Grid>