1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

1
Posted at

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

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

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

を追加します。

追加した結果
<ScrollViewer ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback">
</ScrollViewer>
追加した結果
private void ScrollViewer_ManipulationBoundaryFeedback( object sender, ManipulationBoundaryFeedbackEventArgs e )
{
	e.Handled = true;         // 追加
}
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?