Skip to main content

MiniMap.Alignment Property

Gets or sets the alignment of a mini map.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

Declaration

public MiniMapAlignment Alignment { get; set; }

Property Value

Type Description
MiniMapAlignment

A MiniMapAlignment enumeration value.

Available values:

Name Description
TopLeft

A mini map is aligned to the top-left corner of a map.

TopRight

A mini map is aligned to the top-right corner of a map.

BottomLeft

A mini map is aligned to the bottom-left corner of a map.

BottomRight

A mini map is aligned to the bottom-right corner of a map.

Example

<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