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

FixedMiniMapBehavior Class

This class provides the fixed mini map behavior.

Namespace: DevExpress.Xpf.Map

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

Declaration

public class FixedMiniMapBehavior :
    MiniMapBehavior

Remarks

  • This class introduces the FixedMiniMapBehavior.CenterPoint property to specify a center point of the mini map and the FixedMiniMapBehavior.ZoomLevel property to set the zoom level of the mini map.
  • When a mini map operates in this mode, its center point and zoom level are fixed. The following images demonstrates fixed behavior mode.

    MapControl_Minimap_FixedBehavior

Example

This example demonstrates how to customize mini map behavior.

The Mini map supports two behavior types.

  • FixedMiniMapBehavior. The mini map’s zoom level and a center point are fixed.
  • DynamicMiniMapBehavior. The mini map’s zoom level and a center point are based on the map’s zoom level and center point.

To specify the behavior, assign the required behavior class to the MiniMap.Behavior property.

<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="2"  Orientation="Vertical" Margin ="4,2,4,4">
    <Label>Mini Map Behavior:</Label>
    <ListBox Name="lbBehavior" SelectedIndex="0">
        <ListBox.Items>
            <dxm:FixedMiniMapBehavior ZoomLevel="2" CenterPoint="25,55"/>
            <dxm:DynamicMiniMapBehavior ZoomOffset="-2"/>
        </ListBox.Items>
    </ListBox>
</StackPanel>

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

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