in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

SelectTabPageChanged Event problem.

Last post 10/30/2008 6:57 AM by Paul Bartlam_1. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 10/29/2008 8:05 AM

    SelectTabPageChanged Event problem.

     

    Hello. I wish to disable a couple of buttons on my form when no tabs are displayed in the TabbedControlGroup.

    I've been using the SelectedTabPageChanged event to determine which tab is currently selected. However, on closing the last tab this event is not fired and there appears to be no event to signify that a tab has been closed. Thus I have no way of determining when the user closes the last tab and when to disable the buttons.

    On further testing the SelectedTabPageChanged event is triggered when the selectedTabIndex changes from -1 to 0 and any other combination, but when the index changes from 0 to -1 the event is not triggered.

    Regards,

  • 10/29/2008 1:34 PM In reply to

    • Pavel
    • Top 200 Contributor
    • Joined on 7/5/2007
    • Posts 55

    Re: SelectTabPageChanged Event problem.

    To determine which tab is currently selected you can use the SelectedTabPageproperty and update button's enabled status on closing the tab page.

    WPF HATER BLOG
    http://wpfhater.blogspot.com/
  • 10/30/2008 5:09 AM In reply to

    Re: SelectTabPageChanged Event problem.

     I know you can do that, but when the user closes the last tab the SelectTabPageChanged() event is not triggered so you dont know when they close the last tab.

  • 10/30/2008 6:57 AM In reply to

    Re: SelectTabPageChanged Event problem.

     I have found the solution in the support centre. LayoutControl has an event called TabPageCloseBUttonClick. Must be going blind.....

Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED