private void UriHelper_OnLocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (dialogs.Count > 0) { this.Close(); } }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { NavigationManager.LocationChanged -= NavigationManager_LocationChanged; ParentMenu?.MarkAsRequireRender(); TopMenu.MarkAsRequireRender(); TopMenu.Refresh(); }
private async void OnLocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { //var relativeUri = new Uri(args.Location).PathAndQuery; //await JSRuntime.InvokeAsync<string>(GoogleAnalyticsInterop.Navigate, // TrackingId, relativeUri); }
private async void _navigationManger_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (modules != null) { await UpdateCurrentModule(e.Location); } }
/// <summary> /// Handles the OnLocationChanged event of the UriHelper control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs"/> instance containing the event data.</param> private void UriHelper_OnLocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (this.OnNavigate != null) { this.OnNavigate(); } }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { // When going from editing a game to adding a game the page goes from // /game/edit/1 ---> /game/add the route changes but both routes lead // to GameForm.razor so nothing changes. The page is therefore manually // reloaded. JSRuntime.InvokeVoidAsync("LocationReload"); }
private void _NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { _navItems.SetItemActive( _NavigationManager.Uri.Replace(_NavigationManager.BaseUri, "") ); StateHasChanged(); }
void Nav_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (_count < ButterflyCount) { _count++; } _openLeft = false; _openRight = false; }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (!e.Location.Contains("/Login")) { if (string.IsNullOrWhiteSpace(AuthState.Value.UserName)) { NavigationManager.NavigateTo("/Login"); } } }
/// <summary> /// Destroy all reused Modal /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (ReusedModals.Count > 0) { // Since Modal cannot be captured, it can only be removed through JS await _jsRuntime.InvokeVoidAsync(JSInteropConstants.DestroyAllDialog); ReusedModals.Clear(); } }
private async void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { try { await TrackVisit(createNewSession : false); } catch (Exception ex) { await Error.ProcessErrorAsync(ex); } }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (navigationManager.Uri.Contains('?')) { queries = navigationManager.Uri.Split('?')[1].Split('&').Select(query => new Query(query)).ToList(); } else { queries = new List <Query>(); } }
private async void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { try { var name = e.Location.Split("/").LastOrDefault(); await ShowLogAsync(name); } catch (Exception ex) { ErrorMessage = ex.Message; } }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (!e.IsNavigationIntercepted) { return; } var lastSlashIndex = e.Location.LastIndexOf("/"); var route = e.Location.Substring(lastSlashIndex, e.Location.Length - lastSlashIndex); OnNavigatedTo(route); }
private void UriHelper_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { if (_lastUri != e.Location) { _lastUri = e.Location; foreach (Section s in _sections) { s.Elements.Clear(); s.InvokeChangesDone(); } } else { foreach (Section s in _sections) { s.Elements.Where(x => x is InlineJavaScript).ToList().ForEach(x => { x.ShouldUpdate = true; x.Sequence = -1; }); s.InvokeChangesDone(); } } }
private void NavigationManager_LocationChanged(object?sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { CheckUriAndOpenDocument(); }
private void UriHelper_OnLocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { ProcessUri(e.Location); }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { var path = new Uri(e.Location).LocalPath; AddTab(path); }
private async void _navigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { _logger.LogDebug($"Change location: {e.Location}"); await this.SetActiveAsync(e.Location); }
private void Navigation_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { Logger.LogInformation($"Navigation Location Changed: {e.Location}"); }
private void _NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { GetArticlesContent(); }
private void NavigationManager_LocationChanged(object sender, Microsoft.AspNetCore.Components.Routing.LocationChangedEventArgs e) { NavigationManager.NavigateTo(NavigationManager.Uri, true); }