Last Updated: 25 Aug 2016 12:58 by ADMIN
Created by: Geri
Comments: 0
Category: Docking
Type: Bug Report
Possible workaround:

A custom RadDocking control can be created, in which the OnCreateAutomationPeer() method is overridden. OnCreateAutomationPeer() should return a custom RadDocking AutomationPeer, in which the ToolWindowAutomationPeer is removed from the collection of child elements of RadDocking AutomationPeer.
Approach demonstrated in the attached project.
Last Updated: 15 Mar 2019 17:39 by ADMIN
Last Updated: 03 Aug 2016 12:51 by BENN
When dragging a pane in Deferred DragDropMode, if the moue cursor is far from the header, then the Drag Cue appears far from the cursor.
Last Updated: 03 Aug 2016 12:52 by ADMIN
On some rare cases, RadPane.OnPaneLoaded is being called before ApplyTemplate was called, and therefore, UpdateAllowDrag which tries to find the first child of the rad pane (the "wrapper" grid) fails, and pane remains undraggable.

To reproduce this issue, I have a button that when clicking on it, it adds a new pane (There is a collection of View Models, that when items are added or removed, then a code that is using binding to that collection adds or removes a pane.

The scenario happens when the system is laggy (For example, heavy UI on the panes content), and I'm adding several view models to that collection.
It doesn't always happen, but sometimes, one of more of the panes are not draggable.
I can clearly see that the OnPaneLoaded was called before the OnApplyTemplate was.

Maybe it can be a good idea to call UpdateAllowDrag on the OnApplyTemplate function if the OnLoad was called first.

Last Updated: 03 Jan 2017 21:10 by BENN
On Deferred mode, you can still undock panes (for example, but context menu).
The problem starts when you want to dock them back, When moving a pane above the compass, it hides the compass (And this problem is a PITA when you docking with the inner compass (rather than the root compass), since the left,top, center etc.. arrows are near to each other (so you are not 100% sure you hit the right arrow).

Last Updated: 04 Aug 2016 10:49 by BENN
When changing the DragDropMode in runtime, the panes behave unexpectedly.

If changing from Immediate to Deferred:

* Docked panes are not movable (no compass and no deferred adorner is being shows)

* Floating panes that are being docked do have the compass and the deferred adorner, when you try to move them after they were docked. 


If you change is back from Deferred to Immediate:

* Panes that you could not move can be moved (and then become floating) again/

* The panes that did have  the compass and the deferred adorner, don't move when you try to drag them. However, when you release the mouse button, then the start moving with the mouse pointer... without any mouse button pressed.

I've debugged the controls using the source code, and I've concluded that.

RadPane.UdateAllowDrag() is being called on PaneLoaded, which happens when I drag a floating pane into the Docking area.

In this case, when the DragDropMode is set to Deferred, then AllowDrag is set to True (with the call of DragDropManager.SetAllowDrag)

This is why that pane does have the Deferred Drag Adorner (The Drag Cue), while other panes doesn't.


On the other hand, when I change the DragDropMode to be Immediate again, then that pane is left with AllowDrag set to true, and it is registered to the DragDropManager events, which causes the second problem.


In my opinion, the RadPane.UpdateAllowDrag() should be called also when the DragDropMode is changed.
Last Updated: 15 Mar 2019 17:39 by ADMIN
Just like in Visual Studio, a floating pane, which I want to dock (for example to the bottom), can either take the whole width or just the width that is left.

For example:
At start, the panes in the bottom does not consume the whole window width. After undocking the panes and docking them back, the compass only shows me an option to dock the panes while consuming the whole width.

I have no option to return to the original state (like in Start.png). The only way to return to that state is undock and re-dock the right pane, and then dock and re-dock the left pane.

Visual Studio has this feature (see image).
Last Updated: 03 Jan 2017 21:12 by ADMIN
Currently when a Pane becomes floating and we are still holding it with the mouse the ToolWindow could not be snapped. First the mouse should be released and right after that the ToolWindow could be snapped.
Last Updated: 17 Aug 2016 08:23 by ADMIN
Last Updated: 07 Nov 2016 15:02 by ADMIN
When the DropDownDisplayMode of the RadPaneGroup is set to Visible and that group is placed inside the DocumentHost calling the RemoveFromParent from a button places in the HeaderTemplate of the RadPane causes that RadPane instance to not be removed from the memory.

Available in LIB version 2016.3.1107, it will be also available in the 2017 R1 release.
Last Updated: 04 Jan 2017 08:25 by ADMIN
The the keyboard focus is also lost if you undock a RadPane from its docked state.
As a workaround you can persist the focus as shown in the RestoreFocusOnStateChanged SDK example, that can be found here:
Last Updated: 15 Mar 2019 17:39 by ADMIN
Provide an easy functionality to exclude a pane or group of panes from reordering when AllowDragReorder is set to True.
Last Updated: 14 Dec 2015 15:04 by ADMIN
Calling the LogicalTreeHelper.GetChildren() does not include the DocumentHost and its contents.
Available in LIB version 2015.3.1214, it will be also available in the 2016 Q1 Release.
Last Updated: 12 Apr 2017 11:49 by ADMIN
Available in LIB version 2017.1.410 , it will be also available in the R2 2017 Release. 
Last Updated: 14 Dec 2015 15:05 by ADMIN
This also causes the initial DataContext to be left out in the memory.
Available in LIB version 2015.3.1214, it will be also available in the 2016 Q1 Release.
Last Updated: 03 Aug 2016 12:50 by ADMIN
If an custom implementation is implemented that restores the IsActive property state if a RadPane during the control's LoadLayout functionality the "Active" visual state if that RadPane instance is not cleared if different RadPane is selected.

This issue could be observed in the VisualStudioDocking located in the XAML GitHub repository here:
Last Updated: 03 Aug 2016 12:52 by ADMIN
While the control's DragDropMode is set to Deferred and the RadPane instances contain content which is UI heavy, dragging those RadPane instances in order to reorder or re-dock them may experience performance issues leading to sluggishness of the drag and drop action.
Last Updated: 19 Feb 2016 07:52 by ADMIN
It would be great to be able to use other Resources other that the App.xaml for the Styles applied to the ToolWindow instances.

As they are automatically created and as expected are in a different visual tree accessing for example the Resources of the MainWindow is not possible.

Available in the 2016 Q1 SP1 Release.
Last Updated: 03 Aug 2016 12:52 by ADMIN