private async void OnSearchResult(ApiLinkServiceEntry entry) { NavigationManager.NavigateTo(entry.Link); await Task.Delay(1000); await _searchAutocomplete.Clear(); }
public void RegisterPage(string title, string subtitle, Type componentType, string link) { var entry = new ApiLinkServiceEntry { Title = title, SubTitle = subtitle, ComponentType = componentType, Link = link }; _lookup[title.ToLowerInvariant()] = entry; if (componentType != null) { _lookup[componentType.Name.ToLowerInvariant()] = entry; } if (subtitle != null) { _lookup[subtitle.ToLowerInvariant()] = entry; } }
private void OnSearchResult(ApiLinkServiceEntry entry) { NavigationManager.NavigateTo(entry.Link); }