OUR NETWORK:MediaSmart Home Sansa Community Explore3DTV TechLore RoboCommunity Dijit Community About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 152044.0
January 27, 2009 07:25 AM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Will D.

Member
Joined: 12/24/2008

Hi,

As I unwrap my brain from WPF Line of Business applications which mostly involved the Grid and StackPanel layout containers, it looks like the InkCanvas would be the best candidate for a TouchSmart app with an interface that allowed elements to be shifted around trhe screen using the touch interface.  I haven't had a chance to play with it yet but it looks like the ActiveEditingMode property's 'Select' mode would be the place to start.

Does anyone have any opinions on this?  Also, can anyone suggest a good source of information on the InkCanvas?  I have Matthew MacDonald's 'Pro WPF' and Chris Sells' 'Programming WPF' and neither deals with it in much depth.

Thanks,

Will

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

January 28, 2009 11:19 PM

I think InkCanvas is a good choice if you plan on using the ink features. Otherwise, you can use just Canvas or maybe a Decorator. It also depends on how you want to manipulate items in x,y space. Do you want to use pixels or do you want to use DIUs?

January 29, 2009 7:26 AM

Hi Joe,
Thanks for the reply.

Since WPF natively uses DIUs that seems to me to be kind of a given. No point in fighting it.

I didn't see the same kind of support in the Canvas control that the InkCanvas' 'Select' EditingMode looks like it supplied. Maybe I missed something.

I'm not sure what you mean by using a Decorator. I tend think of that class in terms of visual chrome. Is it useful for dragging things around the screen, too?

Will

January 29, 2009 7:38 AM

Hi Will,

What I meant by that is that child elements in a Canvas are constrained and are always at the position you specify because Canvas does not have any layout so the children are absolute positioned. I should have been more clear on what I meant. I only offered up Decorator as an example if you did not want to manage multiple children. Either creating your own or using Border if you don't want to roll your own. If you need multiple children I would suggest either Canvas or creating your own Panel.

-Joe

January 29, 2009 8:33 AM

Hey Joe,

Thanks again for the feedback. As I said up top, I've no experience with the Canvas so I'm not making connections with some of the stuff that you're referring to. But you've pointed me in the direction of what to look at and I do appreciate it.

Time to get my hands dirty.

Will

January 29, 2009 9:59 AM

If you run into any trouble, let me know. I can whip up an example for you using a canvas.

-Joe

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window