HtmlLabel

TheArtOfDev.HtmlRenderer.WPF

Provides HTML rendering using the text property. WPF control that will render html content in it's client rectangle. Using AutoSize and AutoSizeHeightOnly client can control how the html content effects the size of the label. Either case scrollbars are never shown and html content outside of client bounds will be clipped. MaxWidth/MaxHeight and MinWidth/MinHeight with AutoSize can limit the max/min size of the control The control will handle mouse and keyboard events on it to support html text selection, copy-paste and mouse clicks.

継承元: HtmlControl

コンストラクター

HtmlLabel()

Init.

プロパティ

AutoSize : bool

Automatically sets the size of the label by content size

AutoSizeHeightOnly : bool

Automatically sets the height of the label by content height (width is not effected).

メソッド

MeasureOverride(Size) : Size

Perform the layout of the html in the control.

OnDependencyProperty_valueChanged(DependencyObject, DependencyPropertyChangedEventArgs)

Handle when dependency property value changes to update the underline HtmlContainer with the new value.

フィールド

AutoSizeHeightOnlyProperty : DependencyProperty

Dependency property for AutoSizeHeightOnly.

AutoSizeProperty : DependencyProperty

Dependency property for AutoSize.