Quantcast
Viewing all articles
Browse latest Browse all 18858

Manipulation event and panning mode simultaneously in Scrollvewer.

I am developing a WPF for touch enabled device. I am facing a strange problem. My XAML structure is

     <ScrollViewer>
         <StackPanel orientation="Horizontal">
             <!--  Control goes here -->
          </StackPanel>
      <ScrollViewer>

Now

 1.  To enable scrolling on touch I have to set PannigMode toHorizontalOnly
 2.  To receive manipulation events I have to set PannigMode toNone

Problem is I have to have these two functionality simultaneously.

Is there any work around so that the scrollviewer is scrolled on touch and also themanipulationcompleted event fires.

Please help.

Viewing all articles
Browse latest Browse all 18858

Trending Articles