sampleapplication - expander issue

Jun 25, 2009 at 12:01 PM


If I take your sample app. for WPF  desktop and put the Dockpanel (with various info) within an Expander, suddenly the mouse events are not working anymore

e.g. mousewheel and dragging the map.

The mousewheel issue can be solved by attaching the mousewheel event to the expander, but how do I implement the map dragging feature again?



Arne Madsen

Jun 25, 2009 at 11:48 PM

It's likely that whatever changes you made caused another layout panel to take up the whole window on top of the map, even though it is hidden.  The fact that you had to move the mousewheel event to the expander means the expander is getting the events instead of the map.  Take a look at your visual tree and figure out why the expander is hogging all of the events.