public override async Task Show() { await base.Show(); control = await contentLoader(CancellationToken.None); ContentInserted?.Invoke(this, EventArgs.Empty); }
protected override async Task OnLoad(CancellationToken cancellationToken) { if (box == null) { box = new VBox(); box.Accessible.SetShouldIgnore(true); Add(box); box.Show(); } var control = await contentLoader(cancellationToken); if (cancellationToken.IsCancellationRequested) { return; } if (viewControl != null) { box.Remove(viewControl); viewControl = null; } if (control != null) { viewControl = control.GetNativeWidget <Gtk.Widget> (); box.PackStart(viewControl, true, true, 0); if (bottomToolbar != null) { box.ReorderChild(bottomToolbar.Container, box.Children.Length - 1); } } if (pathDocPending != null) { ShowPathBar(pathDocPending); pathDocPending = null; } ContentInserted?.Invoke(this, EventArgs.Empty); }