Since v11.1 XamDockManager has "AllowMaximizeFloatingWindows".
This is much appreciated but the doubleclick behavior is not exactly what I am looking for.
I would like to intercept the doubleclick on the contentpane's titlebar and toggle the fullscreen property instead of the docking property (like in VS2010). So my questions are:
- How to detect the docking state of a contentpane e.g. docked, floating?
- How to detect the window state of a contentpane e.g. minimized, normal, maximized?
- How to change the docking and window state?
Hello Khanh,
Since the PaneToolWindow is a separate Window and it is not part of the visual tree of the MainWindow, it is expected that the Styles won’t apply if you move them in the MainWindow’s Resources. Only the Styles in the App.xaml’s Resources are applied to all the elements of the application.
Hope this helps you.
Stefan,
Thank you very much for your help. Is it possible to move the Style and code to Window.Resources ? Since I tried it but it would not work in Window.Resources.
Sincerely,
Khanh
I have modified the sample a sent you before, so now it works as you want. Basically I set the WindowState Property of the PaneToolWindow in its Loaded event, which I handled in the App.xaml file.
Thank you for your example.
I would like to know how to set the floating contentpane to maximized in C#. Could you help me?
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the PaneToolWindow’s Loaded event, so I can make it minimizable and maximizable. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.