Hi José António,
We have analyzed your query regarding “When close the document in DocumentContainer the items list is not updated”. By default when tab item is closed tab item is hidden. Please use ‘RestoreDocument’ method, to restore and activate the closed document, as shown in following code example.
C#:
private void Button_Click(object sender, RoutedEventArgs e)
{
string title = "HeaderTitle";
var doc = ExistDocumentInDocumentContainer(title);
if (doc == null)
{
doc = new myUserControl();
DocumentContainer.SetHeader(doc, title);
doc.Name = title.ToLower();
_MainDockManager.Items.Add(doc);
}
else
{
_MainDockManager.RestoreDocument(doc as UIElement);
}
} |
Regards,
Niranjan Kumar