Dock panel problem

StatusIDPriorityType
Closed39557CriticalBug
ProfileReply
alyesirClient

Hi
I have a problem with Dock panels
I have updated my main form according to this
https://docs.devexpress.com/eXpressAppFramework/112618/task-based-help/templates/how-to-create-a-custom-winforms-ribbon-template
and I have implemented this
Implements IDockManagerHolder

Public ReadOnly Property DockManager As DockManager Implements IDockManagerHolder.DockManager
Get
Dim DM As New DockManager
DM.DockingOptions.ShowCaptionImage = True
DM.Form = Me
DM.TopZIndexControls.AddRange(New String() {"DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl"})
Return DM
End Get
End Property
But I get this error when I open any view
System.InvalidOperationException: BarItem of the "
DevExpress.ExpressApp.Win.Templates.ActionContainers.ActionContainerBarItem"
type is expected, but was
"DevExpress.XtraBars.BarLinkContainerItem". It seems that the new template type
(Obaid.Module.Win.TabbedMDIDetailViewForm) is used for the Detail Form while for the Main Form a template of the old type
(DevExpress.ExpressApp.Win.Templates.MainForm) is used. To avoid this error, use templates of the same types only. Refer to http://documentation.devexpress.com/#Xaf/CustomDocument2618 for more details.
at DevExpress.ExpressApp.Win.Templates.ActionContainers.ClassicToRibbonTransformer.OnMergeRibbon(RibbonMergeEventArgs e)
at DevExpress.ExpressApp.Win.Templates.ActionContainers.ClassicToRibbonTransformer.ribbon_Merge(Object sender, RibbonMergeEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonMergeEventHandler.Invoke(Object sender, RibbonMergeEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonControl.RaiseMerge(RibbonMergeEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonControl.MergeRibbon(RibbonControl ribbon, DefaultBoolean hideChildRibbon)
at DevExpress.XtraBars.Ribbon.RibbonControl.MergeRibbon(RibbonControl ribbon)
at DevExpress.XtraBars.Ribbon.RibbonControl.OnMdiChildActivate(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e)
at DevExpress.XtraEditors.XtraForm.OnMdiChildActivate(EventArgs e)
at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
at System.Windows.Forms.Form.WmMdiActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevExpress.XtraEditors.DForm.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at DevExpress.XtraBars.Ribbon.RibbonForm.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

please can you help

Kind Regards,

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello!

Please tell me which Xafari version do you use?

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

alyesirClient

I am using DevExpress 20.2.3 and Xafari 20.2.3

MariyaVoytovichAgent

I am creating a new project and have implemented a new WinForms ribbon template in it.
Also added Xafari modules,implemented IDockManagerHolder.

But unfortunately, I could not reproduce the error.
Can you provide us with additional information or a small demo project that supports the bug?

Regards,
Mariya
On behalf of Xafari Client Services Team

alyesirClient

Thank you very much for your support
the problem is that I have set this line
DevExpress.ExpressApp.FrameworkSettings.DefaultSettingsCompatibilityMode = DevExpress.ExpressApp.FrameworkSettingsCompatibilityMode.v20_1
while it must be set to
DevExpress.ExpressApp.FrameworkSettings.DefaultSettingsCompatibilityMode = DevExpress.ExpressApp.FrameworkSettingsCompatibilityMode.Latest

Kind Regards,

× This ticket is closed.

Write US