Hello,
When creating a floating ToolWindow programmatically the DocumentHost is setting the first DocumentPane to be selected. So if I had a second DocumentPane selected, then opened a ToolWindow, the first DocumentPane would suddenly become selected. For example:
<Grid> |
<Grid.RowDefinitions> |
<RowDefinition /> |
<RowDefinition /> |
</Grid.RowDefinitions> |
<Controls:RadDocking> |
<Controls:RadDocking.DocumentHost> |
<Controls:RadPaneGroup x:Name="docPaneGroup"> |
<Controls:RadDocumentPane Header="Document 1" Title="Document 1" /> |
<Controls:RadDocumentPane Header="Document 2" Title="Document 2" /> |
</Controls:RadPaneGroup> |
</Controls:RadDocking.DocumentHost> |
</Controls:RadDocking> |
<Button Content="Click" Width="100" Height="30" HorizontalAlignment="Center" Click="Button_Click" Grid.Row="1" Margin="0, 5" /> |
</Grid> |
And code behind:
public void CreateFloatingWindow() { |
var window = new RadPane(); |
docPaneGroup.AddItem(window, DockPosition.Center); |
window.MakeFloatingOnly(); |
} |
private void Button_Click(object sender, RoutedEventArgs e) { |
CreateFloatingWindow(); |
} |
Can you replicate this? Am I doing anything wrong?
I can confirm this defect was not introduced with Q1 2010.
Regards,
James.