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
0
votes
1 answer

InkCanvas control template

I am looking to move the InkPresenter in the InkCanvas to have a ZIndex that is lower than the Children of the InkCanvas. In other words, I want to move the Ink so that it is displayed under the images and user controls that are added to the…
Frinavale
  • 3,908
  • 10
  • 44
  • 74
0
votes
1 answer

How to make strokes disappear on an InkCanvas

I am completely new to this forum, and still a beginner on WPF. I am working on a project that requires the strokes on an inkcanvas to be animated. One of the animations required is "disappearing". I want to make the selected strokes gradually…
0
votes
1 answer

InkCanvas slows down when we have multiple strokes

I am using InkCanvas for creating paint like application. When i use to draw multiple strokes on canvas it works very slow. I have machine with very good configuration as : Intel(R) Core(TM) 2 Quad CPU Q6600 @ 2.40GHz (4CPUs),~2.4GHz and 2GB…
Wajeed Shaikh
  • 3,078
  • 1
  • 23
  • 30
0
votes
0 answers

Create a WPF RawStylusInput event?

I have a custom hardware device, which reports some coordinates through custom API. What I wanted I want to show hardware coordinates on WPF as ink, in real-time. My thoughts Reading Creating an Ink Input Control, I think translating hardware…
Dia
  • 851
  • 1
  • 15
  • 35
0
votes
2 answers

How to submit events to InkCanvas in WPF manually?

How would I be able to submit events manually to be received by InkCanvas ? What I need to do, is to set the mode of InkCanvas to ink mode, and then, send virtual events to InkCanvas so that I get a drawing behavior as if user used the real…
simo
  • 23,342
  • 38
  • 121
  • 218
0
votes
1 answer

WPF Prevent Touch From Drawing on InkCanvas

I am working on a project that involves the WPF InkCanvas control. I chose to use WPF over UWP due to its ability to synchronously save and load ink strokes. However, I cannot seem to prevent touch input from drawing on the canvas. I have posted…
Michael Sohnen
  • 953
  • 7
  • 15
0
votes
1 answer

UWP: Ink Canvas Not Rendering With 3D Projection / Can I rasterize InkCanvas?

I created a UWP project and am using InkCanvas to capture and render input from a Microsoft Surface pen. All of it works, until I apply a 3D projection to the element housing the . Here, I have a int the XAML…
Michael Sohnen
  • 953
  • 7
  • 15
0
votes
0 answers

Broken cursor in InkCanvas (WPF)

I created simple application with drawing canvas (InkCanvas) in C# WPF, which look like this (normal): But when I run same application on VirtualMachine (Windows 10 in VirtualBox), cursor looks broken: If I change appearance of cursor in Windows…
OF Ouch
  • 45
  • 7
0
votes
0 answers

UWP InkCanvas no "EditingMode" or "DefaultDrawingAttributes" properties

I am building a react-native module in c#. I want to create an InkCanvas. My XAML-File looks like…
Azus Dkk
  • 55
  • 4
0
votes
0 answers

WPF MVVM How can I update the UI when receiving new/updated Ink Strokes

Im binding and sending ink strokes as MemoryStream objects using TcpClient, TcpListener but when Im receiving the updated strokes how can I update the UI. ViewModel : (added INotifyPropertyChanged that fired when we draw something in the View, using…
Kosta
  • 9
  • 2
0
votes
1 answer

Performance problem of creating Strokes for an WPF InkCanvas programmatically

I asked a question in Cancel touch event on InkCanvas (.Net Framework) and didn't got an answer, so I tried to set the InkCanvas to HitTestVisible to false and get the StylusPoints over an API of the driver. These points are now manually put into…
Marcel Grüger
  • 885
  • 1
  • 9
  • 25
0
votes
1 answer

WPF InkCanvas: Being in ink mode can i fire children_mousedown, children_mouseup events?

In an InkCanvas, I have some UIElements as children. UIElements have events like uielement_mousedown, uielement_mouseup etc. If I am in inkcanvas ink mode, can I fire the uielement_mousedown, uielement_mouseup events?
taqi
  • 1
  • 1
0
votes
0 answers

Cancel touch event on InkCanvas (.Net Framework)

I have an InkCanvas and a touch screen on a specific touch display. This display is able to capture stylus events. Sadly it also captures touch events. On some occassions this is completly ok. But when an InkCanvas is shown, it should ONLY capture…
Marcel Grüger
  • 885
  • 1
  • 9
  • 25
0
votes
1 answer

UWP InkCanvas capture events but don't display them

I have recently modified a fork of the vmulti project https://github.com/djpnewton/vmulti locally to work in Windows 10 with VS2019 Community, and have made some improvements to it including adding tip and barrel pressure to the HID report for the…
John Ernest
  • 785
  • 1
  • 8
  • 20
0
votes
0 answers

Draw the content of a textbox

I have a textbox on top of an image overlay, which the user can interfere with. Now I want to draw the string onto that image via Graphics, but if I use the direct values of the box for drawing, the text isn't aligned correctly at all. Any tips on…