Query |
Comments | |
Parent Form Bar is not positioned in initial index and it is placed next to child bar item. |
By default Bar collection in MainFrameBarManager will be positioned first and then it will be followed by MDIChild. We have checked this behavior and can find the Parent Form Bar in initial position and MDI Child is loaded to next position.
Screenshot
So can you please confirm, if you have drag and drop it to another position or kindly explain how you have defined MDI Parent – Child structure? That will be helpful for us to analyze and provide prompt solution. If possible, kindly share us the sample.
Sample: Syncfusion\EssentialStudio\[Installed Version]\Windows\Showcase\Diagram Builder\CS
| |
Is there any option to force Bar in required position? |
At present Bar will be displayed in initial position based on how you have added to MainFrameBarManager Bars Collection.
For Example
In this below example, mainMenuBar has been added to collection initially. So it is displayed in initial index and will be followed by standardToolbar.
Code Snippet: [C#]
We will need to clear and re-add or re define all the Bars added to the collection and add required Bar in “0” index and update the index of all other Bars. |
// remove the below LoadBarState codes from the Main form load method.
if (File.Exists(@"..\..\persist.xml"))
{
AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, @"..\..\persist");
this.mainFrameBarManager.LoadBarState(serializer);
}
this.mainFrameBarManager.AutoPersistCustomization = false; |