Close an Inactive Pane

2 posts, 0 answers
  1. Clarian Villamayor
    Clarian Villamayor avatar
    13 posts
    Member since:
    Jun 2010

    Posted 22 Aug 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top