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

DynamicMiniMapBehavior Class

This class provides the dynamic mini map behavior.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.1.dll

Declaration

public class DynamicMiniMapBehavior :
    MiniMapBehavior

Remarks

Example

This example shows how to customize mini map behavior.

To do this, assign the MiniMapBehavior class descendant object to the MiniMap.Behavior property and specify the object’s properties.

List<MiniMapBehavior> behaviors = new List<MiniMapBehavior> { 
    new FixedMiniMapBehavior(), 
    new DynamicMiniMapBehavior()
};

private void Form1_Load(object sender, EventArgs e) {
    cbAlignment.DataSource = Enum.GetValues(typeof(MiniMapAlignment));
    cbBehavior.DataSource = behaviors;
}
private void cbBehavior_SelectedIndexChanged(object sender, EventArgs e) {
    MiniMapBehavior behavior = cbBehavior.SelectedValue as MiniMapBehavior;
    if (behavior == null) return;
    propertyGrid.SelectedObject = behavior;

    if (mapControl.MiniMap == null) return;
    mapControl.MiniMap.Behavior = behavior;

}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DynamicMiniMapBehavior 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.

Inheritance

Object
MiniMapBehavior
DynamicMiniMapBehavior
See Also