Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Bringing ContentPane to Front
posted

How do you bring the newly added ContentPane to front ( Make visible ) in DockManager.  The code below adds to group, but I have to click the tab in order to see.

 Also, not sure if this is the most appropriate way to add content to new panes?

// Setup Frame for UI navigation.

Frame frameTest = new Frame();

frameTest.NavigationUIVisibility = NavigationUIVisibility.Hidden;

// Page to add.

Page myPage = new Page();

frameTest.NavigationService.Navigate(myPage);

 

// Setup Content Pane to add.

ContentPane contentPaneTest = new ContentPane();

contentPaneTest.Header = "My Test Pane";

contentPaneTest.Content = frameTest;

tabgrouppaneTest.Items.Add(contentPaneTest);

contentPaneTest.Name = "cpTest";