Jump to content

Recommended Posts

Posted

Okay, so I am trying to create a drawing program in WPF using InkCanvas and a couple of buttons to open up self-created tool windows to change properties of the pen.

 

So far I've tried to make a (single) button in my WindowPenTools change the pen size from the default to a larger size.* So far, the only things that I can access in WindowMain are the events, and when I do type in the control name (which does not appear in Intellisense,) WindowMain.InkCanvas1, I see "Reference to a non-shared member requires an object reference."

 

So I searched for a while and came across this:

 

http://msdn2.microsoft.com/en-us/library/aa289529(VS.71).aspx

 

In Windows Forms, I did not have to do this (as far as I can remember,) It just worked.* And this is Visual Basic 2008 with .NET 3.5.

 

So does this mean for every window that I want to able to change properties in, I would have to have 30+ lines of code in each form, even to open a window?

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...