■ WebView2 엘리먼트 : Source 속성 사용하기
▶ MainPage.xaml
1 2 3 4 5 6 7 8 9 |
<?xml version="1.0" encoding="utf-8"?> <Page x:Class="TestProject.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <WebView2 Source="https://learn.microsoft.com/en-us/windows/apps/winui/winui3/" /> </Page> |