Trying to add button to NavControl ToolBar

Nov 3, 2009 at 11:33 PM

Hi all, I'm new to DeepEarth and trying to wrap my mind around I can add a control to the toolbar.

I am working with the OSM example. In my page.xaml I have a StackPanel in the NavControl like so

 

 <DeepControls:NavControl x:Name="navControl" RotationOn="True">                
      <StackPanel Orientation="Horizontal" MinHeight="48.111">
             <local:MapSourceControl x:Name="mapSourceControl" SelectedSource="Mapnik" />
             <Button x:Name="AddPoint" Click="AddPoint_Click" Margin="2,8,2,8" Style="{StaticResource StandardButton}">
                   <ToolTipService.ToolTip>
                         <TextBlock Text="Toggle SidePanel" />
                   </ToolTipService.ToolTip>
                   <Image x:Name="ToggleSidePanelImage" Source="Resources/ToolBar/Tools.png"/>
             </Button>
      </StackPanel>                
</DeepControls:NavControl> 

but this causes the mapSourceControl to disappear. Any ideas? Thanks.

Coordinator
Nov 5, 2009 at 11:00 AM

I'm guessing you're using the released version from early in the year? Our new Nav Control is much cleaner but we're still cleaning things up over all. We will have a new release this year so you can play with the latest source if your keen or let me know exactly what you'd like to see in the release samples and give me a few more weeks.