Making a menu using C4F controls

Apr 29, 2011 at 10:29 PM

I'm working on an app that needs to bring up a menu when the user taps on one of the app bar buttons (in one instance, it sorts the items in the listbox on the current page based on the user selected sort parameter).  Right now, I'm using a grid with a rectangle & a listbox, with grid visibility & the listbox selecteditem bound to properties of my view model and MVVM Light's EventToCommand used to handle hiding the menu after the user selection.  I'd like to leverage the capabilities that come with the Coding4Fun controls but I'm not sure where to start.  Can someone point me in the right direction?

Thanks,
Rich

Coordinator
Apr 30, 2011 at 12:05 AM

Can't visualize what you want / which tools from my kit you'd want to use.  a few doodles would help me visualize what you're asking a bit better.

Apr 30, 2011 at 4:41 AM

Posted an example at http://cid-1b81d7dd8f3c4b5d.office.live.com/self.aspx/.Public/sample.png

 

Coordinator
Apr 30, 2011 at 5:44 AM

You see the context menu from the silverlight toolkit?  http://silverlight.codeplex.com/releases 

Apr 30, 2011 at 6:20 AM

I did look at it.  I wasn't sure how to handle specific placement, click vs. press-and-hold, or dealing with the gesture service (in my app, the list is a longlistselector).  the C4F controls looked like a better starting point...

Coordinator
Apr 30, 2011 at 7:17 AM

well, you could use the base PopUp control that everything is based on and manually build out your menus.  Look at how I implemented the toast control, that would work the best IMO for how you'd want to implement stuff.