public override async Task OnSelected(ExplorerTabViewModel previousModel) { await base.OnSelected(previousModel).ConfigureAwait(true); if (string.IsNullOrWhiteSpace(Content)) { Content = MangaReader.Core.Update.VersionHistory.GetHistory(); } }
public override async Task OnUnselected(ExplorerTabViewModel newModel) { await base.OnUnselected(newModel).ConfigureAwait(true); if (!(newModel is SettingTabViewModel)) { foreach (var tab in ExplorerViewModel.Instance.Tabs.OfType <SettingTabViewModel>().Where(t => t.HideTab).ToList()) { ExplorerViewModel.Instance.Tabs.Remove(tab); } } }
public virtual Task OnUnselected(ExplorerTabViewModel newModel) { return(Task.CompletedTask); }
public virtual Task OnSelected(ExplorerTabViewModel previousModel) { return(Task.CompletedTask); }