New to Telerik UI for WPFStart a free 30-day trial

Represents a wrapper of HtmlFormatProvider that can be used in data binding scenarios.

Definition

Constructors

Initializes a new instance of the HtmlDataProvider class.

C#
public HtmlDataProvider()

Fields

HtmlProperty

DependencyProperty

The HTML property.

C#
public static readonly DependencyProperty HtmlProperty

SourceProperty

DependencyProperty

The source property.

C#
public static readonly DependencyProperty SourceProperty

Properties

Gets or sets the current document as HTML

C#
public string Html { get; set; }

Methods

Binds the specified RadRichTextBox to the current instance.

C#
protected override void Bind(RadRichTextBox box)
Parameters:boxRadRichTextBox

The RadRichTextBox.

Overrides: DataProviderBase.Bind(RadRichTextBox)

Gets the attached data provider.

C#
public static DataProviderBase GetAttachedDataProvider(DependencyObject dependencyObject)
Parameters:dependencyObjectDependencyObject

The dependency object the data provider should be obtained from.

Returns:

DataProviderBase

Gets the source.

C#
public static string GetSource(DependencyObject dependencyObject)
Parameters:dependencyObjectDependencyObject

The dependency object the source should be obtained from.

Returns:

string

The source.

Sets the source.

C#
public static void SetSource(DependencyObject dependencyObject, string sourceValue)
Parameters:dependencyObjectDependencyObject

The dependency object the source should be set to.

sourceValuestring

The source value.