Hello
My Question is realy simple -
How can you dynamicaly add a Frame (Object) to a new or existing Document - and then navigate it to page xy
A Solution in C would be fine as well
Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
Dim Child As New ContentControl()
Dim newFrame As New Frame()
'What ever it takes to create new Frame Object
DockingManager.SetState(Child, DockState.Document)
DockingManager.SetHeader(Child, "Dock" + (DockingManager1.Children.Count + 1).ToString())
Child.Name = "Dock" + (DockingManager1.Children.Count + 1).ToString()
DockingManager1.Children.Add(Child)
TDILayoutPanel.SetTDIIndex(Child, 1)
End Sub
Kind Regards
Dominique