Skip to content
New issue

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

Missing semi colon in document #3008

Closed
jbp199 opened this issue Jan 8, 2024 · 1 comment · Fixed by #3009
Closed

Missing semi colon in document #3008

jbp199 opened this issue Jan 8, 2024 · 1 comment · Fixed by #3009
Labels
ADO cat: webview2 WebView-related content.

Comments

@jbp199
Copy link

jbp199 commented Jan 8, 2024

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

@captainbrosset
Copy link
Contributor

Thanks for filing this issue. I've opened a PR to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADO cat: webview2 WebView-related content.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants