Back to Devexpress

MapEditorTransformMode Class

wpf-devexpress-dot-xpf-dot-map-4b7b0583.md

latest4.3 KB
Original Source

MapEditorTransformMode Class

The Map Editor‘s mode that allows you to move, resize, and rotate map items.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class MapEditorTransformMode :
    MapEditorModeBase
vb
Public Class MapEditorTransformMode
    Inherits MapEditorModeBase

Remarks

The icon on the built-in Editor Panel enables the Transform mode:

The markup below translates the Editor to this mode at design time:

xaml
<dxm:MapEditor>
    <dxm:MapEditor.Mode>
        <dxm:MapEditorTransformMode Transform="Rotate,Move"/>
    </dxm:MapEditor.Mode>
</dxm:MapEditor>

The code above uses the properties below:

SymbolDescription
MapEditor.ModeGets or sets the mode that the Map Editor currently uses.
MapEditorTransformModeThe Map Editor‘s mode that allows you to move, resize, and rotate map items.
MapEditorTransformMode.TransformGets or sets the value that specifies transformations that an end user can apply to the Editor’s active items.

Note

The Editor’s mode can be set to Transform at runtime using the MapEditor.SetTransformModeCommand command. Refer to the How to: Implement a Custom UI using the Map Editor API section to learn more about the Editor’s commands.

Note that several map item types do not support the rotate and resize transformations. The following table lists transformations available for each map item type:

Map ItemTranslateResizeRotate
MapPushpinYes
MapCustomElementYes
MapDotYesYes
MapLineYesYesYes
MapEllipseYesYes
MapRectangleYesYes
MapPolylineYesYesYes
MapPolygonYesYesYes
MapPathYesYesYes
MapBubbleYes
MapPieYes

Important

Several map items form a group of active items when they are selected simultaneously. Transformations available for this group are transformations that are available for the less changeable item. For example, when the MapPushpin and MapPath are selected, the Editor allows end-users to move them.

Inheritance

Object DispatcherObject DependencyObject Freezable MapDependencyObject MapEditorModeBase MapEditorTransformMode

See Also

MapEditorTransformMode Members

DevExpress.Xpf.Map Namespace