Questions tagged [inkcanvas]

An InkCanvas is an element that can be used to receive and display ink input.

An InkCanvas is an element that can be used to receive and display ink input. This is commonly done through the use of a stylus, which interacts with a digitizer to produce ink strokes using a stylus or a mouse. The created strokes are represented as Stroke objects, and can be manipulated either programmatically or based on user input. The InkCanvas enables users to modify or delete an existing Stroke.

The InkCanvas can be bound to a data source. For example, you can bind the Strokes property to: a base-64, encoded string that contains ink data in Ink Serialized format (ISF); or even to the Strokes property of another InkCanvas. You can also bind properties, such as DefaultDrawingAttributes and EditingMode, to other data sources.

source

289 questions
1
vote
2 answers

Resize an already drawn Inkstrokes in InkCanvas

I am drawing a rectangle boundary after selecting a specific stroke that I have drawn with a mouse click. After that, I want to resize the rectangle via dragging the corners of the rectangle. At the same time, I want to resize the stroke bounded by…
1
vote
1 answer

Multiple InkCanvas instances in ItemsControl -> MousePress on other instance results in long line

I have a problem when using multiple InkCanvas instances within an ItemsControl. Each InkCanvas instance receives an ImageBrush as Background and then is added to the ItemsControl. Basically this is a self written PdfViewer where users can draw…
Chris
  • 835
  • 12
  • 27
1
vote
0 answers

[UWP][InkCanvas] How to draw a path using InkCanvas in Touch

I am having an InkCanvas inside the Grid control and I am trying to set the InkPresenter’s InputDeviceTypes property value as Touch or Mouse in the Grid PointerEntered event and I changed the InkPresenter’s InputDeviceTypes to None in the…
Santhiya
  • 191
  • 2
  • 14
1
vote
1 answer

Does RenderTransformOrigin influence scale transforms?

I am trying to do scale transforms on an InkCanvas and some unseen force seems to be influencing how the scale works. When I try to set CenterX and CenterY they appear to be being ignored. Update: I should note that the ink canvas is wrapped with a…
Kevin
  • 4,567
  • 1
  • 28
  • 36
1
vote
0 answers

Can I use InkManager.RecognizeAsync to recognize mathemathical formulas?

Nebo and OneNote can both recognize mathemathical formulas and symbols like greek letters, integrals and exponents. Is there a way to achieve the same? Or would I have to train my own recognizer?
Dodeius
  • 125
  • 1
  • 10
1
vote
1 answer

How to display a TextBox over a custom Stroke in an InkCanvas?

I'm using an InkCanvas on which I display some custom strokes (mainly to represent some shapes, such as a Rectangle or a RoundedRectangle). I can perfectly draw, select, move and resize those shapes, but now I want to add some text inside those…
X. Nolan
  • 11
  • 2
1
vote
1 answer

Erasing portion of a stoke in UWP

I am using the new Ink technology for Windows 10, by using InkCanvas/InkPresenter in UWP. Ink rendering is really nice, except I can't seem to be able to erase only a portion of a stroke. I am looking at OneNote, that I am assuming is using the same…
ClaudiaWey
  • 167
  • 9
1
vote
0 answers

Microsoft InkCanvas in web applications

I am working on a proof of concept where I intend to leverage InkCanvas to capture strokes of stylus by the user and covert it into text. However, the same is required to work in a web application. I have seen very few posts on Inkcanvas. Therefore…
Manpreet
  • 81
  • 1
  • 7
1
vote
1 answer

Is this possible to save the inkstroke with list or array?

I'm wondering that how to save the inkstrokes with array or list and etc ways. Because I want to make inkcanvas's page with index variable. So that user can move the page freely using the index. For example, I want to save the all inkstrokes drawn…
Kay
  • 173
  • 14
1
vote
0 answers

How can I know the number of touch inputs in UWP

I want to use some customized gesture functions that I made, so I need the number of touch inputs in InkCanvas. Example of what I want to achieve: If the number of touch inputs is 1, then 1 touch input (So I could draw in InkCanvas) If the number…
Kay
  • 173
  • 14
1
vote
1 answer

InkCanvas not working on touch.?

This is my code. Path drawing on the mouse, but it not drawing on touch for the first time and then draw the path. A path is not drawn on the first touch. Xaml
Santhiya
  • 191
  • 2
  • 14
1
vote
2 answers

Is it possible to add 3rd party or custom InkToolbar with InkCanvas in UWP XAML?

I'm working with UWP app. I need an InkCanvas with custom inkToolbar. I've already added the basic inkToolbar but that is not my requirement, I need more options than the basic one. Here is the image what I've achieved: But I need something like…
Kibria
  • 141
  • 1
  • 1
  • 13
1
vote
2 answers

WPF Application Design For Image Markups Staying Relative During Zooming

I am trying to implement an InkCanvas that has an image loaded onto it. I need to be able to zoom and scroll around that image and make markings to the image. When I tried to bind the ScaleTransform of the image to a Slider, the image will zoom, but…
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
1
vote
3 answers

Resizing inkcanvas to the left and top

I want to resize width and height of inkcanvas to fit the screen. When I resized it, the width expands to the right and height expands to the bottom. But inkcanvas is not fit to screen. I also want to fix the position of inkcanvas child element. If…
Hong Lim
  • 133
  • 1
  • 4
  • 12
1
vote
0 answers

WPF Brush with Image texture

Using WPF, I have an InkCanvas which has its background set to an image. I want to draw over this image with a brush that has the texture of another image. I know it's possible to use an ImageBrush and set the source of it to an image, but my…
jackbot
  • 2,931
  • 3
  • 27
  • 35