Is it possible to add an extra image or control in between groups in the WinExplorerBar?
Perhaps with a drawfilter or something.
So what I like to achieve is:
I managed to get the image in the correct place.
I just don't know where the animation of the expand/collapse is done. If I check the parent.Rect.Height from the GroupUIElement in the creationfilter it will only be updated after the animation is done. Can you tell me where this is? Because I want to update the position of my image during the animation.
I think this drawing effect has to do with the sliding effect of collapsing the box because I can see the redraw after it is finished.
Setting the groupspacing will give all groups the same spacing. I just want it with 1 specific group.
I will play around with the creationfilter some more. Thanks for helping me in the right direction.
Hello Erik,
Please use the following code:
ultraExplorerBar1.GroupSpacing = 32;
Also you could change my sample code and when initializing the rectangle in the end of the constructor, please provide the value '35' instead of '15' for the image's rectangle.
As to the drawing issue, I can see that when collapsing you could see for some milliseconds two images instead of one. This is because of the transition effect of collapsing and I do not see how to overcome this.
Hi Boris,
Thanks for the quick reply!
This solution is in the right direction, however not usable because of the following:
A possible approach to achieve this might be by using a 'CreationFilter'.
You could read about it at the following link: http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/Win_Creation_Filter.html. Here are some topics from our community which could also help you: http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx, http://community.infragistics.com/forums/t/9989.aspx and http://community.infragistics.com/forums/t/50234.aspx. The above approach is not so recommended, because it features element's resizing, creating or removing and could lead to some unexpected behaviors.
Could you please review the sample attached to this post and see if it meets your requirements.
Please do not hesitate to ask if something comes up.