Popup "View" - Silverlight

Dec 20, 2008 at 7:32 AM
Edited Dec 20, 2008 at 7:38 AM
Curious if anyone had implemented Popups using CWPF and, if so, what your experiences were.  I have a design that calls for "popping" up a listbox of values related to an option selected within a control/view with multiple toggle-buttons in a region.  The reason I'm interested in a pop-up is because the designer wants the list box to be visibly anchored to and positioned relative to the selected toggle button - and the selection region/control/view shouldn't move because of inserting the listbox into or near the selection view. 

I think pop-up is the way to go because it allows me to float the box relative to the selected element, sometimes overlapping it, without having to either "reserve" other regions around the main selection control or insert them into the same region -- which would tend to cause a layout change that isn't desirable.  I'm trying to use the MVC pattern with a controller that receives a selection event from the togglebutton in the "selection" view and then calls into a presenter for the pop-up (using container resolution). 

I know this is a big "what if" but curious if view/presenter/controller is needed in this sort of scenario or if it would be better to just create a model for the data (coming from an ADO.Net data service) and then generate the pop-up in code from the selection view's presenter and then just bind the model data to a data-template. Am I abusing the framework?  Would this is also work with a legitimate region and view and I'm just not seeing it? (Composite WPF is giving me brain freeze...)

I have something that "sort-of" works but seems inelegant.  Again, just curious if anyone else had encountered anything like this and what you might suggest.
Dec 22, 2008 at 2:05 PM


This thread is duplicated. You can find the answer here.

Damian Schenkelman