Unable to set width of Float window in DockManager

Hi,
I am trying to open a property grid in Docking Manager in Float State, but whenever i open it by changing its state its width is small. My Xaml Code Snippet is as follows.

<ContentControl x:Name="PropertiesPanel"
                            syncfusion:DockingManager.CanClose="True"
                            syncfusion:DockingManager.CanAutoHide="True"
                            syncfusion:DockingManager.DockAbility="All"
                            syncfusion:DockingManager.Header="{Binding PropertyWindowName,UpdateSourceTrigger=PropertyChanged}"
                            syncfusion:DockingManager.IsRollupFloatWindow="True"
                            syncfusion:DockingManager.IsContextMenuButtonVisible="False"
                            syncfusion:DockingManager.SideInDockedMode="Right"
                            syncfusion:DockingManager.DesiredClientHeightInFloatMode="700"
                            syncfusion:DockingManager.DesiredMinWidthInFloatingMode="400"
                            syncfusion:DockingManager.DesiredMinWidthInDockedMode="400"
                            syncfusion:DockingManager.SizetoContentInDock="True"
                            syncfusion:DockingManager.State="Hidden">

Its hidden at initial state & when property button gets click i set its state from code behind to "float", but whenever it initializes it has tiny 50/80 width & always starts at left-top of screen. 
Q1) I need like whenever i open it by changing its state it should start with min. width 400 & at right or center of screen.
Q2) Also i have noticed that when i try to open a control by changing its state to Dock it does not overlaps but resizes the current control thats in dockingManager, Can it open using dock state & overlap on current documented control?
Can someone please help?

Attachment: DockingIssue_47bdb04d.zip

1 Reply

DR Durga Rajan Syncfusion Team March 12, 2018 07:32 AM UTC

Hi Nitin patel, 

Thanks for contacting Syncfusion support.  

Query 1 : i set its state from code behind to "float", but whenever it initializes it has tiny 50/80 width & always starts at left-top of screen. 

We have checked your query “size of the float window is not updated properly while changing the state to float”. In your sample you have set ClientHeight for FloatWindow, if the ClientHeight is set to the control it will retrieve the value of control’s Width from DesiredWidthInFloatMode property. So, we suggest you to set desired height of the FloatWindow using DesiredHeightInFloatingMode property instead of DesiredClientHeightInFloatMode. We have prepared sample for the sample, please download the sample from below location, 


Query 2 : at right or center of screen. 

We suggest you to use SetFloatingWindowRect property to specify the desired location of the FloatWindow, please find the following code example, 

DockingManager.SetFloatingWindowRect(PropertiesPanel, new Rect((System.Windows.SystemParameters.PrimaryScreenWidth / 2) - ( width / 2), (System.Windows.SystemParameters.PrimaryScreenHeight / 2) - (height / 2), width, height)); 




Query 3 : Also i have noticed that when i try to open a control by changing its state to Dock it does not overlaps but resizes the current control thats in dockingManager, Can it open using dock state & overlap on current documented control? 

We have checked you requirement based on your screenshot and it seems that,  you are expecting overlapping behavior of AutoHidden window in Dock Window. Also the expected behavior in Dockwindow is not possible, so we regret to inform that the expected behavior is not available in our DockingManager. 

If we have misunderstood your query please get back to us with more details. This would help us to provide solution at earliest. 

Regards, 
Durga S. 


Loader.
Up arrow icon