Hi,
I'm adding instances of RadPane to a RadPaneGroup at runtime following a RadMenuItem click event:
The RadPane is shown as the last pane in the group and appears to have the focus as the pane header is highlighted.
However, my user control, "Foo", isn't shown in the RadPane.
Please note: This has only started happening with the Q1 2010 WPF controls! This doesn't happen with the Q3 2009 WPF controls.
If I click on a different pane then back to my new pane, the user control, "Foo", is now visible in the new pane!
If there is more than 1 pane displayed I can use this code as a workaround at the end of my click event:
The above workaround doesn't work if the pane added is the only pane in the group.
I tried the code in Miroslav's blog but this didn't work for me either:
http://blogs.telerik.com/miroslavnedyalkov/posts/10-03-04/how_to_activate_a_pane_in_the_telerik_docking_control_for_wpf_and_silverlight.aspx
Any idea what I need to add to make my code work with the new version of these controls?
Thanks,
Mark
I'm adding instances of RadPane to a RadPaneGroup at runtime following a RadMenuItem click event:
private void RadMenuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e) |
{ |
RadPane rp = new RadPane(); |
rp.Header = "New Foo"; |
rp.VerticalAlignment = VerticalAlignment.Top; |
rp.Name = "Foo"; |
rp.IsSelected = true; |
radPaneGroup1.AddItem(rp, Telerik.Windows.Controls.Docking.DockPosition.Center); |
Foo foo = new Foo(); |
rp.Content = foo; |
} |
The RadPane is shown as the last pane in the group and appears to have the focus as the pane header is highlighted.
However, my user control, "Foo", isn't shown in the RadPane.
Please note: This has only started happening with the Q1 2010 WPF controls! This doesn't happen with the Q3 2009 WPF controls.
If I click on a different pane then back to my new pane, the user control, "Foo", is now visible in the new pane!
If there is more than 1 pane displayed I can use this code as a workaround at the end of my click event:
foreach (RadPane pane in radPaneGroup1.Items) |
{ |
pane.Focus(); |
} |
I tried the code in Miroslav's blog but this didn't work for me either:
http://blogs.telerik.com/miroslavnedyalkov/posts/10-03-04/how_to_activate_a_pane_in_the_telerik_docking_control_for_wpf_and_silverlight.aspx
Any idea what I need to add to make my code work with the new version of these controls?
Thanks,
Mark