Imports System.IO ... ' Load the layout from a stream Using fs As New FileStream("layout.xml", FileMode.Open, FileAccess.Read) Me.xamDockManager1.LoadLayout(fs) End Using ... ' Handle the InitializePaneContent event to add content to missing panes Private Sub xamDockManager1_InitializePaneContent(ByVal sender As Object, ByVal e As InitializePaneContentEventArgs) ' TODO: Add content to the missing content pane using the e.NewPane object End Sub ...