Advertisement
Guest User

Untitled

a guest
Aug 7th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using Microsoft.Web.WebView2.Wpf;
  2. using System;
  3. using System.Windows;
  4.  
  5. namespace AndAnotherBackend
  6. {
  7.     /// <summary>
  8.     /// Interaction logic for MainWindow.xaml
  9.     /// </summary>
  10.     public partial class MainWindow : Window
  11.     {
  12.         public WebView2 webView;
  13.         public MainWindow()
  14.         {
  15.             InitializeComponent();
  16.             this.webView = new WebView2();
  17.             this.webView.Source = new Uri("https://www.google.com");
  18.             this.webView.Visibility = Visibility.Visible;
  19.             this.webView.Width = this.Width;
  20.             this.webView.Height = this.Height;
  21.             this.Content = this.webView;
  22.         }
  23.     }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement