C# Class Channel9Downloader.Controls.FrameworkElementAdorner

This class is an adorner that allows a FrameworkElement derived class to adorn another FrameworkElement.
Inheritance: System.Windows.Documents.Adorner
Mostrar archivo Open project: MadCowDevelopment/Channel9Downloader Class Usage Examples

Public Methods

Method Description
DisconnectChild ( ) : void

Disconnect the child element from the visual tree so that it may be reused later.

FrameworkElementAdorner ( FrameworkElement adornerChildElement, FrameworkElement adornedElement ) : System.Collections

Initializes a new instance of the FrameworkElementAdorner class.

FrameworkElementAdorner ( FrameworkElement adornerChildElement, FrameworkElement adornedElement, AdornerPlacement horizontalAdornerPlacement, AdornerPlacement verticalAdornerPlacement, double offsetX, double offsetY ) : System.Collections

Initializes a new instance of the FrameworkElementAdorner class.

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

Positions child elements and determines a size for the FrameworkElement derived class.

GetVisualChild ( int index ) : Visual

Gets the visual child with the specified index.

MeasureOverride ( Size constraint ) : Size

Implements the custom measuring behavior for the adorner.

Private Methods

Method Description
AdornedElementSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Event raised when the adorned control's size has changed.

DetermineHeight ( ) : double

Determine the height of the child.

DetermineWidth ( ) : double

Determine the width of the child.

DetermineX ( ) : double

Determines the X coordinate of the child.

DetermineY ( ) : double

Determine the Y coordinate of the child.

Method Details

ArrangeOverride() protected method

Positions child elements and determines a size for the FrameworkElement derived class.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size The final area within the parent that the element should use to /// arrange itself and its children.
return System.Windows.Size

DisconnectChild() public method

Disconnect the child element from the visual tree so that it may be reused later.
public DisconnectChild ( ) : void
return void

FrameworkElementAdorner() public method

Initializes a new instance of the FrameworkElementAdorner class.
public FrameworkElementAdorner ( FrameworkElement adornerChildElement, FrameworkElement adornedElement ) : System.Collections
adornerChildElement System.Windows.FrameworkElement The adorner child element.
adornedElement System.Windows.FrameworkElement The adorned element.
return System.Collections

FrameworkElementAdorner() public method

Initializes a new instance of the FrameworkElementAdorner class.
public FrameworkElementAdorner ( FrameworkElement adornerChildElement, FrameworkElement adornedElement, AdornerPlacement horizontalAdornerPlacement, AdornerPlacement verticalAdornerPlacement, double offsetX, double offsetY ) : System.Collections
adornerChildElement System.Windows.FrameworkElement The adorner child element.
adornedElement System.Windows.FrameworkElement The adorned element.
horizontalAdornerPlacement AdornerPlacement Horizontal placement of the adorner.
verticalAdornerPlacement AdornerPlacement Vertical placement of the adorner.
offsetX double X offset of the adorner.
offsetY double Y offset of the adorner.
return System.Collections

GetVisualChild() protected method

Gets the visual child with the specified index.
protected GetVisualChild ( int index ) : Visual
index int Index of the child.
return Visual

MeasureOverride() protected method

Implements the custom measuring behavior for the adorner.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size The size constraint.
return System.Windows.Size