C# Class Yuhan.WPF.DragDrop.DragDropFramework.DefaultAdorner

Inheritance: System.Windows.Documents.Adorner
Datei anzeigen Open project: hansuky/Yuhan Class Usage Examples

Public Methods

Method Description
DefaultAdorner ( UIElement adornedElement, UIElement adornerElement, Point adornerOrigin ) : System

Create an adorner with default opacity. The created adorner must then be added to the AdornerLayer.

DefaultAdorner ( UIElement adornedElement, UIElement adornerElement, Point adornerOrigin, double opacity ) : System

Create an adorner. The created adorner must then be added to the AdornerLayer.

GetDesiredTransform ( System.Windows.Media.GeneralTransform transform ) : System.Windows.Media.GeneralTransform
SetMousePosition ( Point position ) : void

Set the position of and redraw the adorner. Call when the mouse cursor position changes.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size finalSize ) : Size

Private Methods

Method Description
UpdatePosition ( ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

DefaultAdorner() public method

Create an adorner with default opacity. The created adorner must then be added to the AdornerLayer.
public DefaultAdorner ( UIElement adornedElement, UIElement adornerElement, Point adornerOrigin ) : System
adornedElement System.Windows.UIElement Element whose AdornerLayer will be use for displaying the adorner
adornerElement System.Windows.UIElement Element used as adorner
adornerOrigin Point Origin offset within the adorner
return System

DefaultAdorner() public method

Create an adorner. The created adorner must then be added to the AdornerLayer.
public DefaultAdorner ( UIElement adornedElement, UIElement adornerElement, Point adornerOrigin, double opacity ) : System
adornedElement System.Windows.UIElement Element whose AdornerLayer will be use for displaying the adorner
adornerElement System.Windows.UIElement Element used as adorner
adornerOrigin Point Origin offset within the adorner
opacity double Adorner's opacity
return System

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

protected GetVisualChild ( int index ) : Visual
index int
return Visual

MeasureOverride() protected method

protected MeasureOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

SetMousePosition() public method

Set the position of and redraw the adorner. Call when the mouse cursor position changes.
public SetMousePosition ( Point position ) : void
position Point Adorner's new position relative to AdornerLayer origin
return void