I am trying to zoom the InkCanvas when the finger counts greater than 1, but I can't get the finger count in the InkCanvas.Anyone Please help me how to get the finger count in InkCanvas.
Asked
Active
Viewed 101 times
1 Answers
0
I don't have touch screen to test but maybe this will work:
int count;
private void InkCanvas_PointerEntered(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
count++;
}
private void InkCanvas_PointerExited(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
count--;
}
If it doesn't help. Try to use PinterPressed
and PointerReleased
. You may grab point Id from event args and handle them.

Jet Chopper
- 1,478
- 13
- 22
-
This doesn't work with zooming. `DirectManipulation` kicks in and absorbs the pointer events. – Laith Oct 20 '17 at 08:34
-
Yes.. it not worked. I tried this InkPath.InkPresenter.ActivateCustomDrying(); InkPath.InkPresenter.SetPredefinedConfiguration(InkPresenterPredefinedConfiguration.SimpleMultiplePointer); Now i can get the finger count in StrokeStarted event, but i am getting the StrokeContainer value is null because of using the custom drying. – Santhiya Oct 20 '17 at 13:04
-
@Santhiya The document says: If custom dry mode is enabled (ActivateCustomDrying ), StrokeContainer is null. Do you solve you issue about get the fingers count in the `InkCanvas`? – Jayden Oct 24 '17 at 05:44