Hello Kai! For use DockPanels with UIType = TabbedMDI you have to create additional class (for example MyDetailViewForm): Public Class MyDetailViewForm
Inherits DetailViewForm
Implements IDockManagerHolder Public ReadOnly Property DockManager() As DevExpress.XtraBars.Docking.DockManager Implements IDockManagerHolder.DockManager
Get
Dim _dockManager As DevExpress.XtraBars.Docking.DockManager
_dockManager = New DevExpress.XtraBars.Docking.DockManager()
_dockManager.DockingOptions.ShowCaptionImage = True
_dockManager.Form = Me
_dockManager.TopZIndexControls.AddRange(New String() {"DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl"})
Return _dockManager
End Get
End Property
End Class and add CreateCustomTemplate event to WinApplication.cs: Partial Public Class MyDockPanelsWindowsFormsApplication
Inherits WinApplication
...
Private Sub MyDockPanelsWindowsFormsApplication_CreateCustomTemplate(sender As Object, e As CreateCustomTemplateEventArgs) Handles Me.CreateCustomTemplate
...'actions for ARMs
If e.Context = TemplateContext.View Then
e.Template = New MyDetailViewForm
End If
End Sub
...
End Class You could verify the changes in your attached file (Xafari.MyDockPanels.zip). This instructions will be added in documentation Xafari in future. Feel free to contact us if you have any question. Regards, Sasha. |