public override void Refresh() { Task.Run(async() => { var result = !_tes.IsOneGiteeRepo(); await Microsoft.VisualStudio.Shell.ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); IsVisible = result; ((SectionContent as FrameworkElement)?.DataContext as PublishSectionViewModel)?.Refresh(); }).Forget(); base.Refresh(); }