If I set CanFloat to False the control cannot dock even when CanDock is set to True, is this a bug?
I would like to allow the user the change layout by allow them to dock the controls. but not allow the controls to be able to float. Float option is not really useful in UWP apps because the control is always contained within the parent window, unlike classic Window Form apps.
SMSubashini Mahendran Syncfusion Team March 24, 2017 11:06 AM UTC
Thank you for contacting Syncfusion support.
We have checked your query "If I set CanFloat to False the control cannot dock even when CanDock is set to True". Currently, the ContextMenu of our document control does not have the option to directly change from document to dock state. But we can change from document to dock state in code behind. If we misunderstood your reqiurement, please provide us more information regarding the requirement. This would help us to proceed further.
Regards, Subashini M.
FAFatCatzMarch 24, 2017 11:28 AM UTC
HiBelow is some code. If I set CanFloat to False I cannot change the docking positions of any of the controls. If I sent CanFloat to True then the controls can change docking positions or it can float. I don't want the float option but it seems setting CanFloat to False also sets CanDock to False?
SMSubashini Mahendran Syncfusion Team March 27, 2017 09:42 AM UTC
Drag option automatically becomes false when we set canFloat property to false. But we can change the DockingPosition of dockwindow through codebehind. By using SideInDockedMode property we can set the side and TargetNameInDockedMode property for changing the dockingposition of desired window. We have prepared the sample to meet your requirement. Please download the same from the below location.