DockingManager: How to prevent float state when doubleClick on header?

Hi all,
Is there a property or method to prevent the window to be in flaoting state when a user make a double click on the header of the window?

Thank you.

5 Replies

DK Dinesh Kumar P Syncfusion Team November 22, 2012 10:52 AM UTC

Hi Jacques Sautier,

 

Sorry for the delay being caused.

 

Please download the sample attached with this forum.

 

In the sample we have used the event ‘PreviewMouseDown’ in Docking Manager control. On Double Click we have cancelled this event. Now the double click on header doesn’t change the Window state to ‘Float’.  

 

Please let us know in case of any other queries.

 

Regards,

P.Dinesh Kumar



DM_NoFloat_DoubleClick_87336a65.zip


JS Jacques Sautier November 22, 2012 02:37 PM UTC

Hi Dinesh Kumar,

The code in your sample solves my problem.

Thank you for your answer.


DK Dinesh Kumar P Syncfusion Team November 28, 2012 05:03 AM UTC

Hi Jacques Sautier,
 
Thanks for your update. Please let us know in case of any other queires as always we will feel happy to assist you.
 
Regards,
Dinesh Kumar P    


AM Amr Mahdy April 4, 2022 11:56 AM UTC

hello,
can you share this demo with me, or make it public 



GT Gokul Thanudhas Syncfusion Team April 18, 2022 05:40 PM UTC

Hi Amr,


Sorry for the delay in getting back to you.



You can prevent float state when doubleclick on header using following ways.

1.You can restrict Floating the window by setting false to the CanFloat property, but you cannot float the window even on drag and using context menu while using this property.
syncfusion:DockingManager.CanFloat="False"


2. Handling the PreviewMouseDown event of the DockingManager.Please refer the sample for your reference.
Regards,

Gokul T


Attachment: WpfApp1_f5a8920e.zip

Loader.
Up arrow icon