This project has moved. For the latest updates, please go here.

Suggestion: dynamic title of the XtraTabWorkspace

Jul 17, 2009 at 10:27 AM

Hi,

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)

old:

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

new:

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

Thank you.