MCPcopy Create free account

hub / github.com/MicrosoftEdge/WebView2Samples / functions

Functions1,142 in github.com/MicrosoftEdge/WebView2Samples

MethodOffloadDefaultExtensionsIfExtraExtensionsInstalled
SampleApps/WebView2APISample/ScenarioExtensionsManagement.cpp:128
MethodOnBackButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:213
MethodOnCancelButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:228
MethodOnCodeSnippetChanged
(object sender, SelectionChangedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ExecuteJavascript.xaml.cs:37
MethodOnCreateCoreWebView2ControllerCompleted
This is the callback passed to CreateCoreWebView2Controller. Here we initialize all WebView-related state and register most of our event handlers with
SampleApps/WebView2APISample/AppWindow.cpp:2112
MethodOnCreateCoreWebView2ControllerCompleted
SampleApps/WebView2SampleWinComp/AppWindow.cpp:178
MethodOnCreateEnvironmentCompleted
This is the callback passed to CreateWebViewEnvironmentWithOptions. Here we simply create the WebView.
SampleApps/WebView2APISample/AppWindow.cpp:1951
MethodOnDevToolsButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:245
MethodOnExecuteJavascriptButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ExecuteJavascript.xaml.cs:46
MethodOnForwardButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:218
MethodOnGoButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:233
MethodOnHomeButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:240
MethodOnJavaScriptLocalFileButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ScriptDebugging.xaml.cs:25
MethodOnLaunched
<summary> Invoked when the application is launched normally by the end user. Other entry points will be used such as when the application is launched
SampleApps/webview2_sample_uwp/App.xaml.cs:53
MethodOnLaunched
<summary> Invoked when the application is launched normally by the end user. Other entry points will be used such as when the application is launched
SampleApps/WebView2_WinUI3_Sample/WebView2_WinUI3_Sample/App.xaml.cs:41
MethodOnLaunched
<summary> Invoked when the application is launched normally by the end user. Other entry points will be used such as when the application is launched
GettingStartedGuides/WinUI2_GettingStarted/MyUWPGetStartApp/App.xaml.cs:40
MethodOnLaunched
<summary> Invoked when the application is launched. </summary> <param name="args">Details about the launch request and process.</param>
GettingStartedGuides/WinUI3_GettingStarted/WinUI3GetStarted/WinUI3GetStarted/App.xaml.cs:42
MethodOnMouseMessage
[SendMouseInput]
SampleApps/WebView2APISample/ViewComponent.cpp:738
MethodOnNavigated
Update the URL input field with the new path after navigation
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:51
MethodOnNavigationFailed
<summary> Invoked when Navigation to a certain page fails </summary> <param name="sender">The Frame which failed navigation</param> <param name="e">De
SampleApps/webview2_sample_uwp/App.xaml.cs:94
MethodOnNavigationFailed
<summary> Invoked when Navigation to a certain page fails </summary> <param name="sender">The Frame which failed navigation</param> <param name="e">De
GettingStartedGuides/WinUI2_GettingStarted/MyUWPGetStartApp/App.xaml.cs:81
MethodOnNoUserInteraction
This sample app calls this method when receiving a simulated event from its control monitor, but your app can decide how and when to go into this stat
SampleApps/WebView2APISample/ScenarioThrottlingControl.cpp:224
MethodOnNoUserInteraction
This sample app calls this method when receiving a simulated event from its control monitor, but your app can decide how and when to go into this stat
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3876
MethodOnPermissionRequested
[PermissionRequested1]
SampleApps/WebView2APISample/ScenarioIFrameDevicePermission.cpp:75
MethodOnPermissionRequested
[PermissionRequested1]
SampleApps/WebView2APISample/SettingsComponent.cpp:360
MethodOnPointerClicked
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:110
MethodOnPointerDown
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:62
MethodOnPointerDragged
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:111
MethodOnPointerMessage
SampleApps/WebView2APISample/ViewComponent.cpp:844
MethodOnPointerUp
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:67
MethodOnReloadButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:223
MethodOnResize
(EventArgs e)
SampleApps/WebView2WindowsFormsBrowser/EventMonitor.cs:87
MethodOnSensitivityChanged
SampleApps/WebView2APISample/ScenarioSensitivityLabel.cpp:273
MethodOnShowNextWebResponseChanged
(DependencyObject d, DependencyPropertyChangedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2598
MethodOnSuspending
<summary> Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminate
SampleApps/webview2_sample_uwp/App.xaml.cs:106
MethodOnSuspending
<summary> Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminate
GettingStartedGuides/WinUI2_GettingStarted/MyUWPGetStartApp/App.xaml.cs:93
MethodOnTextScaleChanged
[TextScaleChanged2]
SampleApps/WebView2APISample/AppWindow.cpp:3002
MethodOnTypeScriptLocalFileButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ScriptDebugging.xaml.cs:29
MethodOnUserInteraction
SampleApps/WebView2APISample/ScenarioThrottlingControl.cpp:236
MethodOnUserInteraction
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3884
MethodOnWebViewCreated
App is responsible for calling this function. An app would usually call this function from within the callback passed to CreateCoreWebView2Controller(
SampleApps/WebView2APISample/ScenarioThrottlingControl.cpp:97
MethodOnWebViewVisibleChecked
(object sender, RoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:408
MethodOnWebViewVisibleUnchecked
(object sender, RoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:413
MethodOpenDevToolsCmdExecuted
(object sender, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3295
MethodOpenTaskManagerCmdExecuted
(object sender, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3307
MethodPage_Loaded
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/SettingsPage.xaml.cs:176
MethodPasswordAutosaveCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1296
MethodPdfToolbarSaveCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1668
MethodPerfInfoCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2746
MethodPerformanceInfo
[ProcessInfosChanged1]
SampleApps/WebView2APISample/ProcessComponent.cpp:569
MethodPermissionDialog
SampleApps/WebView2APISample/PermissionDialog.cpp:77
MethodPermissionManagementExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3497
MethodPermissionStateToString
(CoreWebView2PermissionState state)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3511
MethodPinchZoomCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1515
MethodPopulateContextMenu
(CoreWebView2ContextMenuRequestedEventArgs args, IList<CoreWebView2ContextMenu
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1423
MethodPopupsAndDialogs
()
SampleApps/webview2_sample_uwp/Pages/PopupsAndDialogs.xaml.cs:18
MethodPostEventMessage
SampleApps/WebView2APISample/ScenarioWebViewEventMonitor.cpp:1297
MethodPostItemsChangedEvent
()
SampleApps/webview2_sample_uwp/AddHostObjectBridgeComponent/Bridge.cs:27
MethodPostMessageJSONCommandExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3062
MethodPostMessageStringCommandExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3042
MethodPrintAnimationCreated
(object sender, Animation.AnimationCreatedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:158
MethodPrintDataReceived
(object sender, Network.DataReceivedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:140
MethodPrintDialogCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:547
MethodPrintDocumentUpdated
(object sender, DOM.DocumentUpdatedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:176
MethodPrintDownloadWillBegin
(object sender, Page.DownloadWillBeginEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:194
MethodPrintRequestInfo
(object sender, Network.RequestWillBeSentEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:211
MethodPrintResponseInfo
(object sender, Network.ResponseReceivedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:206
MethodPrintToDefaultPrinter
This example prints the current web page without a print dialog to default printer with the default print settings.
SampleApps/WebView2APISample/AppWindow.cpp:1208
MethodPrintToDefaultPrinter
This example prints the current web page without a print dialog to default printer.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:886
MethodPrintToDefaultPrinterCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:552
MethodPrintToPdf
[PrintToPdf] Shows the user a file selection dialog, then uses the selected path when printing to PDF. If `enableLandscape` is true, the page is print
SampleApps/WebView2APISample/FileComponent.cpp:102
MethodPrintToPdfCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:825
MethodPrintToPdfStream
[PrintToPdfStream] This example prints the Pdf data of the current page to a stream.
SampleApps/WebView2APISample/AppWindow.cpp:1395
MethodPrintToPdfStream
<PrintToPdfStream> This example prints the Pdf data of the current web page to a stream.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1003
MethodPrintToPdfStreamCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:562
MethodPrintToPrinter
[PrintToPrinter] This example prints the current web page to a specified printer with the settings.
SampleApps/WebView2APISample/AppWindow.cpp:1300
MethodPrintToPrinter
This example prints the current web page to the specified printer with the settings.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:964
MethodPrintToPrinterCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:557
MethodProcessComponent
SampleApps/WebView2APISample/ProcessComponent.cpp:16
MethodProcessDpiAwarenessFromDpiAwarenessContext
SampleApps/WebView2APISample/DpiUtil.cpp:81
MethodProcessExtendedInfoCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2847
MethodProcessFailedKindToString
Get a string for the failure kind enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:481
MethodProcessFailedReasonToString
Get a string for the failure reason enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:508
MethodProcessKindToString
Get a string for the process kind enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:534
MethodProgrammaticSaveAs
[ProgrammaticSaveAs] Call ShowSaveAsUI method to trigger the programmatic save as.
SampleApps/WebView2APISample/ScenarioSaveAs.cpp:126
MethodProgrammaticSaveAsExecuted
<ProgrammaticSaveAs>
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3658
MethodQueryContinueDrag
IDropSource implementation:
SampleApps/WebView2APISample/ScenarioDragDropOverride.h:25
MethodRandomBlue
SampleApps/WebView2SampleWinComp/CompositionHost.cpp:196
MethodRefreshCmdCanExecute
(object sender, CanExecuteRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:483
MethodRefreshCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:488
MethodRegisterEventHandlers
SampleApps/WebView2APISample/AppWindow.cpp:2309
MethodRegisterForDedicatedWorkerCreated
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3999
MethodRegisterForSensitivityLabelChange
SampleApps/WebView2APISample/ScenarioSensitivityLabel.cpp:181
MethodRegisterForServiceWorkerRegistered
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:4078
MethodRegisterForSharedWorkerCreated
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:4261
MethodReinitIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:631
MethodReinitIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WindowsFormsBrowser/BrowserForm.cs:959
MethodReinitializeWebView
In general, re-initializing a WebView2 involves creating and initializing a new WebView2, and then swapping it when ready. We do it in this order to a
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:375
MethodReinitializeWebViewWithNewBrowser
SampleApps/WebView2APISample/AppWindow.cpp:2247
MethodReloadIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:646
← previousnext →601–700 of 1,142, ranked by callers