public async Task LoadDetailsAsync(CancellationToken token) { token.ThrowIfCancellationRequested(); if (Info.Detailed == null) { return; } _details = await Info.Detailed.GetValueAsync(token); }
public async Task LoadDetailsAsync(CancellationToken token) { token.ThrowIfCancellationRequested(); if (Info.Detailed == null) { return; } _details = await Info.Detailed.GetValueAsync(token); await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); token.ThrowIfCancellationRequested(); if (_details != null && Tree.TreeViewNode.TreeView != null) { ApplyText(); ApplyStyle(); } }