Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Scrollviewer Manipulation events blocking button click events

$
0
0

Hi,

I am creating an application which works in desktop and tablet.

I created a user control with 10 Buttons.

In MainWindow, I created a ScrollViewer which has StackPanel as a child.

I have created 5 instance usercontrol and added it into stackpanel.

In scrollviewer, I have set Scrollviewer.PanningMode="None" , IsManipulationEnabled="true"

I have also written ManipulationDelta and ManipulationCompleted events for scrollviewer.

In ManipulationDelta and ManipulationCompleted events, i have written logic to move the scrollviewer page by page nothing but moving one usercontrol at a time.

Now the problem is Button Click events are not triggered. Please help me how activate the button click events.

Please help me.

Note:

I cant make Scrollviewer.PanningMode other than "None" because i want the panning to be done page by page.


Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This will help other members to find the solution easily.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>