This project has moved and is read-only. For the latest updates, please go here.

Suggestion: dynamic title of the XtraTabWorkspace

Jul 17, 2009 at 11:27 AM


First of all, thank you guys for such a brilliant contribution, we use this ExtensionKit intensively as a crucial foundation of our product.

Here I want share a small problem solution if it may help the others:

In one scenario where we have a view (xtraTabPage) that needs its title (text) to be changed on the fly. It seems to be impossible according to the current codes, so I suggest to modify the XtraTabWorkspace.SetTabProperties() to the following: (the first line)


page.Text = String.IsNullOrEmpty(smartPartInfo.Title) ? page.Text : smartPartInfo.Title;


if (!String.IsNullOrEmpty(smartPartInfo.Title)) page.Paint += (sender, e) => page.Text = smartPartInfo.Title;

Thank you.