MiniMap.Behavior Property

Gets or sets the behavior of a mini map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.1.dll


public MiniMapBehavior Behavior { get; set; }

Property Value

Type Default Description


A MiniMapBehavior class descendant object.


For more information about mini maps, refer to the Mini Map topic.


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.

View Example

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;

See Also