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?
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
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
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
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
If you run into any trouble, let me know. I can whip up an example for you using a canvas.
-Joe
RSS

