Skip to content

Commit

Permalink
Bring window to front after sign in
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten committed Sep 25, 2023
1 parent 45729fe commit 1e0c6d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WinUIExSample/Pages/OAuth.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ private async void DoOAuth(string responseType)
try
{
var result = await WebAuthenticator.AuthenticateAsync(new Uri(authorizeUri), new Uri(callbackUri), oauthCancellationSource.Token);
MainWindow.BringToFront();
OAuthWindow.Visibility = Visibility.Collapsed;
Result.Text = $"Logged in. Info returned:";
foreach(var value in result.Properties)
Expand Down

0 comments on commit 1e0c6d0

Please sign in to comment.