ResizingService
Represents manipulation service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class ResizingService : GraphServiceBase, IResizingService
Inheritance: objectGraphServiceBaseResizingService
Implements:
Inherited Members
Constructors
Initializes a new instance of the ResizingService class.
Properties
Gets a value indicating whether this instance is resizing.
public bool IsResizing { get; }
True if this instance is resizing; otherwise, false.
Implements:
Methods
Calculates the new resize delta.
protected virtual Point CalculateNewDelta(Point newPoint)
The new point.
Returns:Point
Completes the resize.
public virtual void CompleteResize(Rect finalBounds, Point mousePosition)
The final bounds.
mousePositionPointThe final mouse position.
Implements:
Initializes the resize action.
public virtual void InitializeResize(IEnumerable<IDiagramItem> newSelectedItems, double adornerAngle, Rect adornerBounds, ResizeDirection resizingDirection, Point startPoint)
The selected items.
adornerAngledoubleThe adorner angle.
adornerBoundsRectThe adorner bounds.
resizingDirectionResizeDirectionThe resizing direction.
startPointPointThe start point.
Implements:
Resizes to the new point.
public virtual void Resize(Point newPoint)
The new point.
Implements:
Starts the resize.
public virtual bool StartResize(Point currentPoint)
The current point.
Returns:Implements:
Updates the parent containers of the selected items containers.
protected virtual void UpdateContainers()
Events
Occurs on resizing completed.
public event EventHandler<ResizingEventArgs> CompleteResizing
Implements:
Occurs when resizing.
public event EventHandler<ResizingEventArgs> Resizing
Implements:
Occurs on resizing start.
public event EventHandler<CancelingManipulationEventArgs> StartResizing
Implements: