I have WebView2 control in my WPF application. I want to create a button programmatically at my cursor position.
Button ks = new Button();
ks.Width = 25;
ks.Height = 15;
ks.Content = "Add";
ks.Background = Brushes.Red;
ks.Margin = new Thickness(k.X, k.Y, 0, 0);
grid.Children.Add(ks);
But it seems that my button is created under WebView2 control, and I'm not able to see it.
How can I create a button over my WebView2 control?