Jump to content




Recent Status Updates

View All Updates

Developed by Kemal Taskin
Photo
- - - - -

Inkpad Tutorial - Visual C# 2008 Express


  • Please log in to reply
5 replies to this topic

#1 Rammer124

Rammer124

    CC Newcomer

  • Just Joined
  • PipPip
  • 10 posts

Posted 08 February 2008 - 03:37 PM

I am sorry I don't have any pictures... But I am not going to take the time to host them...

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.
  • 0

#2 Lop

Lop

    Speaks fluent binary

  • Just Joined
  • PipPipPipPipPipPipPip
  • 1,112 posts

Posted 08 February 2008 - 03:48 PM

What is a WPF application and I've never used an inkCanvas, is this new in 08?

Nice tutorial.
  • 0

#3 Rammer124

Rammer124

    CC Newcomer

  • Just Joined
  • PipPip
  • 10 posts

Posted 09 February 2008 - 09:35 AM

I don't know if it's new in '08, I started with this about 2-3 days ago.

I will upload a video of me creating one, the computer I wrote the tutorial on had really low memory, ran way to slow to do too much. I am on a faster computer now, should work. Thanks for the compliment!
  • 0

#4 blue

blue

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 11 February 2008 - 10:42 PM

i can't find the ink canvas:mad::confused:
  • 0

#5 Rammer124

Rammer124

    CC Newcomer

  • Just Joined
  • PipPip
  • 10 posts

Posted 12 February 2008 - 03:56 PM

Sorry, you have to go to "Choose Items" in the toolbox, then to WPF, then you simply find Ink Canvas. Hope you liked this tutorial!
  • 0

#6 blue

blue

    CC Lurker

  • Just Joined
  • Pip
  • 8 posts

Posted 18 February 2008 - 07:15 PM

thz that helped
  • 0