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

How do I change the color of already drawn InkStrokes in windows universal

I have drawn some ink strokes on an InkCanvas and am now wanting to change the pen colour. I can change the colour of any additional strokes I draw using CopyDefaultDrawingAttributes and UpdateDefaultDrawingAttributes and that works fine. But how do…
Robert
  • 231
  • 3
  • 10
0
votes
1 answer

Exception When Creating Folder

I'm trying to save a bunch of files into a folder. That folder will already exist, but I want to completely delete it and its contents and save the new files into the folder. I'm using the following code: Project project; //This is a…
RareNCool
  • 426
  • 8
  • 19
0
votes
1 answer

When inkcanvas color change, I got Null exception error Only in event colorpicker_SelectedColorChanged()

I'm making simple paint programm using inkcanvas with c# WPF. I'm using XceedWpfToolkit. It works well. When I change my inkcanvas pen stroke color with colorpicker, I got some problem. Null exception error occur only in event…
randomwalk1225
  • 163
  • 1
  • 1
  • 10
0
votes
1 answer

WPF: InkCanvas + Frame

I need to draw over the html page. Page displayed in a Frame element. The problem is that InkCanvas does not work with Frame. I tried to insert TextBlock instead of Frame - painting works. Does not work:
Rover
  • 2,203
  • 3
  • 24
  • 44
0
votes
1 answer

save width and color of stroke to bytearray

I'm saving strokes to a database and I can retrieve them. Now I want to save the color, width and transparency of the strokes as well. This is the what I have in my code private void AddFloorPlan() { MyCustomStrokes customStrokes = new…
Phil
  • 561
  • 2
  • 16
  • 29
0
votes
0 answers

WPF inkcanvas background image resize

before i add label on ink canvas image look like this elhard = new Ellipse(); elhard.Height = 5; elhard.Width = 5; elhard.Fill = Brushes.DarkOrange; InkCanvas.SetLeft(elhard, Mouse.GetPosition(inkcanvas).X); InkCanvas.SetTop(elhard,…
0
votes
0 answers

Create stroke inkcanvas from inkpoints

I want to create a stroke from a list of inkpoints , my problem is in the second parameter of the method, the Matrix 3x2. this code I have an exception: List inkpoints = new List(); InkStrokeBuilder ink =…
Andrea485
  • 527
  • 2
  • 6
  • 16
0
votes
0 answers

how to save inkcanvas strokes in pdf

I would like to create an application (uwp) for annotating PDF. I Use InkCanvas to write with the pen, my problem is to save the strokes in the pdf file. I've read several responses on this topic, and all indicate to save strokes in .isf file, thus…
Andrea485
  • 527
  • 2
  • 6
  • 16
0
votes
1 answer

WPF Inkcanvas cann't be seen after saving

I can write well. But WPF Inkcanvas can not be seen after saving in tablet. but if i use another computer (not tablet), can write and see well.
sai
  • 13
  • 1
0
votes
0 answers

InkCanvas inside FlipView-UWP

Windows 10 app->I am using an InkCanvas inside a flipview. The canvas is inside the template for the flipview. When I draw something inside the first flipview item the drawing is somehow getting copied to some other item also.(5th). This is…
0
votes
1 answer

WPF InkCanvas - can't change color

This is absolutely ridiculous! I'm trying to change the color of inkCanvas through code but it doesn't work. I saw a lot of tutorials about that and they don't work for me. Even though they're straightforward. I'm new to WPF but still - this should…
Bruno
  • 613
  • 1
  • 7
  • 8
0
votes
2 answers

InkCanvas over WebView

How can I write notes over web page like in MS Edge in Universal Apps? If you're not familiar with Edge: You can activate 'notes panel' and write some notes, but you can also scroll in page during writing notes. How can I do the same?
Sebastian Busek
  • 952
  • 1
  • 14
  • 28
0
votes
1 answer

InkCanvas Recognize Only Numbers

I am making a math worksheet app where you can write in the answer below the problem using an InkCanvas. The problem is that if you write a "1" the way most people do it looks like "|", and is recognized as a vertical bar. It seems there should be…
user3911053
0
votes
2 answers

saving the inkcanvas

In my application the user can create multiple objects (so called drawings) each of which has a SurfaceInkCanvas, very similar with the Photopad (the Photo Paint app)in the SDKSamples(provided by MS Surface SP1 SDK). What would be the best way to…
user228137
  • 762
  • 1
  • 16
  • 34
0
votes
1 answer

inkcanvas inside scatterview

I want to detect gestures on my scatterview (so not on elements inside the scatterview). I found that the surfaceInkCanvas has some gesture possibilities but how can I put a kind of invisible surfaceinkcanvas inside my scatterview? Thanx
Bjorn
  • 1
  • 1