This is a migrated thread and some comments may be shown as answers.
Close an Inactive Pane
1 Answer 22 Views
This is a migrated thread and some comments may be shown as answers.
Clarian Villamayor
Top achievements
Rank 1
Clarian Villamayor asked on 22 Aug 2011, 04:00 PM
Hi Telerik,

This might be an obvious question but I'd like to ask this anyway. I have two RadDocumentPanes, I'd like to close the inactive pane (that's pane B, see Sample.png) by clicking the close button. But the pane being closed is the selected/active pane  (that's pane A).

My Code:
                            <telerik:RadButton x:Name="HeaderCloseButton"
                                               Grid.Column="1"
                                               Command="telerikDock:RadDockingCommands.Close"
                                               CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}"
                                               Style="{StaticResource PaneHeader_CloseButtonStyle}" />
How can I pass the pane who owns the close button as parameter, and not the active/selected pane?


Thanks,
Clarian

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 25 Aug 2011, 04:02 PM
Hi Clarian,

We have prepared earlier such examples and the inactive pane is closing when the close button is clicked. You can refer to this forum discussion for a sample project.
If you still experience the issue please send us your project so that we can run it here locally and track down the source of the problem.

Greetings,
Konstantina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Asked by
Clarian Villamayor
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or