C# Class Open.Core.UI.Controls.HtmlBlock

Renders a block of HTML content.
This control achieves HTML rendering by positioning a DIV element within the host browser at the position of the control.
Inheritance: System.Windows.Controls.UserControl, INotifyDisposed
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
BackgroundStyleProperty System.Windows.DependencyProperty
InnerHtmlProperty System.Windows.DependencyProperty
OffsetProperty System.Windows.DependencyProperty
OverflowStyleProperty System.Windows.DependencyProperty
SourceUriProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
GetPosition Point?
InsertElement void
OnDisposed void
OnLayoutUpdated void
OnLoaded void
OnSourceUriChanged void
RemoveElement void
UpdateDimensions void
UpdateInnerHtml void
UpdateStyle void

Public Methods

Method Description
Dispose ( ) : void
HtmlBlock ( ) : System
Load ( Uri source ) : void

Loads the HTML contained in the file at the given location.

Protected Methods

Method Description
Dispose ( bool isDisposing ) : void

Private Methods

Method Description
GetPosition ( ) : Point?
InsertElement ( ) : void
OnDisposed ( ) : void
OnLayoutUpdated ( object sender, EventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnSourceUriChanged ( ) : void
RemoveElement ( ) : void
UpdateDimensions ( ) : void
UpdateInnerHtml ( ) : void
UpdateStyle ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool isDisposing ) : void
isDisposing bool
return void

HtmlBlock() public method

public HtmlBlock ( ) : System
return System

Load() public method

Loads the HTML contained in the file at the given location.
public Load ( Uri source ) : void
source System.Uri The source file containing the HTML.
return void

Property Details

BackgroundStyleProperty public_oe static_oe property

Gets or sets the CSS style to apply to as the background for the DIV element.
public static DependencyProperty,System.Windows BackgroundStyleProperty
return System.Windows.DependencyProperty

InnerHtmlProperty public_oe static_oe property

Gets or sets the HTML content of the DIV element.
public static DependencyProperty,System.Windows InnerHtmlProperty
return System.Windows.DependencyProperty

OffsetProperty public_oe static_oe property

Gets or sets the pixel offset to apply when calculating the position of the HTML (used when the SL app is not filling the entire window).
public static DependencyProperty,System.Windows OffsetProperty
return System.Windows.DependencyProperty

OverflowStyleProperty public_oe static_oe property

Gets or sets the overflow style to apply to the DIV element.
public static DependencyProperty,System.Windows OverflowStyleProperty
return System.Windows.DependencyProperty

SourceUriProperty public_oe static_oe property

Gets or sets the source of a file containing the HTML to load.
public static DependencyProperty,System.Windows SourceUriProperty
return System.Windows.DependencyProperty