I seem to have ran into a road block. We are using MVVM with Prism and have a View that requires an Ink Canvas. I've create a StrokeCollection that is being bound from my ViewModel to the View. I am able to set the collection from my viewmodel but changes are not coming up to the ViewModel while the user draws. Is there a way to make...
I'm using a WPF InkCanvas control to capture signatures in a Tablet PC application.
One of my requirements is to validate whether or not the application has really been "signed". Right now I'm doing this by checking the Strokes collection of the InkCanvas - if there are 0 strokes, then I know the user has not "signed".
However, if th...
I have a WPF InkCanvas control I'm using to capture a signature in my application. The control looks like this - it's 700x300
However, when I save it as a JPG, the resulting image looks like this, also 700x300
The code I'm using to save
sigPath = System.IO.Path.GetTempFileName();
MemoryStream ms = new Mem...
Hi,
I have an InkCanvas which has it's children programmically added in through C#. They are not set with InkCanvas.LeftProperty or InkCanvas.TopProperty. I was wondering if it was at all possible to get these default X and Y values of the elements. Currently if I check the InkCanvas.LeftProperty or InkCanvas.TopProperty it would return...
Hi,
I was wonder if there was any method in which I can access an element which the user removes. For example when the InkCanvas is set to Select users can select elements and press delete to remove them. Is there any way of getting to this item if they deleted it? Any help is much appreciated.
Cheers,
Nilu
Update
@Drew: Not really...
In a WPF application I have an ObservableCollection of objects (areas on an image) that I want to display and edit (size and position) at runtime.
I would like to use an InkCanvas in Select mode with Rectangles representing my objects, but it doesn't seem to directly support data binding.
Is it possible to somehow bind the Children co...
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, if I hold down the mouse button I can see it drawing lines. What if I want to draw ellip...
In my WPF application I have some drawing functionality. I have solved this using a Canvas and handling mouse gestures manually, and I also add the drawn Strokes (wrapped in InkPresenter) to this Canvas.
Using Blend I suddenly discover that there is something called InkCanvas. According to Blend this is a control that "Defines an area ...
I am using an InkCanvas to arrange buttons. (resize, position). Does anybody know an easy way to align these buttons automatically on a grid. I.e. I only want to allow every tenth pixel to be a valid corner for a button that is moved around.
...
I'm trying to create 1 complex composite shape on an InkCanvas, but I must be doing something wrong, as what I was expecting to happen, is not. I've tried several different incarnations of accomplishing this.
So I have this method.
private void InkCanvas_StrokeCollected(object sender, InkCanvasStrokeCollectedEventArgs e)
{
...
Hi..I am working on a paint like application in wpf.I want the users to be able to add some drawings over images or plain surfaces.Also i want to draw some basic shapes like line,ellipse or a rectangle.I am trying to work with an inkcanvas,where i can do freehand drawing,but i cant draw shapes like in paint.Can anyone guide me and provi...
Hi,
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
...
Hi there,
I've been trying to do the following:
Saving an outline drown using inkcanvas to bmp which is easy and already did using RenderTargetBitmap.
Now what I want to achieve is to save a bmp image that has defined colors from a file for example for the background and the strokes. So what happenes is I have my transperent inkcanvas...
Hi,
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 save the content of the inkCanvas(the drawing object) given the fact that there may b...
Hi i am trying to implement a mspaint like application in wpf.I have successfully implemented most of the basic drawing functionalities by implementing a custom stroke class.Now i am trying to implement the Text inserting option from mspaint.I have tried to implement using DrawingContext.DrawText,it is working alright but when i save the...
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:
<Frame Grid.Row="1" Source="http://google.com/"></Frame>
<InkCanvas Grid.Row="1" x:Name="inkCanvas" Background="Transparent"...
I wrote a custom adorner for the WPF InkCanvas. It takes over the built-in adorner that InkCanvas provides, and I designed it to do the same things (Select, Resize, Move) the adorned elements.
My Thumbs (one on each corner of a Path that has a RectangelGeomoetry locate perfectly. However, the DragDelta code is not operating correctly. ...
I inserted InkCanvas in my WPF Window. When I start to erase with eraser on my pen, inkCanvas automatically changes editing mode to EraseByStroke. But when I use select with pen (button on the side) he can not figure that out and remains on Ink mode. Can I do this by my self (switching mode between Ink and Select) with some Event or some...