Hi
How can i hide the group header on the ultraExplorebar....?? Iam looking at the functionality of OUTLOOK 2010.
I want to hide the header but still have the group selectable in the control...?? any ideas?
Hello Burmo,
A possible approach to achieve this might be by using CreationFilter, please look at my code:
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ultraExplorerBar1.CreationFilter = new CF(); } } class CF : IUIElementCreationFilter { void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent) { if ( parent is EditorWithTextUIElement && parent.Parent is UltraExplorerBarGroupHeaderUIElement) { parent.Rect = new Rectangle(0, 0, 0, 0); } } bool IUIElementCreationFilter.BeforeCreateChildElements(UIElement parent) { return false; } }
Please feel free to let me know if I misunderstood you or if you have any other questions.
This code just removes the text in the header.... I want to remove the whole header??
Then you could use instead:
parent.Parent.Rect = new Rectangle(0, 0, 0, 0);
Please note that using this method with CreationFilter you would have to handle all elements' resizing, moving, etc.
So far so good Boris thanks... Its easier to mimic the outlook 2007 behaviour that the outlook 2010...
Ill let you know if i have any more issues
thanks
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I am ready to help you with these requirements, it is just that I am not sure what you want exactly here. Could you please provide a picture(screenshot) with explanations - what you want, how and where exactly.
Thank you in advance.
Hi Boris
After review this a few times what i wanted was not going to work out...
what i need to do now is the following:
1) change the text in the group header
2) set the height of the group header
3) make the group header blend in with its container control... (there should be no distinction between the group header and the contanier control if a treeview is been used as the control container - the group header and the container control must look as 1 component or object when the application is run...)
Im sorry for the inconvenience... any suggestions or code samples will be appreciated....