We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example shown here missing a semicolon on second to last closure:
webView.CoreWebView2.ContextMenuRequested += delegate (object sender, CoreWebView2ContextMenuRequestedEventArgs args) { // add new item to end of collection CoreWebView2ContextMenuItem newItem = webView.CoreWebView2.Environment.CreateContextMenuItem( "Display Page Uri", null, CoreWebView2ContextMenuItemKind.Command); newItem.CustomItemSelected += delegate (object send, Object ex) { string pageUri = args.ContextMenuTarget.PageUri; System.Threading.SynchronizationContext.Current.Post((_) => { MessageBox.Show(pageUri, "Page Uri", MessageBoxButton.OK); }, null); }; <<---- semi colon missing menuList.Insert(menuList.Count, newItem); };
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
AB#48412524
The text was updated successfully, but these errors were encountered:
Thanks for filing this issue. I've opened a PR to fix it.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Example shown here missing a semicolon on second to last closure:
webView.CoreWebView2.ContextMenuRequested += delegate (object sender,
CoreWebView2ContextMenuRequestedEventArgs args)
{
// add new item to end of collection
CoreWebView2ContextMenuItem newItem =
webView.CoreWebView2.Environment.CreateContextMenuItem(
"Display Page Uri", null, CoreWebView2ContextMenuItemKind.Command);
newItem.CustomItemSelected += delegate (object send, Object ex)
{
string pageUri = args.ContextMenuTarget.PageUri;
System.Threading.SynchronizationContext.Current.Post((_) =>
{
MessageBox.Show(pageUri, "Page Uri", MessageBoxButton.OK);
}, null);
}; <<---- semi colon missing
menuList.Insert(menuList.Count, newItem);
};
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
AB#48412524
The text was updated successfully, but these errors were encountered: