This is a migrated thread and some comments may be shown as answers.

DockState Changed?

1 Answer 103 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Veljko Janjic
Top achievements
Rank 1
Veljko Janjic asked on 13 Aug 2007, 08:58 AM
Is it possible to handle the DockStateChanged event.
E.g. I want to have toolbar button which shows/hides dock panel, and if panel is closed by clicking its x button, I need to refresh the state of a  toolbutton. However, I can't  figure out how to know when panel changes its dock state.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 20 Aug 2007, 09:21 AM
Hi Veljko,

you can use the DockingStateChanged event of the DockingManager and its arguments to check whether the DockPanel has been closed and to change the toolbar states:

private void dockingManager1_DockingStateChanged(object sender, Telerik.WinControls.Docking.DockingChangedEventArgs e) 
    string message = "DockObject current state: "
    IDockable window = e.DockObject as IDockable; 
    if (window != null) message = window.Text + " current state: "; 
    AddLog(message + e.DockState, true); 
    AddLog("", true); 


I hope this was helpful.

Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Veljko Janjic
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or