C# Class csShared.Controls.WatermarkAdorner

Inheritance: System.Windows.Documents.Adorner
Mostrar archivo Open project: TNOCS/csTouch

Private Properties

Property Type Description

Public Methods

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

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.

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
adornedElement UIElement to be adorned
watermark object The watermark
return System