MainForm.RootPane.LoadLayout("Layout1")
For Each o As Object In Form1.RootPane
Log(o)
'PaneWrapper$ConcretePaneWrapper$NonResizePane@3ce13c27
If o Is Pane Then
Dim c1 As Pane
c1 = o
Log("Here1")
End If
If o Is MyCustomView Then
Dim c2 As MyCustomView
c2 = o
Log("Here2")
End If
Next
End Sub