C# Class WPF.JoshSmith.Adorners.SingleChildAdornerBase

Abstract class used to create adorners with only one visual child. By default the visual child is not added to the adorner's visual or logical tree. Subclasses can add the child to the visual and/or logical trees if necessary. This class also provides support for moving the adorner via the public OffsetTop and OffsetLeft properties.
Initial Concept: http://blogs.msdn.com/marcelolr/archive/2006/03/03/543301.aspx
Inheritance: System.Windows.Documents.Adorner
Afficher le fichier Open project: Warewolf-ESB/Warewolf

Protected Properties

Свойство Type Description
child System.Windows.UIElement

Méthodes publiques

Méthode Description
GetDesiredTransform ( System.Windows.Media.GeneralTransform transform ) : System.Windows.Media.GeneralTransform

Override.

SetOffsets ( double left, double top ) : void

Updates the location of the adorner in one atomic operation.

Méthodes protégées

Méthode Description
ArrangeOverride ( Size finalSize ) : Size

Override.

GetVisualChild ( int index ) : Visual

Override.

MeasureOverride ( Size constraint ) : Size

Override.

SingleChildAdornerBase ( UIElement adornedElement ) : System.Windows

Protected constructor.

Private Methods

Méthode Description
UpdateLocation ( ) : void

Method Details

ArrangeOverride() protected méthode

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

GetDesiredTransform() public méthode

Override.
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

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

MeasureOverride() protected méthode

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

SetOffsets() public méthode

Updates the location of the adorner in one atomic operation.
public SetOffsets ( double left, double top ) : void
left double
top double
Résultat void

SingleChildAdornerBase() protected méthode

Protected constructor.
protected SingleChildAdornerBase ( UIElement adornedElement ) : System.Windows
adornedElement System.Windows.UIElement The element to which the adorner will be bound.
Résultat System.Windows

Property Details

child protected_oe property

The child element displayed in the adorner.
protected UIElement,System.Windows child
Résultat System.Windows.UIElement