Dock Panels Example doesn't work

StatusIDPriorityType
Closed22565MinorQuestion
ProfileReply
Tin-KaiClient

Sorry it 's me again (and I try to get to know every feature, but sometimes documentation is not 100% clear)

I followed the "get started" steps for"Dock Panels" under

https://galaktika-soft.com/documentation/xafari/dock_panels_start_here.html

Unfortunately I didn't manage to build a solution for Dock Panels from the scratch.
I attached my sample solution.

Could you please help me?

Thanks!! Best regards,
Kai

Attached files:

Replies

UserDescriptionPosted On
Sasha (Xafari Support)Client

Hello Kai,

This issue is examined.

Note: if you create project only DockPanels this function is works.

Regards, Sasha.

Sasha (Xafari Support)Client

Hello Kai,

This issue appear to Xafari framework when UIType used value TabbedMDI only (see attached file TabbedMDI.png).

You can use other values for UIType (MultipleWindowSDI, SingleWindowSDI) until we solve the problem with TabbedMDI.

Feel free to contact us if you have any question.

Regards, Sasha.

Attached files:
Sasha (Xafari Support)Client

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.

× This ticket is closed.

Write US