I am new to AvalonDock. I tried this little example:
DockablePane dp = new DockablePane();
TextBox uc = new TextBox();
uc.Text = "Example";
DockableContent dc = new DockableContent();
dc.Title = "Title";
dc.Content = uc;
dp.Width = Double.NaN;
dp.HorizontalAlignment = HorizontalAlignment.Left;
My DockableContent is displayed OK at begining. Then I move it in floating position.
When I tried to dock it to the left again, exception is thrown (ArgumentOutofRangeException - parameter: index).
What is wrong with my approach?
Thanks for help in advance!!!