C# Class ScreenToGif.Controls.ResizingAdorner

The Resizing Adorner controls. https://social.msdn.microsoft.com/Forums/vstudio/en-US/274bc547-dadf-42b5-b3f1-6d29407f9e79/resize-adorner-scale-problem?forum=wpf
Inheritance: System.Windows.Documents.Adorner
Mostra file Open project: dbremner/ScreenToGif

Public Methods

Method Description
GetDesiredTransform ( System.Windows.Media.GeneralTransform transform ) : System.Windows.Media.GeneralTransform
ResizingAdorner ( UIElement adornedElement ) : System

Initialize the ResizingAdorner.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Arrange the Adorners.

GetVisualChild ( int index ) : Visual

Gets the VisualChildren at given position.

Private Methods

Method Description
BuildAdornerBorder ( ) : void

Creates the dashed border around the adorned element.

BuildAdornerCorner ( System.Windows.Controls.Primitives.Thumb &cornerThumb, System.Windows.Input.Cursor customizedCursor ) : void

Instantiates the corner Thumbs, setting the Cursor property, some appearance properties, and add the elements to the visual tree.

EnforceSize ( FrameworkElement adornedElement ) : void
GetCanvasZoom ( Visual referenceVisual ) : double
HandleBottomLeft ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the bottom-left.

HandleBottomMiddle ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the bottom-middle.

HandleBottomRight ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the bottom-right.

HandleLeftMiddle ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the left-middle.

HandleRightMiddle ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the right-middle.

HandleTopLeft ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the top-left.

HandleTopMiddle ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the top-middle.

HandleTopRight ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs args ) : void

Handler for resizing from the top-right.

Method Details

ArrangeOverride() protected method

Arrange the Adorners.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size The final Size
return System.Windows.Size

GetDesiredTransform() public method

public GetDesiredTransform ( System.Windows.Media.GeneralTransform transform ) : System.Windows.Media.GeneralTransform
transform System.Windows.Media.GeneralTransform
return System.Windows.Media.GeneralTransform

GetVisualChild() protected method

Gets the VisualChildren at given position.
protected GetVisualChild ( int index ) : Visual
index int The Index to look for.
return Visual

ResizingAdorner() public method

Initialize the ResizingAdorner.
public ResizingAdorner ( UIElement adornedElement ) : System
adornedElement UIElement The element to be adorned.
return System