mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
Add chapter 10 sample project
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
|
||||
using TemplateStudioSampleApp.ViewModels;
|
||||
|
||||
namespace TemplateStudioSampleApp.Views;
|
||||
|
||||
// To learn more about WebView2, see https://docs.microsoft.com/microsoft-edge/webview2/.
|
||||
public sealed partial class WebViewPage : Page
|
||||
{
|
||||
public WebViewViewModel ViewModel
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public WebViewPage()
|
||||
{
|
||||
ViewModel = App.GetService<WebViewViewModel>();
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel.WebViewService.Initialize(WebView);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user