hi, I have question.
1. How can i disallow that DockAreaPane attach to HostControl?
2. How can i it doesn't show that Drag Indicator when DoackAreaPane try to attach HostControl?
Hello ,
You could disable docking of pane for particular area if you set AllowDockLeft, AllowDockRight, AllowDockTop and AllowDockBottom to false
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.PaneSettings~AllowDockLeft.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.PaneSettings~AllowDockRight.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.PaneSettings~AllowDockTop.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.PaneSettings~AllowDockBottom.html
And if you will disable all docking sides, why you will use UltraDockManager, you could use another form where to put your control and just to display this form.
Please let me know if you have any further questions.
Hi, Hristo.
In the first place, thank you for your answer.
I just only disable docking sides in case of pane attach to HostControl. are you understand?
In other words, I wanna allow docking just between DockAreaPaneand DockAreaPane. ok?
So, I wanna hide DragIndicator when DockAreaPane attach to HostControl.
How can i hide DragIndicator when DockAreaPane attach to HostControl?
I am glad to hear that you were able to solve your issue.
Please do not hesitate to contact with us if you have any further questions.
I have resolved using another method.
Thank u for your help!
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
DragIndicator are displayed based on the DragWindowStyle property of UltraDockManager, more about this property and available values you will find on the following links:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.UltraDockManager~DragWindowStyle.html http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinDock.v12.2~Infragistics.Win.UltraWinDock.DragWindowStyle.html
so you could use PaneActivate event for example where you could manage this property based on allowed docked sides. You could use code like:
if (e.Pane.Settings.AllowDockTop == Infragistics.Win.DefaultableBoolean.False
&& e.Pane.Settings.AllowDockLeft == Infragistics.Win.DefaultableBoolean.False
&& e.Pane.Settings.AllowDockRight == Infragistics.Win.DefaultableBoolean.False
&& e.Pane.Settings.AllowDockBottom == Infragistics.Win.DefaultableBoolean.False)
ultraDockManager1.DragWindowStyle = Infragistics.Win.UltraWinDock.DragWindowStyle.Outline;
else
ultraDockManager1.DragWindowStyle = Infragistics.Win.UltraWinDock.DragWindowStyle.OutlineWithIndicators;