Profile Picture

How to get NDockingPanelHost from NDockingPanel

Posted By JSW W. 14 Years Ago
Author
Message
Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Dim activePanel As NDockingPanel = TryCast(NDockManager1.ActivePanel, NDockingPanel)

If Not activePanel Is Nothing Then

    Dim host As NDockingPanelHost = activePanel.ParentZone

    Dim panel As NDockingPanel = New NDockingPanel()

    host.AddChild(panel)

End If



JSW W.
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 127, Visits: 1
I can get the active Panel but how to get to panelhost, so i can add new panel in the right place?

Thanks,

Dim tmp_DockHost As NDockingPanelHost = DirectCast(current_active_panel.ParentZone.Children(currentChild), NDockingPanelHost)



Similar Topics


Reading This Topic