This project is read-only.

Making a menu using C4F controls

Apr 29, 2011 at 11: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?


Apr 30, 2011 at 1: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 5:41 AM

Posted an example at


Apr 30, 2011 at 6:44 AM

You see the context menu from the silverlight toolkit? 

Apr 30, 2011 at 7: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...

Apr 30, 2011 at 8: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.