RadWebBrowserItem
RadWebBrowserItem hosts WebBrowser control to allow using it in the TPF structure.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[ComVisible(false)]
public class RadWebBrowserItem : RadHostItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadHostItemRadWebBrowserItem...
Implements:
Inherited Members
Constructors
Creates the hosted WebBrowser control and forwards its browser and property-change notifications.
public RadWebBrowserItem()
Properties
Gets or Sets the HTML document content.
[Browsable(false)]
public string DocumentText { get; set; }
Gets the HTML document title content.
public string DocumentTitle { get; }
Gets the underlying Windows Forms WebBrowser control hosted by this item.
public WebBrowser WebBrowserControl { get; }
Methods
Raises DocumentCompleted for the hosted browser's document-completed notification.
protected virtual void OnDocumentCompleted(WebBrowserDocumentCompletedEventArgs e)
The document-completed event data.
Raises FileDownload for the hosted browser's file-download notification.
protected virtual void OnFileDownload(EventArgs e)
The file-download event data.
Raises Navigated after the hosted browser navigates to a document and begins loading it.
protected virtual void OnNavigated(WebBrowserNavigatedEventArgs e)
The navigation event data.
Raises Navigating before navigation; handlers can cancel it through the event data.
protected virtual void OnNavigating(WebBrowserNavigatingEventArgs e)
The navigation event data.
Raises NewWindow before a new window opens; handlers can cancel the request.
protected virtual void OnNewWindow(CancelEventArgs e)
The cancelable new-window event data.
Raises PreviewKeyDown for key input received by the hosted browser.
protected virtual void OnPreviewKeyDown(PreviewKeyDownEventArgs e)
The preview-key event data.
Raises ProgressChanged for the hosted browser's download-progress notification.
protected virtual void OnProgressChanged(WebBrowserProgressChangedEventArgs e)
The progress event data.
Raises SystemColorsChanged when the hosted browser reports a system-color change.
Events
Fires when document loading has completed.
public event WebBrowserDocumentCompletedEventHandler DocumentCompleted
Fires when file has been downloaded
public event EventHandler FileDownload
Fires when the browser has navigated to a new document and has begun loading it.
public event WebBrowserNavigatedEventHandler Navigated
Fires before the browser navigates to a new document
public event WebBrowserNavigatingEventHandler Navigating
Fires before new browser window is opened
public event CancelEventHandler NewWindow
Fires before System.Windows.Forms.Control.KeyDown event when a key is pressed while focus is on this control.
public event PreviewKeyDownEventHandler PreviewKeyDown
Fires when the RadWebBrowserItem has updated information on the download progress of a document it is navigating to.
public event WebBrowserProgressChangedEventHandler ProgressChanged
Fires when the System Colors change
public event EventHandler SystemColorsChanged