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

Inheritance: System.Windows.Documents.Adorner
Afficher le fichier Open project: hansuky/Yuhan Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ArrangeOverride ( Size finalSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size finalSize ) : Size

Private Methods

Méthode Description
UpdatePosition ( ) : void

Method Details

ArrangeOverride() protected méthode

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Résultat System.Windows.Size

DefaultAdorner() public méthode

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
Résultat System

DefaultAdorner() public méthode

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
Résultat System

GetDesiredTransform() public méthode

public GetDesiredTransform ( System.Windows.Media.GeneralTransform transform ) : System.Windows.Media.GeneralTransform
transform System.Windows.Media.GeneralTransform
Résultat System.Windows.Media.GeneralTransform

GetVisualChild() protected méthode

protected GetVisualChild ( int index ) : Visual
index int
Résultat Visual

MeasureOverride() protected méthode

protected MeasureOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Résultat System.Windows.Size

SetMousePosition() public méthode

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
Résultat void