Export (0) Print
Expand All

AerialMode Class

Bing
Represents Aerial and Aerial with labels map modes.

Namespace: Microsoft.Maps.MapControl.WPF
Assembly: Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF)

Visual Basic
Dim instance As AerialMode

public class AerialMode : MapMode

<Window x:Class="WPFTestApplication.ShowMultipleMaps"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"
    Width="1024" Height="768">
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <m:Map Mode="Road"  CredentialsProvider="InsertYourBingMapsKey"  Grid.Column="0" Grid.Row="0" />
        <m:Map Mode="Aerial"  CredentialsProvider="InsertYourBingMapsKey" Grid.Column="1" Grid.Row="0" />
        <m:Map Mode="AerialWithLabels"  CredentialsProvider="InsertYourBingMapsKey" Grid.Column="0" Grid.Row="1" />
        
    </Grid>
</Window>

//Set the map mode to Aerial 
myMap.Mode = new AerialMode();
//Set the map mode to Aerial with labels
myMap.Mode = new AerialMode(true);

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Media.Visual
         System.Windows.UIElement
           System.Windows.FrameworkElement
             System.Windows.Controls.Panel
               System.Windows.Controls.Grid
                 Microsoft.Maps.MapControl.WPF.MapMode
                  Microsoft.Maps.MapControl.WPF.AerialMode

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Show:
© 2014 Microsoft