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
Mostrar archivo Open project: Warewolf-ESB/Warewolf

Protected Properties

Property Type Description
child System.Windows.UIElement

Public Methods

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

Protected Methods

Method 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

Method Description
UpdateLocation ( ) : void

Method Details

ArrangeOverride() protected method

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

GetDesiredTransform() public method

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

GetVisualChild() protected method

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

MeasureOverride() protected method

Override.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

SetOffsets() public method

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

SingleChildAdornerBase() protected method

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

Property Details

child protected_oe property

The child element displayed in the adorner.
protected UIElement,System.Windows child
return System.Windows.UIElement