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 to get just the resulting strokes when erasing by point on InkCanvas?

I don't understand. Lets say I draw an "S" on an InkCanvas. The OnStrokeCollected event will fire. Inside the OnStrokeCollected event, I send the stroke to an InkAnalyzer: analyzer.AddStroke(e.Stroke) Now I erase-by-point a center point of the…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
0 answers

how to capture timestamp of a stroke in canvas

I am working with thru InkManager trying to capture timestamp for each stroke. Does anyone know how can I do it. The mmost inefficient way to make a list and update it each time a stroke been generated, but I am sure there is another efficient way…
Hitesh
  • 3
  • 1
0
votes
1 answer

Hit testing on child of InkCanvas

I have added a button to an InkCanvas by way of code-behind. For reasons I can not understand, HitTestResult result = VisualTreeHelper.HitTest(pe.InkCanvas.Children[2], point_MouseDown); where the button has index of 2, always results in…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
1 answer

Select strokes from inkcanvas within a rectangle by program

I have an InkCanvas with strokes present. I wish to use only the strokes, or part of the strokes, that fall within a given region. In short, I wish to clip any ink outside of this region. I can't figure out how to cast this correctly: …
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
1 answer

Storing InkCanvas in custom class (?)

I'm writing a simple application for my students and I'm stuck in a middle of my work. So, here's what is it about - it's a simple app for managing also very simple notebooks. Each notebook contains a textbox and InkCanvas, in which users can draw…
dabu
  • 155
  • 1
  • 10
0
votes
1 answer

Unable to position BitmapImage on InkCanvas

I have read all that I can find and can't solve this. My goal is to capture strokes from the InkCanvas and convert these into a Path. From the path, return a BitmapImage to an Image control and place the Image control at an arbitrary position on the…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
1 answer

WPF C# Preventing a background from resizing when loaded as a background in an inkCanvas

After looking for the answer in both Microsoft documentation and forums, I am at a loss. I am loading a png image as a background for an inkCanvas (WPF) which works fine, however, it always resizes the image to fit in the canvas, despite the image…
T James
  • 490
  • 5
  • 16
0
votes
1 answer

How do I add shape to InkCanvas at mouse position using MouseDown event WPF

I use the following code which allows me to set the size and adds the square to the inkcanvas when I click a button. It adds the shape to the top left of the canvas. I would like to be able to add the shape to the canvas at the location where I…
crmepham
  • 4,676
  • 19
  • 80
  • 155
0
votes
1 answer

How can I change the way InkCanvas draws?

I've searched for examples for this, but the ones I've ran across seem to focus on simpler stuff like setting the InkCanvas DefaultDrawingAttributes such as Width, Height, Color etc. Doesn't seem like there's a lot of material for this. For example,…
zxcvbnm
  • 1,833
  • 3
  • 27
  • 35
0
votes
1 answer

InkCanvas with time information

I'm using Microsoft Ink Canvas for WPF and I need to change the configuration to get the time informationfor. With winforms and MSInk I do that by using the InkCollector object. With InkCanvas I realized that there's also a embeeded InkCollector…
Ivan BASART
  • 819
  • 2
  • 11
  • 15
0
votes
1 answer

How to Prompt Window on Image MouseDown

I'm creating an application (for a tablet PC) where a user will fill out an inspection form. As a final step, the director must be able to sign it (along with a few other people). Since I want to keep my form small and concise, I was looking to…
Alex
  • 4,821
  • 16
  • 65
  • 106
0
votes
1 answer

Inkcanvas with Citrix Receiver Mobility

We currently deploy a CMS type application through the Citrix Environment and i have added an electronic signature feature which I wrote using an WPF Inkcanvas. This part of our application works well when using the pen mouse through a desktop…
Greg Hunt
  • 135
  • 2
  • 10
0
votes
1 answer

How can I add an InkCanvas element to a Winform?

From what I understand so far, the InkCanvas element is in the WPF Framework. To use that, I need an ElementHost control to host the InkCanvas element. I've been to the MSDN links, but the example it gives talks of creating a WPF User Control…
RHelm
  • 33
  • 7
0
votes
1 answer

Inkcanvas Stroke Top,Left,Right,Bottom Location

In inkcanvas I can able to draw the stroke ,where i want to find the location(Top,Left,Right.Bottom) of the stroke. If the stroke is drawn at the Top of the inkcanvas control,then stroke location is at Top. How to find this as i am using…
0
votes
0 answers

Can't use InkCanvas in SilverLight

I am trying to create my first program in SilverLight. But I can't use the InkCanvas. Simply, I just: Create a new project. Choose SilverLight Application (Framework 4.5) UnCheck "Host the silverlight application in a website..." SilverLight…
xperator
  • 2,743
  • 7
  • 34
  • 58