Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MicrosoftEdge/WebView2Samples
/ functions
Functions
1,142 in github.com/MicrosoftEdge/WebView2Samples
⨍
Functions
1,142
◇
Types & classes
149
Method
OffloadDefaultExtensionsIfExtraExtensionsInstalled
SampleApps/WebView2APISample/ScenarioExtensionsManagement.cpp:128
Method
OnBackButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:213
Method
OnCancelButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:228
Method
OnCodeSnippetChanged
(object sender, SelectionChangedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ExecuteJavascript.xaml.cs:37
Method
OnCreateCoreWebView2ControllerCompleted
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
Method
OnCreateCoreWebView2ControllerCompleted
SampleApps/WebView2SampleWinComp/AppWindow.cpp:178
Method
OnCreateEnvironmentCompleted
This is the callback passed to CreateWebViewEnvironmentWithOptions. Here we simply create the WebView.
SampleApps/WebView2APISample/AppWindow.cpp:1951
Method
OnDevToolsButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:245
Method
OnExecuteJavascriptButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ExecuteJavascript.xaml.cs:46
Method
OnForwardButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:218
Method
OnGoButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:233
Method
OnHomeButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:240
Method
OnJavaScriptLocalFileButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ScriptDebugging.xaml.cs:25
Method
OnLaunched
<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
Method
OnLaunched
<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
Method
OnLaunched
<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
Method
OnLaunched
<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
Method
OnMouseMessage
[SendMouseInput]
SampleApps/WebView2APISample/ViewComponent.cpp:738
Method
OnNavigated
Update the URL input field with the new path after navigation
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:51
Method
OnNavigationFailed
<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
Method
OnNavigationFailed
<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
Method
OnNoUserInteraction
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
Method
OnNoUserInteraction
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
Method
OnPermissionRequested
[PermissionRequested1]
SampleApps/WebView2APISample/ScenarioIFrameDevicePermission.cpp:75
Method
OnPermissionRequested
[PermissionRequested1]
SampleApps/WebView2APISample/SettingsComponent.cpp:360
Method
OnPointerClicked
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:110
Method
OnPointerDown
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:62
Method
OnPointerDragged
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:111
Method
OnPointerMessage
SampleApps/WebView2APISample/ViewComponent.cpp:844
Method
OnPointerUp
(MixedRealityPointerEventData eventData)
GettingStartedGuides/HoloLens2_GettingStarted/HoloLens2GetStartedApp/Assets/WebViewBrowser.cs:67
Method
OnReloadButtonClick
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/Browser.xaml.cs:223
Method
OnResize
(EventArgs e)
SampleApps/WebView2WindowsFormsBrowser/EventMonitor.cs:87
Method
OnSensitivityChanged
SampleApps/WebView2APISample/ScenarioSensitivityLabel.cpp:273
Method
OnShowNextWebResponseChanged
(DependencyObject d, DependencyPropertyChangedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2598
Method
OnSuspending
<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
Method
OnSuspending
<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
Method
OnTextScaleChanged
[TextScaleChanged2]
SampleApps/WebView2APISample/AppWindow.cpp:3002
Method
OnTypeScriptLocalFileButtonClicked
(object sender, Windows.UI.Xaml.RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/ScriptDebugging.xaml.cs:29
Method
OnUserInteraction
SampleApps/WebView2APISample/ScenarioThrottlingControl.cpp:236
Method
OnUserInteraction
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3884
Method
OnWebViewCreated
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
Method
OnWebViewVisibleChecked
(object sender, RoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:408
Method
OnWebViewVisibleUnchecked
(object sender, RoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:413
Method
OpenDevToolsCmdExecuted
(object sender, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3295
Method
OpenTaskManagerCmdExecuted
(object sender, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3307
Method
Page_Loaded
(object sender, RoutedEventArgs e)
SampleApps/webview2_sample_uwp/Pages/SettingsPage.xaml.cs:176
Method
PasswordAutosaveCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1296
Method
PdfToolbarSaveCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1668
Method
PerfInfoCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2746
Method
PerformanceInfo
[ProcessInfosChanged1]
SampleApps/WebView2APISample/ProcessComponent.cpp:569
Method
PermissionDialog
SampleApps/WebView2APISample/PermissionDialog.cpp:77
Method
PermissionManagementExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3497
Method
PermissionStateToString
(CoreWebView2PermissionState state)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3511
Method
PinchZoomCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1515
Method
PopulateContextMenu
(CoreWebView2ContextMenuRequestedEventArgs args, IList<CoreWebView2ContextMenu
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1423
Method
PopupsAndDialogs
()
SampleApps/webview2_sample_uwp/Pages/PopupsAndDialogs.xaml.cs:18
Method
PostEventMessage
SampleApps/WebView2APISample/ScenarioWebViewEventMonitor.cpp:1297
Method
PostItemsChangedEvent
()
SampleApps/webview2_sample_uwp/AddHostObjectBridgeComponent/Bridge.cs:27
Method
PostMessageJSONCommandExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3062
Method
PostMessageStringCommandExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3042
Method
PrintAnimationCreated
(object sender, Animation.AnimationCreatedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:158
Method
PrintDataReceived
(object sender, Network.DataReceivedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:140
Method
PrintDialogCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:547
Method
PrintDocumentUpdated
(object sender, DOM.DocumentUpdatedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:176
Method
PrintDownloadWillBegin
(object sender, Page.DownloadWillBeginEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:194
Method
PrintRequestInfo
(object sender, Network.RequestWillBeSentEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:211
Method
PrintResponseInfo
(object sender, Network.ResponseReceivedEventArgs args)
SampleApps/WV2CDPExtensionWPFSample/MainWindow.xaml.cs:206
Method
PrintToDefaultPrinter
This example prints the current web page without a print dialog to default printer with the default print settings.
SampleApps/WebView2APISample/AppWindow.cpp:1208
Method
PrintToDefaultPrinter
This example prints the current web page without a print dialog to default printer.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:886
Method
PrintToDefaultPrinterCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:552
Method
PrintToPdf
[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
Method
PrintToPdfCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:825
Method
PrintToPdfStream
[PrintToPdfStream] This example prints the Pdf data of the current page to a stream.
SampleApps/WebView2APISample/AppWindow.cpp:1395
Method
PrintToPdfStream
<PrintToPdfStream> This example prints the Pdf data of the current web page to a stream.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:1003
Method
PrintToPdfStreamCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:562
Method
PrintToPrinter
[PrintToPrinter] This example prints the current web page to a specified printer with the settings.
SampleApps/WebView2APISample/AppWindow.cpp:1300
Method
PrintToPrinter
This example prints the current web page to the specified printer with the settings.
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:964
Method
PrintToPrinterCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:557
Method
ProcessComponent
SampleApps/WebView2APISample/ProcessComponent.cpp:16
Method
ProcessDpiAwarenessFromDpiAwarenessContext
SampleApps/WebView2APISample/DpiUtil.cpp:81
Method
ProcessExtendedInfoCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:2847
Method
ProcessFailedKindToString
Get a string for the failure kind enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:481
Method
ProcessFailedReasonToString
Get a string for the failure reason enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:508
Method
ProcessKindToString
Get a string for the process kind enum value.
SampleApps/WebView2APISample/ProcessComponent.cpp:534
Method
ProgrammaticSaveAs
[ProgrammaticSaveAs] Call ShowSaveAsUI method to trigger the programmatic save as.
SampleApps/WebView2APISample/ScenarioSaveAs.cpp:126
Method
ProgrammaticSaveAsExecuted
<ProgrammaticSaveAs>
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3658
Method
QueryContinueDrag
IDropSource implementation:
SampleApps/WebView2APISample/ScenarioDragDropOverride.h:25
Method
RandomBlue
SampleApps/WebView2SampleWinComp/CompositionHost.cpp:196
Method
RefreshCmdCanExecute
(object sender, CanExecuteRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:483
Method
RefreshCmdExecuted
(object target, ExecutedRoutedEventArgs e)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:488
Method
RegisterEventHandlers
SampleApps/WebView2APISample/AppWindow.cpp:2309
Method
RegisterForDedicatedWorkerCreated
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:3999
Method
RegisterForSensitivityLabelChange
SampleApps/WebView2APISample/ScenarioSensitivityLabel.cpp:181
Method
RegisterForServiceWorkerRegistered
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:4078
Method
RegisterForSharedWorkerCreated
()
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:4261
Method
ReinitIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:631
Method
ReinitIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WindowsFormsBrowser/BrowserForm.cs:959
Method
ReinitializeWebView
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
Method
ReinitializeWebViewWithNewBrowser
SampleApps/WebView2APISample/AppWindow.cpp:2247
Method
ReloadIfSelectedByUser
(string caption, string message)
SampleApps/WebView2WpfBrowser/MainWindow.xaml.cs:646
← previous
next →
601–700 of 1,142, ranked by callers