Class RadHtmlPlaceholder
RadHtmlPlaceholder allows you to display a custom html content over the Silverlight application. It is part of the page layout. Set the HtmlSource property or SourceUrl property to set the html content.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadHtmlPlaceholder : Panel
Remarks
When using the control in the browser it is mandatory to set the Windowless property of the Silverlight object, in order to be able to overly html content over Silverlight.
Constructors
RadHtmlPlaceholder()
Fields
HtmlSourceProperty
Identifies the HtmlSource dependency property.
Declaration
public static readonly DependencyProperty HtmlSourceProperty
Field Value
System.Windows.DependencyProperty
|
KeepContentInMemoryProperty
Identifies the KeepContentInMemory property.
Declaration
public static readonly DependencyProperty KeepContentInMemoryProperty
Field Value
System.Windows.DependencyProperty
|
SourceUrlProperty
Identifies the SourceUrl dependency property.
Declaration
public static readonly DependencyProperty SourceUrlProperty
Field Value
System.Windows.DependencyProperty
|
Properties
HtmlPresenter
Gets or sets the HTML presenter element.
Declaration
public HtmlElement HtmlPresenter { get; }
Property Value
System.Windows.Browser.HtmlElement
|
HtmlSource
Gets or sets the html string that will be displayed over the Silverlight content.
Declaration
public string HtmlSource { get; set; }
Property Value
System.String
|
Remarks
This property takes precedence over the SourceUrl property.
KeepContentInMemory
Gets or sets a value indicating whether the associates IFrame content should be kept in memory between reloads. Default is false.
Declaration
public bool KeepContentInMemory { get; set; }
Property Value
System.Boolean
|
Remarks
Please note that keeping the page in memory may lead to leaks when the control is removed from the Visual Tree and will no longer be used.
RespectSilverlightLayoutMeasure
Set to True if the placeholders should be resized from the Silverlight layout only.
Declaration
public bool RespectSilverlightLayoutMeasure { get; set; }
Property Value
System.Boolean
|
SourceUrl
Gets or sets the external url that will be loaded over the Silverlight content.
Declaration
public Uri SourceUrl { get; set; }
Property Value
System.Uri
|
Remarks
If HtmlSource property is set, this property is ignored.
WebBrowser
Gets the WebBrowser control which is internally used in out-of-browser scenarios.
Declaration
public WebBrowser WebBrowser { get; }
Property Value
System.Windows.Controls.WebBrowser
The web browser. |
Methods
ArrangeOverride(Size)
Provides the behavior for the "Arrange" pass of Silverlight layout. Classes can override this method to define their own arrange pass behavior.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
The final area within the parent that this object should use to arrange itself and its children. |
Returns
System.Windows.Size
The actual size used. |
MeasureOverride(Size)
Provides the behavior for the "measure" pass of Silverlight layout. Classes can override this method to define their own measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size
availableSize
The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available. |
Returns
System.Windows.Size
The size that this object determines it needs during layout, based on its calculations of child object allotted sizes. |
Events
UrlLoaded
Occurs when the external url that is set as a source is loaded.
Declaration
public event EventHandler UrlLoaded
Event Type
System.EventHandler
|