Navigation Panel

Quality Band - Preview
Status - In Use

About

NavigationPanel.jpg
Highly custom navigation control with pan and zoom controls and panels for custom functionality.
Simple add what content you'd like to have on the horitonatal arm inside a panel as a child element. For example a Stackpanel full of buttons.

Usage

Bing Maps example:
XAML:
<UserControl x:Class="ExampleControlBing.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:m="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly=Microsoft.VirtualEarth.MapControl" 
    xmlns:n="clr-namespace:DeepEarth.Client.Controls.NavigationPanel.BingMaps;assembly=DeepEarth.Client.Controls.NavigationPanel.BingMaps">
    <Grid x:Name="LayoutRoot" Background="White">
        <m:Map x:Name="map" ScaleVisibility="Collapsed" NavigationVisibility="Collapsed" />
        <n:NavigationPanel x:Name="navpanel" MapName="map" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,8,8,8" />
    </Grid>
</UserControl>


Bing Maps example with a bunch of buttons in the horitontal panel:
XAML:
<UserControl x:Class="ExampleControlBing.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:m="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly=Microsoft.VirtualEarth.MapControl" 
    xmlns:n="clr-namespace:DeepEarth.Client.Controls.NavigationPanel.BingMaps;assembly=DeepEarth.Client.Controls.NavigationPanel.BingMaps">
    <Grid x:Name="LayoutRoot" Background="White">
        <m:Map x:Name="map" ScaleVisibility="Collapsed" NavigationVisibility="Collapsed" />
        <n:NavigationPanel x:Name="navpanel" MapName="map" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,8,8,8" >
            <StackPanel Orientation="Horizontal">
                <Button Content="test1"></Button>
                <Button Content="test2"></Button>
                <Button Content="test3"></Button>
                <Button Content="test4"></Button>
            </StackPanel>
        </n:NavigationPanel>
    </Grid>
</UserControl>


Reference:
  • DeepEarth.Client.Common.dll
  • DeepEarth.Client.Controls.NavigationPanel.dll
  • Microsoft.VirtualEarth.MapControl.dll
  • DeepEarth.Client.BingMaps.dll
  • DeepEarth.Client.Controls.NavigationPanel.BingMaps.dll
  • GeoAPI.dll
  • NetTopologySuite.dll

Full Blend support, simply add these DLLs, then the control appears in your toolbox, drop on the page. You must set the "MapName" to the x:Name of your map control. Feel free to override the template.

Developers

soulsolutions

Roadmap

Version Feature Date
0.1 Initial Architecture 09/07/2009
0.1 Bing Maps support 09/07/2009
0.2 Moved to Preview 09/07/2009
0.3 Content Panel added 09/07/2009
1.0 DEMap support tba

Last edited Jul 9, 2009 at 11:17 AM by soulsolutions, version 5

Comments

No comments yet.