I would like to open 2 control panes in a tab group with initial state of floating. I would not like any of the panes within the group to be dragged out of the group and floated by itself. How can I force a pane to always be part of the group it is opened in? I set AllowFloating = False this that this would do it but it does not. I am not sure since its initial state is floating that it makes sence to set AllowFloating to false.
Thanks.
pane.Parent will give you the owning group. However, its AllowDragging will be set to Default as well and since that will resolve to True internally, setting it explicitly to True will not do anything. I don't think there is much you can do to work around this other than temporarily going with your other approach of making a user control with a tab control in it.
How do I get a reference to the owning group pane? I assume it is pane.ParentFloating? Is that correct? pane.ParentFloating.Settings.AllowDragging is set to Default. I also tried explicitly setting it to True but I get the same behavior...
That sounds like a bug to me. I would think if you only set AllowDragging to False on the child panes and their owning group pane still has default settings, it should still be able to be dragged. I would recommend submitting the issue to the support group: http://es.infragistics.com/gethelp.
You are right, setting AllowDragging to false prevents a user from pulling a pane out of the group. But, I also prevents me from dragging the tab group around the screen. I would like to allow the user to move the tab group around the screen but not be able to separate the panes in that group.
Im thinking that maybe I went about this the wrong way and should build a user control with a tab control on it. Then I can dock the usercontrol as a single item...
I believe you can set AllowDragging to False on these panes to prevent them from being ungrouped by the user.