This project is read-only.

Logging dock events

Feb 19, 2009 at 10:10 AM

I would like to log the docking events as shown in the homepage screenshots.
Can you provide us the code for doing this ? (or tell us how to do it)

Thanks a lot.
Feb 20, 2009 at 8:42 AM
Sorry, I hadn't seen the code was delivered in the API demo... :S

            DependencyPropertyDescriptor prop =
                DependencyPropertyDescriptor.FromProperty(DockableContent.StatePropertyKey.DependencyProperty, typeof(DockableContent));
            prop.AddValueChanged(content, this.OnLogEventStateChanged);

            dockingManager.PropertyChanged += new PropertyChangedEventHandler(dockingManagerPropertyChanged);

Problem solved.