Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created November 2, 2018 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/d56c6ac2be66b93c886b1322388b5a25 to your computer and use it in GitHub Desktop.
Save christiannagel/d56c6ac2be66b93c886b1322388b5a25 to your computer and use it in GitHub Desktop.
Accociate input devices with the ink presenter - using XAML island
private void OnInkLoaded(object sender, RoutedEventArgs e)
{
if (sender is Toolkit.InkCanvas)
{
inkCanvas.InkPresenter.InputDeviceTypes = CoreInputDeviceTypes.Mouse | CoreInputDeviceTypes.Pen | CoreInputDeviceTypes.Touch;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment