Select to view content in your preferred language

Place Map Control in Accordion Problem

1168
1
09-20-2011 01:02 PM
MichaelKolonay
Deactivated User
When I place a map control inside an accordionItem I cannot pan with the mouse. The control still responds to keyboard events and to the mouse wheel,  but not to clicks. Any Ideas? I've included some basic xaml that gives me the problem.

Thanks.

xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"

//**

**//


<toolkit:Accordion HorizontalAlignment="Stretch" Margin="24,16,40,36" VerticalAlignment="Stretch">

            <toolkit:AccordionItem Header="Map" >
                <toolkit:AccordionItem.Content>
                    <esri:Map Background="White" Height="200" WrapAround="True" Width="500">
                        <esri:ArcGISTiledMapServiceLayer Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
                    </esri:Map>
                </toolkit:AccordionItem.Content>
            </toolkit:AccordionItem>
            <toolkit:AccordionItem Header="Other Stuff" FontWeight="Bold">
        <toolkit:AccordionItem.Content>
                    <TextBlock FontStyle="Normal">Another Tab</TextBlock>
                </toolkit:AccordionItem.Content>
   </toolkit:AccordionItem>
     </toolkit:Accordion>
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
This is a related issue: http://forums.arcgis.com/threads/8575-Pan-Doesn-t-Work!!!

Accordion/Scrollviewer intercept mouse events that allow map navigation.
0 Kudos