Quantcast
Channel: C#タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8895

タッチスクリーンでスクロール時にバウンドさせない

$
0
0

タッチ画面でスクロール可能なものがあって端っこに行くと、ウインドウが引っ張られる感じになります。

これを回避するために、
バウンドさせたくないコントールの ManipulationBoundaryFeedback イベントを登録して

だいじなもの
e.Handled=true;

を追加します。

追加した結果
<ScrollViewerManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback"></ScrollViewer>
追加した結果
privatevoidScrollViewer_ManipulationBoundaryFeedback(objectsender,ManipulationBoundaryFeedbackEventArgse){e.Handled=true;// 追加}

Viewing all articles
Browse latest Browse all 8895

Trending Articles