Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Web.WebView2.Wpf;
- using System;
- using System.Windows;
- namespace AndAnotherBackend
- {
- /// <summary>
- /// Interaction logic for MainWindow.xaml
- /// </summary>
- public partial class MainWindow : Window
- {
- public WebView2 webView;
- public MainWindow()
- {
- InitializeComponent();
- this.webView = new WebView2();
- this.webView.Source = new Uri("https://www.google.com");
- this.webView.Visibility = Visibility.Visible;
- this.webView.Width = this.Width;
- this.webView.Height = this.Height;
- this.Content = this.webView;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement