Пример #1
0
    private async void OnSearchResult(ApiLinkServiceEntry entry)
    {
        NavigationManager.NavigateTo(entry.Link);
        await Task.Delay(1000);

        await _searchAutocomplete.Clear();
    }
Пример #2
0
        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;
            }
        }
Пример #3
0
 private void OnSearchResult(ApiLinkServiceEntry entry)
 {
     NavigationManager.NavigateTo(entry.Link);
 }