c# - How to make AvalonDock's floating child window dock when user double-clicks its title bar? -


i relatively new avalondock 2.0 heard 1 can change behavior of title bar double-clicked in floating child window new version. can't find clue on google or own site. possible?

i ended modifying source of avalondock because it's addition of 6 lines. if know better way, please post answer.

in switch statement of filtermessage method of layoutanchorablefloatingwindowcontrol.cs

            case win32helper.wm_nclbuttondblclk:                 _model.descendents().oftype<layoutanchorablepane>().first(p => p.childrencount > 0 && p.selectedcontent != null).selectedcontent.dock();                 break; 

in switch statement of filtermessage method of layoutdocumentfloatingwindowcontrol.cs

            case win32helper.wm_nclbuttondblclk:                 _model.rootdocument.dock();                 break; 

Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -