2016-08-27 2 views
0

コードで進捗値を取得するにはどうすればよいですか? はここにXAMLです:UWPでPullRefreshProgressControlの進捗値を取得します

<ptr:PullToRefreshBox x:Name="ptrBox" HorizontalAlignment="Center" VerticalAlignment="Top" RefreshInvoked="ptrBox_RefreshInvoked"> 
      <ScrollViewer> 
       <StackPanel Name="SPMain" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> 
       </StackPanel> 
      </ScrollViewer> 
      <ptr:PullToRefreshBox.TopIndicatorTemplate> 
       <DataTemplate> 
        <ptr:PullRefreshProgressControl Name="ProgressPTR" Progress="300" PullToRefreshText="Pull to refresh" ReleaseToRefreshText="Release"/> 
       </DataTemplate> 
      </ptr:PullToRefreshBox.TopIndicatorTemplate> 
     </ptr:PullToRefreshBox> 
+0

何進捗値の代わりにこの

Progress="{Binding}" 

を書くのか? –

+0

私は、スライダーの値のような、ユーザーがプルダウンしたピクセルの量を取得したい – user3159792

+0

あなたが使用している 'PullToRefreshBox'とは何ですか? –

答えて

2

だけProgress="300"

+0

注:ライブラリPullToRefresh.UWPを使用してください –

関連する問題