protected override void OnNavigatedTo(NavigationEventArgs e) { NavigationManager.RemovePreviousFromBackStack(); LoginWrapper.NavigationCompleted += LoginWrapper_NavigationCompleted; LoginWrapper.Navigate(new Uri("https://discordapp.com/api/oauth2/authorize?client_id=611491369470525463&redirect_uri=http%3A%2F%2Fuwpcommunity-site-backend.herokuapp.com%2Fsignin%2Fredirect&response_type=code&scope=identify%20guilds")); Type page = e.Parameter as Type; DestinationPage = page == null ? typeof(HomeView) : page; base.OnNavigatedTo(e); }
protected override void OnNavigatedTo(NavigationEventArgs e) { NavigationManager.RemovePreviousFromBackStack(); LoginWrapper.NavigationCompleted += LoginWrapper_NavigationCompleted; LoginWrapper.Navigate(new Uri("https://discordapp.com/api/oauth2/authorize?client_id=611491369470525463&redirect_uri=http%3A%2F%2Fuwpcommunity-site-backend.herokuapp.com%2Fsignin%2Fredirect&response_type=code&scope=identify%20guilds")); Type page = e.Parameter as Type; DestinationPage = page == null ? typeof(HomeView) : page; base.OnNavigatedTo(e); Microsoft.AppCenter.Analytics.Analytics.TrackEvent("Sign in: auth flow started", new System.Collections.Generic.Dictionary <string, string> { { "From", e.SourcePageType.Name }, { "Parameters", e.Parameter?.ToString() } } ); }