C# 클래스 Hourglass.Windows.WatermarkAdorner

An Adorner that displays a watermark on a TextBox or ComboBox control.
상속: System.Windows.Documents.Adorner
파일 보기 프로젝트 열기: Dziemborowicz/Hourglass 1 사용 예제들

공개 메소드들

메소드 설명
WatermarkAdorner ( UIElement adornedElement, object hint, System.Windows.Media.Brush brush ) : System

Initializes a new instance of the WatermarkAdorner class.

보호된 메소드들

메소드 설명
ArrangeOverride ( Size finalSize ) : Size

Positions child elements and determines a size for the WatermarkAdorner.

GetVisualChild ( int index ) : Visual

Returns the child at the specified index from the child elements within the element.

MeasureOverride ( Size availableSize ) : Size

Measures the size in layout required for child elements and determines a size for the WatermarkAdorner.

비공개 메소드들

메소드 설명
AdornedElementIsVisibleChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when the value of the UIElement.IsVisible property changes on the .

메소드 상세

ArrangeOverride() 보호된 메소드

Positions child elements and determines a size for the WatermarkAdorner.
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.
리턴 System.Windows.Size

GetVisualChild() 보호된 메소드

Returns the child at the specified index from the child elements within the element.
If the provided index is out of range.
protected GetVisualChild ( int index ) : Visual
index int The zero-based index of the requested child element within the element.
리턴 Visual

MeasureOverride() 보호된 메소드

Measures the size in layout required for child elements and determines a size for the WatermarkAdorner.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size The available size that this element can give to child elements. Infinity can /// be specified as a value to indicate that the element will size to whatever content is available.
리턴 System.Windows.Size

WatermarkAdorner() 공개 메소드

Initializes a new instance of the WatermarkAdorner class.
public WatermarkAdorner ( UIElement adornedElement, object hint, System.Windows.Media.Brush brush ) : System
adornedElement UIElement The to apply the watermark to.
hint object The content of the watermark, typically a .
brush System.Windows.Media.Brush The foreground of the watermark.
리턴 System