This project is read-only.

DockableContent DockableContentState Changed Event

Nov 26, 2008 at 1:05 PM
Hi,

Is there any way to catch the event when a dockable content item has changed state? I.e. from Docked to FloatingWindow for example?

Thanks in advance
Jan 19, 2009 at 9:35 PM
I have the same question as above. I need to know when a dockableContent has been dragged out of or in to a documentPane. I haven't found such an event. Does one exist or is there a way to accomplish this. Thanks for any help!
Jan 20, 2009 at 6:17 AM
I've found one way of doing it but I'm not even sure if it is the correct way:

DockableContent dockableContentWindow = new DockableContent();
DependencyPropertyDescriptor prop = DependencyPropertyDescriptor.FromProperty(DockableContent.StatePropertyKey.DependencyProperty, typeof (DockableContent));
prop.AddValueChanged(dockableContentWindow, DockableWindowsStateChanged);

private void DockableWindowsStateChanged(object sender, EventArgs e) {
    // do whatever
}

 

Jan 22, 2009 at 7:49 AM
That is the correct way. It is how the demo application does it.