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
2 answers

How to pass InkCanvas SelectedStrokes to viewmodel?

In a standard MVVM pattern, how is the viewmodel made aware of selected strokes from an InkCanvas? In code-behind with knowledge of the InkCanvas, deleting selected strokes is very easy: private void btnDeleteSelectedStrokes_Click(object sender,…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
0
votes
1 answer

Best way to show many mini versions of painted InkCanvas in UWP

I have a problem to depict many mini-versions of my InkCanvas. In my app it is possible to write or draw on a InkCanvas. Now I want to depict all created InkCanvas in a GridView. But with mini versions in this GridView i can not create enough mini…
Agredo
  • 131
  • 1
  • 10
0
votes
1 answer

How to use ink canvas using predifined x, y values?

I have some set of x,y values,I want to bind them to my xamal and while executing the application it needs to draw the stroke automatically without any input from the user. Is that possible with ink canvas or do i need to use any other control?
user3610920
  • 1,582
  • 2
  • 13
  • 24
0
votes
0 answers

InkCanvas drawing custom shapes (rectangle)

I create program like a paint. Now a trying create standard shapes. But I have got problem with drawing rectangle. I use method DrawCore for creating custom shapes on InkCanvas. code: protected override void DrawCore(DrawingContext drawingContext,…
Naomiss
  • 167
  • 4
  • 14
0
votes
1 answer

How to modifying InkStrokes of an InkCanvas in .net?

I'm developing an universal windows platform App and want to modify the attribute of Ink Strokes that exist in Ink Canvas, All i know is i can access as below: IReadOnlyList = inkCanvas.InkPresenter.StrokeContainer.GetStrokes(); Any…
0
votes
0 answers

UWP Ruler from InkToolbar without add InkToolbar

Is it possible to add the Ruler from the InkToolbar without add the InkToolbar into the UI? Because I want to create an own UI Tool with Ink stuff like a little circle where I press on it and its show all the pens and more. Greetz
R3Tech
  • 743
  • 2
  • 9
  • 22
0
votes
2 answers

The simples way to zoom a InkCanvas in UWP?

I am trying to zoom into a InkCanvas. My first Idea was: But this way did not work. I cant write anything on my Canvas after I put it into a ScrollViewer. Maybe…
Agredo
  • 131
  • 1
  • 10
0
votes
1 answer

Can not save InkCanvas Content in UWP App into a SQLite Datebase when Release Mode turned on

I have a problem with the saving of the content of an InkCanvas in a UWP App. In Debug Mode it all works perfectly. In Release Mode, I cannot save it. The blob in the sqlite DB is empty all the time (in Release Mode). Here is my Code: static public…
Agredo
  • 131
  • 1
  • 10
0
votes
0 answers

UWP - Microsoft SimpleInk sample app crashes after clicking the Erase All Ink menu

Using the SimpleInk sample app from the Microsoft windows universal sample master from github. After going in the Scenario 1 in the Erase All Ink command few thing the app crash, has any experience this and does anyone know how to fix it?
Jennifer
  • 15
  • 2
0
votes
2 answers

How to display InkCanvas in Viewbox with ruler in inktoolbar

The ruler (InkPresenterRuler) in the inktoolbar doesn't display correctly when the InkCanvas is a child of the Viewbox. Anyone got any idea how to fix it?
Jennifer
  • 15
  • 2
0
votes
1 answer

Redo functionality on InkCanvas

I am using the InkCanvas and InkToolBar in windows 10 build 14939 to capture user ink strokes. I would like to do a custom button with Undo/Redo however I have trouble to create the following: private static InkStroke CreateStroke(List
Jennifer
  • 15
  • 2
0
votes
1 answer

How to change the size of InkCanvas Strokes in UWP?

I have an unsolved problem with my InkCanvas in my UWP App. I saved my strokes in a SQLite Database from a InKCanvas with measurements a*b. Now I want to display this Strokes on another InkCanvas with different measurements than the InkCanvas with…
Agredo
  • 131
  • 1
  • 10
0
votes
1 answer

getting and adding Inkstrokes

I am trying to create a note app myself. I want the app to have several pages, each with their own 'InkCanvas'. I've managed this, but whenever I leave the page the 'collection/list' of 'InkStrokes' gets cleared. My solution is to create a list of…
Magnus
  • 5
  • 2
0
votes
1 answer

Disable touch event handling of an InkCanvas in UWP

I have an InkCanvas over the front of my application. I want it to only interact with Stylus/Pen events. All other events should be passed through to the various controls underneath the canvas. The intention is that I detect gestures on the…
JoshG
  • 775
  • 1
  • 7
  • 19
0
votes
1 answer

Can I draw a primitive shape to UWP inkcanvas?

I am coding a sketching interface using UWP inkcanvas. Basically, I need to provide feedback to the user's drawings, like checking stroke correctness, shape beautifulness etc.. I am thinking about providing interactive feedback directly on the ink…
Tianshu Chu
  • 143
  • 2
  • 8