C# Class FirstFloor.ModernUI.Windows.Attached.WatermarkAdorner

Adorner for the watermark
Inheritance: System.Windows.Documents.Adorner
Datei anzeigen Open project: gro-ove/actools

Private Properties

Property Type Description
StyleNameForAdorned string

Public Methods

Method Description
WatermarkAdorner ( UIElement adornedElement, object watermark ) : System.Windows

Initializes a new instance of the WatermarkAdorner class

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

GetVisualChild ( int index ) : Visual

Returns a specified child Visual for the parent ContainerVisual.

MeasureOverride ( Size constraint ) : Size

Implements any custom measuring behavior for the adorner.

Private Methods

Method Description
StyleNameForAdorned ( UIElement adornedElement ) : string

Method Details

ArrangeOverride() protected method

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

GetVisualChild() protected method

Returns a specified child Visual for the parent ContainerVisual.
protected GetVisualChild ( int index ) : Visual
index int A 32-bit signed integer that represents the index value of the child . The value of index must be between 0 and - 1.
return Visual

MeasureOverride() protected method

Implements any custom measuring behavior for the adorner.
protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size A size to constrain the adorner to.
return System.Windows.Size

WatermarkAdorner() public method

Initializes a new instance of the WatermarkAdorner class
public WatermarkAdorner ( UIElement adornedElement, object watermark ) : System.Windows
adornedElement UIElement to be adorned
watermark object The watermark
return System.Windows