示例#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);
 }