A newer version of this page is available. Switch to the current version.

MiniMap.Alignment Property

Gets or sets the alignment of a mini map.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll

Declaration

public MiniMapAlignment Alignment { get; set; }
Public Property Alignment As MiniMapAlignment

Property Value

Type Description
MiniMapAlignment

A MiniMapAlignment enumeration value.

Examples

<ObjectDataProvider x:Key="MiniMapAlignmentValues"
                    MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
    <ObjectDataProvider.MethodParameters>
        <x:Type TypeName="dxm:MiniMapAlignment"/>
    </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
        <dxm:MiniMap Name="miniMap"
                     Alignment="{Binding ElementName=lbAlignments, Path=SelectedValue}"
                     Behavior="{Binding ElementName=lbBehavior, Path=SelectedValue}">
            <dxm:MiniMap.ViewportTemplate>
                <DataTemplate>
                    <Rectangle Fill="#80FF6600" Stroke="#ffFF6600"/>
                </DataTemplate>
            </dxm:MiniMap.ViewportTemplate>
            <dxm:MiniMapImageTilesLayer>
                <dxm:BingMapDataProvider BingKey="{StaticResource bingKey}"/>
            </dxm:MiniMapImageTilesLayer>
        </dxm:MiniMap>
        <StackPanel Grid.Row="1" Orientation="Vertical" Margin="4,2,4,2">
            <Label>Mini Map Alignment:</Label>
            <ListBox Name="lbAlignments" SelectedIndex="1"
                     ItemsSource="{Binding Source={StaticResource MiniMapAlignmentValues}}"/>
        </StackPanel>
See Also