Skip to main content
A newer version of this page is available. .

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; }

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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the Alignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also