MiniMap.Alignment Property
Gets or sets the alignment of a mini map.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v23.1.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
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>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.