I'm using SketchEditor.StartAsync() to rotate an existing graphic geometry. However, I have a problem because the rotation center changes every time that I rotate the figure. There is any way to select or set the axis of rotation? Or how could I rotate it correctly?
I'm using ArcGISRuntime 100.12.0 in a WPF application with .net framework.
I attach some screenshots of the problem.
I want to rotate this figure:
I rotate it a couple of times:
When I try to return to the origin position, the shape does not match because, in every previous rotation, the axis to the rotation was different.
My code:
try 
            { 
                AssociatedObject.SketchEditor = new SketchEditor 
                { 
                    IsEnabled = true 
                }; 
                SketchEditConfiguration sketchConfig = new SketchEditConfiguration() 
            { 
                AllowRotate = true, 
                AllowVertexEditing = false, 
                AllowMove = false, 
                ResizeMode = SketchResizeMode.None, 
                VertexEditMode = SketchVertexEditMode.InteractionEdit, 
                RequireSelectionBeforeDrag = false 
            }; 
                SketchCreationMode creationMode = SketchCreationMode.Polygon; 
                SketchEditorGeometry = await AssociatedObject.SketchEditor.StartAsync(g.Geometry, creationMode, sketchConfig); 
                if (SketchEditorGeometry == null) 
                { 
                    CancelCurrentActions(); 
                } 
                else 
                { 
                    // change old geometry.
                } 
            } 
            catch (Exception ex) 
            { 
// … 
}