I use the tabs on NUIDocument to display various elements on the meringue and WinForm UserControl as follows:
private static NUIDocument ShowDoc(Form DocForm, string Title, string Key, int Index)
{
DocForm.TopLevel = false;
DocForm.FormBorderStyle = FormBorderStyle.None;
DocForm.ShowIcon = false;
DocForm.ShowInTaskbar = false;
DocForm.Dock = DockStyle.Fill;
DocForm.Show();
NUIDocument doc = new Nevron.UI.WinForm.Controls.NUIDocument();
doc.Client = DocForm;
doc.Text = title;
doc.Key = Key;
doc.ImageIndex = Index;
DockMng.DocumentManager.AddDocument(doc);
return doc;
}
This works fine, help with:
1. Is this correct?
2. As with inside DocForm (Form) with reference to the parent NUIDocument properly close a tab that we have created.