Compartir a través de


WpfBrowser Class

Definition

Hosts the CRM and web pages in Unified Service Desk and navigates between them. Enables interoperability between Windows Presentation Foundation (WPF) managed code and HTML script.

public ref class WpfBrowser sealed : System::Windows::Controls::UserControl, IDisposable, Microsoft::Crm::UnifiedServiceDesk::Dynamics::Controls::IBrowserCallback2
public sealed class WpfBrowser : System.Windows.Controls.UserControl, IDisposable, Microsoft.Crm.UnifiedServiceDesk.Dynamics.Controls.IBrowserCallback2
type WpfBrowser = class
    inherit UserControl
    interface IBrowserCallback2
    interface IBrowserCallback
    interface IDisposable
Public NotInheritable Class WpfBrowser
Inherits UserControl
Implements IBrowserCallback2, IDisposable
Inheritance
WpfBrowser
Implements

Remarks

This control is based on the WPF WebBrowser control.

Constructors

WpfBrowser(String, String)
WpfBrowser(String)

Initializes a new instance of the WpfBrowser class.

Fields

_webBrowser
ApplicationName

Specifies the application name.

WM_DESTROY
WM_PARENTNOTIFY

Properties

BrowserId
Document

Gets the document.

IsBusy

Gets a Boolean value that specifies whether the browser is busy.

IsDisposed

Gets a Boolean value that specifies whether the browser is disposed.

IsPooled
ReadyState
StatusText

Gets the status.

Url

Gets or sets the URL.

UsdObjectForScripting

Gets or sets an instance of a public class, implemented by Unified Service Desk or your custom application, which can be accessed by script from a web page hosted in Unified Service Desk.

webBrowser

Gets the web browser object.

WebBrowser

Methods

AttachHandler(WebBrowserEvent, Delegate)
Dispose()
GetBrowser()
GetDocument(String)

Gets the document.

GetDocumentContainingId(HTMLDocument, String)

Gets the document containing the requested ID.

GetFrames()

Gets the frames.

GetUrl(String)

Gets the URL.

GoBack()

Moves control to the previous page.

GoForward()

Moves control to the next page.

GoHome()

Moves control to the home page.

Hide()

Hides the browser.

HideScriptErrors(Boolean)

Hides the script errors.

InjectScriptIntoHtmlHead(String)
IsResponding()
Navigate(String, String, Byte[], String)

Navigates to the specified URL.

Navigate(String)

Navigates to the specified URL.

NavigateByScriptInjecton(String, String)
RecoverBrowserProcess()
Refresh()
RemoveHandler(WebBrowserEvent, Delegate)
RunScript(String, String, String)
RunScriptSync(String, String)
RunXrmCommand(String, String)
SelectionChanged(Object, EventArgs)

Raised when the selection is changed.

SetVisualParentHwnd(IntPtr)
ShowBrowser()

Displays the browser.

ShowOutside(String)

Events

BeforeNavigate

Fires when DWebBrowserEvents2, BeforeNavigate2 event fires.

BeforeNavigate_

Fires before navigation occurs in the given object (on either a window element or frameset element). Deprecated.

BeforeNavigate2

Fires before navigation occurs in the given object (on either a window element or a frameset element).

BeforeNewWindow

Fires when DWebBrowserEvents2, NewWindow2 and NewWindow3 events fire.

BrowserNavigating
BrowserObjectAppeared

Fires when the browser process object (IWebBrowser2) appears, providing an opportunity to manipulate its properties.

BrowserProcessExited

Fires when the hosted browser process exits when the WebBrowserExtended control is still valid (not disposed).

ClientToHostWindow

Fires to request that the client window size is converted to the host window size.

Closing
CommandStateChange

Fires when the enabled state of a command changes.

CrashNotify
DocumentComplete

Fires when a document is completely loaded and initialized.

DocumentCompleted
DocumentReady
DownloadBegin

Fires when a navigation operation begins.

DownloadComplete

Fires when a navigation operation finishes, is halted or fails.

DownloadCompleted
DownloadStarted
FileDownload

Fires to indicate that a file download is about to occur.

FrameBeforeNavigate

Fires before navigation occurs in the given object. Deprecated.

FrameNavigateComplete

Fires after a navigation to a link is completed on either a window element or a frameset element. Deprecated.

FrameNewWindow

Fires when a new window is to be created. Deprecated.

Loaded
NavigateComplete

Fires after a navigation to a link is completed on either a window element or a frameset element. Deprecated.

NavigateComplete2

Fires after a navigation to a link is completed on a window element or a frameset element.

Navigated
NavigateError

Fires when an error occurs during navigation.

NewWindow

Fires when a new window is to be created. Deprecated.

NewWindow2

Fires when a new window is to be created.

NewWindow3

Raised when a window is to be created.

OnFullScreen

Fires when the IWebBrowser2 full screen property is changed.

OnMenuBar

Fires when the IWebBrowser2 menu bar property is changed.

OnQuit

Fires before Internet Explorer application quits. Deprecated.

OnStatusBar

Fires when the IWebBrowser2 status bar property is changed.

OnTheaterMode

Fires when the IWebBrowser2 theater mode property is changed.

OnToolBar

Fires when the IWebBrowser2 tool bar property is changed.

OnVisible

Fires when the IWebBrowser2 visible property is changed.

PageLoadComplete

Fires when the browser object has finished downloading the entire page.

PrintTemplateInstantiation

Fires when a print template is instantiated.

PrintTemplateTeardown

Fires when a print template is instantiated.

PrivacyImpactedStateChange

Fires when an event that impacts privacy occurs, or when a user navigates away from a URL that has impacted privacy.

ProgressChange

Fires when the progress of a download operation is updated on the object.

PropertyChange

Fires when the IWebBrowser2 PutProperty method of the object changes the value of a property.

SetPhishingFilterStatus

Fires to indicate the progress and status of Microsoft Phishing Filter analysis of the current webpage.

SetSecureLockIcon

Fires when there is a change in encryption level.

StatusChangeNotify
StatusTextChange

Fires when the status bar text of the object has changed.

TitleChange

Fires when the status bar text of the object has changed.

UpdatePageStatus
WindowClosing

Fires when the window of the object is about to be closed by script.

WindowSetHeight

Fires when the object changes its height.

WindowSetLeft

Fires when the object changes its left position.

WindowSetResizable

Fires to indicate whether the host window should allow resizing of the object.

WindowSetTop

Fires when the object changes its top position.

WindowSetWidth

Fires when the object changes its width.

WindowStateChanged

Fires when the visibility state of a content window, such as the browser window or a tab changes.

Applies to