コード例 #1
0
ファイル: Appbar.razor.cs プロジェクト: weiplanet/MudBlazor
    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);
 }