internal async Task LoadSuggestedTagsAsync()
        {
            // grab all tags
            await Task.Run(() =>
            {
                Thread.Yield(); // make sure UI builds up
                _tags.FindTaggedPages(String.Empty);
            });

            // get the known suggestions (this populates the UI)
            await _suggestedTags.LoadSuggestedTagsAsync();

            // update the tags loaded from the settings
            foreach (var t in _suggestedTags.Values)
            {
                TagPageSet tag;
                if (_tags.Tags.TryGetValue(t.TagName, out tag))
                {
                    t.Tag = tag;
                }
            }
        }
Example #2
0
 internal Task LoadTaggedPagesAsyc()
 {
     return(Task.Run(() => _taggedPagesCollection.FindTaggedPages(string.Empty)));
 }