This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Caliburn.Micro; | |
using Microsoft.Web.WebView2.Core; | |
using Microsoft.Web.WebView2.Wpf; | |
namespace MyDesktopApp | |
{ | |
public class LoginViewModel : Screen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl x:Class="MyDesktopApp.LoginView" | |
... | |
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf" | |
xmlns:cal="http://www.caliburnproject.org"> | |
<Grid> | |
<wv2:WebView2 x:Name="WebView" | |
cal:Message.Attach="[Event NavigationCompleted] = [Action OnNavigationCompletedAsync($source)]" | |
Source="{Binding WebAddress}" /> | |
</Grid> | |
</UserControl> |