First, start a Wpf Application. You can make this any size you want.
What you will need:
2 buttons, default size works great.
1 ink canvas. I fit it nearly to the edges on right, left, and top. I left just under an inch of space at the bottom.
You have no need for renaming items in this tutorial, just leave them the way they are.
Put the ink canvas on whatever size background you want.
Change the background color of the form to anything but white...
Then you want to add the two buttons into the inch of space you left at the bottom.
Label one of them "Clear", and the other one "Close". Double click on the button "Clear", and type within the brackets,
this.inkCanvas1.Strokes.Clear();Remember, inkCanvas1 is the default name for the ink canvas. If you renamed it, use the new name after "this." and before ".Strokes"
For the Close button, double click on it. This code is very simple to remember... Just type in,
this.Close();
Now, press F5 to run. Did it work? My instructions on this were correct, as they worked to create one for me. I may create a video tutorial soon as my words weren't the best. Sorry if it didn't help, your welcome if it did!
Remember, this is my first tutorial, so be easy on the criticism.


Sign In
Create Account


Back to top









