Display Order in UIElementBuilder

Topics: CAB & Smart Client Software Factory
Oct 28, 2005 at 9:11 AM
originally posted by: Kidd_Kane

It seems from code comments that the UIElementBuilder will be a part of the framework. Will there be an idea of setting a display order property when adding items to be built. As it is now, items get added to a MenuStrip/ToolStripMenuItem in the order they are in the XML file (if you use the XML file). I however don't use the XML file for my modules, but instead upon workitem creation (in the OnInitialized method of my base WorkItem) I call a protected method called AddUIElements which allows my workitem to add global UIElements. I fo this using the MenuItemElement and some custom code that uses the UIElementBuilder from the BankTeller quickStart. Unfortunately all the items show up in the order they are added which isn't always the order I want them displayed.

The short of it is I feel that items that are added dynamically should have a property on it (via the MenuItemElement object for example) which supports a display order.

Will there be something that supports this behavior?