<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>AvalonDock Work Item Rss Feed</title><link>http://www.codeplex.com/AvalonDock/WorkItem/List.aspx</link><description>AvalonDock Work Item Rss Description</description><item><title>Created Issue: Need the ability to save the selected item in all the panes [9207]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9207</link><description>Need the ability to save the selected item in all the panes&lt;br /&gt;</description><author>sg</author><pubDate>Tue, 17 Nov 2009 22:17:28 GMT</pubDate><guid isPermaLink="false">Created Issue: Need the ability to save the selected item in all the panes [9207] 20091117101728P</guid></item><item><title>Created Issue: DockingManager.UpdateAnchorStyle for Tiling [9206]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9206</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I have a requirement to be able to tile my windows &amp;#40;with DockableContent&amp;#41; and I have class derived from DockingManager to add the tiling functionality. What I need is to be able to call DockingManager.UpdateAnchorStyle which is not protected. Can this be made protected&amp;#63;&lt;br /&gt;&lt;br /&gt;I also need DockingManager.RegisterFloatingWindow but if you agree that this function should be called from within DockableFloatingWindow&amp;#39;s constructor &amp;#40;another issue that I raised&amp;#41;, then I am all set. Otherwise can this one be made protected&amp;#63;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;sg.&lt;br /&gt;</description><author>sg</author><pubDate>Tue, 17 Nov 2009 18:34:15 GMT</pubDate><guid isPermaLink="false">Created Issue: DockingManager.UpdateAnchorStyle for Tiling [9206] 20091117063415P</guid></item><item><title>Created Issue: FlyoutDockablePane OnClose when HideOnClose is set to false [9205]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9205</link><description>Error when I do the following&amp;#58;&lt;br /&gt;1. Dock a window&amp;#40;DockableFloatingWindow&amp;#41; to one side of the main window&lt;br /&gt;2. Unpin the above window which converts it into a FlyoutDockablePane shown in a FlyoutPaneWindow&lt;br /&gt;3. Hover the mouse over the tab to see the flyout&lt;br /&gt;4. Without pinning it back, click on Close.&lt;br /&gt;Error&amp;#58; The DockableContent is removed but the flyout is still open.&lt;br /&gt;&lt;br /&gt;I added the following code to FlyoutDockablePane&amp;#58;&lt;br /&gt;&lt;br /&gt;        internal override void CloseOrHide&amp;#40;DockableContent cntToCloseOrHide, bool force&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            base.CloseOrHide&amp;#40;cntToCloseOrHide, force&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            if &amp;#40;cntToCloseOrHide.State &amp;#61;&amp;#61; DockableContentState.AutoHide&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                GetManager&amp;#40;&amp;#41;.HideAutoHideWindow&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                GetManager&amp;#40;&amp;#41;.RemoveContentFromTabGroup&amp;#40;cntToCloseOrHide&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;The HideAutoHideWindow and the RemoveContentFromTabGroup methods have to be made public in DockingManager&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;sg.&lt;br /&gt;</description><author>sg</author><pubDate>Tue, 17 Nov 2009 18:25:28 GMT</pubDate><guid isPermaLink="false">Created Issue: FlyoutDockablePane OnClose when HideOnClose is set to false [9205] 20091117062528P</guid></item><item><title>Created Issue: New dockable floating window not in DockingManager.FloatingWindows [9199]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9199</link><description>Hi,&lt;br /&gt;&lt;br /&gt;When I create a new DockableFloatingWindow using the following code&amp;#58;&lt;br /&gt;&lt;br /&gt;DockableFloatingWindow floatingWindow &amp;#61; new DockableFloatingWindow&amp;#40;_dockingManager, _derivedDockableContent&amp;#41;&amp;#59;&lt;br /&gt;_derivedDockableContent.SetAsActive&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;_derivedDockableContent.Show&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;The floatingwindow is not added to the FloatingWindows collection of the DockingManager. Either the constructor of DockableFloatingWindow should get updated or RegisterFloatingWindow be made public.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;sg&lt;br /&gt;</description><author>sg</author><pubDate>Tue, 17 Nov 2009 13:44:20 GMT</pubDate><guid isPermaLink="false">Created Issue: New dockable floating window not in DockingManager.FloatingWindows [9199] 20091117014420P</guid></item><item><title>Commented Issue: Docking Control stealing focus (prevents Command Bindings from working) [6340]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=6340</link><description>I&amp;#39;m working with another 3rd party control &amp;#40;Xceed&amp;#39;s DataGrid&amp;#41; to try and deal with an issue with command bindings not working properly on their grid.  Please see related thread here&amp;#58;  http&amp;#58;&amp;#47;&amp;#47;xceed.com&amp;#47;CS&amp;#47;forums&amp;#47;thread&amp;#47;15761.aspx&lt;br /&gt;&lt;br /&gt;We have a DataGrid inside a UserControl which is inside an AvalonDock document pane &amp;#40;as the DocumentContent&amp;#41;.  With this configuration, CommandBindings fail to work from the DataGrid.  I submitted a sample to Xceed&amp;#39;s support and they looked at the code.  They seem to think that issue is within AvalonDock &amp;#34;stealing&amp;#34; focus, which prevents CanExecute from ever being called.  &lt;br /&gt;&lt;br /&gt;I will upload the same project file to you, that I uploaded to them.  Here are the steps to reproduce the problem&amp;#58;&lt;br /&gt;&lt;br /&gt;1&amp;#41; Build and run solution&lt;br /&gt;2&amp;#41; Select a row in the DataGrid&lt;br /&gt;3&amp;#41; Right click on the selected row&lt;br /&gt;&lt;br /&gt;Expected Result&amp;#58;  Menu item should be enabled&lt;br /&gt;Actual Result&amp;#58; Menu item is disabled &amp;#40;CanExecute not called&amp;#41;.&lt;br /&gt;&lt;br /&gt;Do you think you can please look at this and see if you see what&amp;#39;s going on&amp;#63;  The DockingControl seems to be preventing all CommandBindings from working on the DataGrid.  Due to a licensing issue, you may have to install the &amp;#40;free&amp;#41; trial of Xceed&amp;#39;s DataGrid for WPF to be able to run the attached solution&amp;#58;  http&amp;#58;&amp;#47;&amp;#47;xceed.com&amp;#47;pages&amp;#47;TopMenu&amp;#47;Downloads&amp;#47;Trials.aspx&amp;#63;Lang&amp;#61;EN-CA&lt;br /&gt;&lt;br /&gt;We would really appreciate any help you can give us to track down this issue.  Thanks.&lt;br /&gt;</description><author>sacchawla</author><pubDate>Thu, 12 Nov 2009 04:12:49 GMT</pubDate><guid isPermaLink="false">Commented Issue: Docking Control stealing focus (prevents Command Bindings from working) [6340] 20091112041249A</guid></item><item><title>Commented Issue: Problem with some collection [9070]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9070</link><description>Hi&amp;#33;&lt;br /&gt;I found a problem with latest implementation &amp;#40;1.2.2643&amp;#41;&amp;#58; I use VS2010b2, compiled AvalonDock from sources and my own application with dock windows &amp;#40;both, DockableContent &amp;#38; DocumentContent&amp;#41;. After start and playing some time with docking I receive InvalidOperationException in DockingManager.cs &amp;#40;see pic&amp;#41;. This is how I create DocumentContent programmatically&amp;#58;&lt;br /&gt;&lt;br /&gt;var w &amp;#61; new DocContForm&amp;#40;&amp;#41; &amp;#123; Title &amp;#61; &amp;#34;New doc&amp;#34; &amp;#125;&amp;#59;&lt;br /&gt;dockManager.MainDocumentPane.Items.Add&amp;#40;w&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;And this is how I make DockableContent&amp;#58;&lt;br /&gt;&lt;br /&gt;dockManager.Show&amp;#40;new MyDockContForm&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Probably, something wrong here&amp;#63;&lt;br /&gt;</description><author>SimonDullingham</author><pubDate>Mon, 09 Nov 2009 20:16:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem with some collection [9070] 20091109081648P</guid></item><item><title>Created Issue: Closed documents not released for garbage collection [9113]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9113</link><description>If I run the Window4.xaml sample from the avalondock-45809 build and perform the follow steps.&lt;br /&gt;&lt;br /&gt;1. Click Add Documents &amp;#40;Adds 5 DemoDocuments to bound Observable collection&amp;#41;&lt;br /&gt;   - take memory snapshot using .Net Memory Profile verify 5 instances of DemoDocument&lt;br /&gt;&lt;br /&gt;2. Close Document 0 via the context menu&amp;#41;&lt;br /&gt;  - take memory snapshot using .Net Memory Profile verify 5 instances still remaining of DemoDocument&lt;br /&gt;&lt;br /&gt;3. Subsequent closes result in removal of instances of DemoDocuments as expected, so that when I have removed all 5 DemoDocuments, I still have 1 Instance remaining.&lt;br /&gt;&lt;br /&gt;4.  Click Add document a second time&lt;br /&gt;   - take a memory snapshot using .Net Memory Profile, now I have 6 instances of DemoDocument in memory but only 5 in view&lt;br /&gt;&lt;br /&gt;I can do this repeatedly and app will continue to use up memory&lt;br /&gt;</description><author>yem583</author><pubDate>Tue, 03 Nov 2009 21:14:12 GMT</pubDate><guid isPermaLink="false">Created Issue: Closed documents not released for garbage collection [9113] 20091103091412P</guid></item><item><title>Created Issue: An unspecified error occurred on the render thread. [9105]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9105</link><description>To get the the message &amp;#34;An unspecified error occurred on the render thread.&amp;#34; do the following.&lt;br /&gt;1&amp;#41; Start AvalonTest.&lt;br /&gt;2&amp;#41; Add 5 documents by clicking the link &amp;#34;Add documents&amp;#34;&lt;br /&gt;3&amp;#41; By using the mouse cursor select Document3&lt;br /&gt;4&amp;#41; Press Ctrl&amp;#43;Tab to switch to Document2&lt;br /&gt;5&amp;#41; Again, press Ctrl&amp;#43;Tab to switch to Document2&lt;br /&gt;The error occurred.&lt;br /&gt;&lt;br /&gt;If I comment out the code in the NavigatorWindow.cs then the error disappears.&lt;br /&gt;&lt;br /&gt;protected override void OnClosed&amp;#40;EventArgs e&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            &amp;#47;&amp;#47;reset documents list to avoid WPF Bug&amp;#58;&lt;br /&gt;            &amp;#47;&amp;#47;http&amp;#58;&amp;#47;&amp;#47;social.msdn.microsoft.com&amp;#47;forums&amp;#47;en&amp;#47;wpf&amp;#47;thread&amp;#47;f3fc5b7e-e035-4821-908c-b6c07e5c7042&amp;#47;&lt;br /&gt;            &amp;#47;&amp;#47;http&amp;#58;&amp;#47;&amp;#47;connect.microsoft.com&amp;#47;VisualStudio&amp;#47;feedback&amp;#47;ViewFeedback.aspx&amp;#63;FeedbackID&amp;#61;321955&lt;br /&gt;            Documents &amp;#61; new List&amp;#60;NavigatorWindowDocumentItem&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            base.OnClosed&amp;#40;e&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;The code above apparently resolves the error but I think it actually produces the error.&lt;br /&gt;&lt;br /&gt;This error does not occur when using Shift&amp;#43;Tab&amp;#33;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;</description><author>dejanberic</author><pubDate>Mon, 02 Nov 2009 15:32:42 GMT</pubDate><guid isPermaLink="false">Created Issue: An unspecified error occurred on the render thread. [9105] 20091102033242P</guid></item><item><title>Created Issue: Ctrl+Tab not displaying content [9100]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9100</link><description>When I use Ctrl&amp;#43;Tab to shift between the documents the content is not displayed. You can see in the example that I attached. It&amp;#39;s mainly black. Oddly enough only the ActiveDocument is displayed correctly.&lt;br /&gt;I have established why it doesn&amp;#39;t display the content. Because the content&amp;#39;s Width and Height is NaN. But I don&amp;#39;t know why It displays ActiveDocument.&lt;br /&gt;I have made a patch where I remeber the current Width and Height and replace them with ActualWitdh and ActualHeight. On deactivating the NavigatorWindow I return the original Width and Height.&lt;br /&gt;The same problem is happening with Shift&amp;#43;Tab.&lt;br /&gt;I am using DocumentsSource so I don&amp;#39;t know if anything has to do with this.&lt;br /&gt;I will upload a patch.&lt;br /&gt;</description><author>dejanberic</author><pubDate>Mon, 02 Nov 2009 15:02:23 GMT</pubDate><guid isPermaLink="false">Created Issue: Ctrl+Tab not displaying content [9100] 20091102030223P</guid></item><item><title>Created Issue: DockableContent bug [9099]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9099</link><description>Hi&lt;br /&gt;&lt;br /&gt;I have downloaded latest version from this site&amp;#58; http&amp;#58;&amp;#47;&amp;#47;avalondock.codeplex.com&amp;#47;SourceControl&amp;#47;ListDownloadableCommits.aspx&lt;br /&gt;Now go to the AvalonDockTest3 &amp;#40;Window3.xaml&amp;#41;. In my procject I have removed &amp;#60;ad&amp;#58;DocumentPane Visibility&amp;#61;&amp;#34;Visible&amp;#34;&amp;#47;&amp;#62; line. So there is only two DockableContents.&lt;br /&gt;Until these two contents are in one column everything is ok - I can close both. But when I place them in one row &amp;#40;side by side&amp;#41; after closing both of them something strange happens - there is smoething similar to DockableContent but when I am trying to close it I am getting an error.&lt;br /&gt;&lt;br /&gt;How this problem can be solved&amp;#63;&lt;br /&gt;</description><author>krokodajl</author><pubDate>Mon, 02 Nov 2009 13:09:45 GMT</pubDate><guid isPermaLink="false">Created Issue: DockableContent bug [9099] 20091102010945P</guid></item><item><title>Created Issue: Refreshing issue when moving a DockableWindow over a WinFormsHost [9096]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9096</link><description>When my DockableWindow &amp;#40;FloatingWindow&amp;#41; is large and I move it over the WinFormsHost, the rendering of a FloatingWindow lags and displays a trail. When I resolved that issue with calling UpdateWindow in the OnDragOver in DockingManager.cs I have another issue.&lt;br /&gt;Now, the window that I&amp;#39;m moving is not refreshed accordingly when the window boundaries gets outside of the whole screen. You can look at the samples that I have attached to see this behavior.&lt;br /&gt;I have resolved this issue with another UpdateWindow in Move method in DragPaneServices.cs.&lt;br /&gt;Will be posting a patch.&lt;br /&gt;</description><author>dejanberic</author><pubDate>Mon, 02 Nov 2009 07:57:23 GMT</pubDate><guid isPermaLink="false">Created Issue: Refreshing issue when moving a DockableWindow over a WinFormsHost [9096] 20091102075723A</guid></item><item><title>Created Issue: Performance issues when moving a splitter when ManagedContent contains WinFormsHost [9095]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9095</link><description>Hi. I have noticed that if a ManagedContent contains a WinFormsHost, and that WinFormsHost contains some complex objects that needs to be rendered, the resizing &amp;#40;moving splitters of resizing pane&amp;#41; is extremely slow and lags behind a mouse cursor.&lt;br /&gt;I have corrected this and will be posting a patch.&lt;br /&gt;The patch consists of just replacing this&lt;br /&gt;if &amp;#40;childCtrl &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;childCtrl.CallMethod&amp;#40;&amp;#34;Refresh&amp;#34;, null&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;wiht this&lt;br /&gt;&lt;br /&gt;if &amp;#40;childCtrl &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;this.Dispatcher.Invoke&amp;#40;new Action&amp;#60;object&amp;#62;&amp;#40;&amp;#40;o&amp;#41; &amp;#61;&amp;#62; o.CallMethod&amp;#40;&amp;#34;Refresh&amp;#34;, null&amp;#41;&amp;#41;, DispatcherPriority.Render, childCtrl&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;Now the there is no lag and slowness when moving splitters.&lt;br /&gt;</description><author>dejanberic</author><pubDate>Mon, 02 Nov 2009 07:41:35 GMT</pubDate><guid isPermaLink="false">Created Issue: Performance issues when moving a splitter when ManagedContent contains WinFormsHost [9095] 20091102074135A</guid></item><item><title>Created Issue: Commands automatically disabled for Floating Window [9086]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9086</link><description>I have a window that contains a WPF ListView control.  The Items in it have a context menu, and the commands within are automatically disabled when the window is floated.  Their CanExecute Handlers never get called.  But docked, everything works perfectly.&lt;br /&gt;</description><author>Chuck1411</author><pubDate>Sat, 31 Oct 2009 22:22:30 GMT</pubDate><guid isPermaLink="false">Created Issue: Commands automatically disabled for Floating Window [9086] 20091031102230P</guid></item><item><title>Commented Issue: FloatingWindow.EnableXButton()/DisableXButton() are not implemented correctly [9081]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9081</link><description>MF_BYCOMMAND &amp;#38; SC_CLOSE should be used to avoid hard-coded item positions.&lt;br /&gt;The current implementation using GetMenuItemCount &amp;#38; MF_BYPOSITION does not work as it can be seen in the AvalonDock demo application.&lt;br /&gt;&lt;br /&gt;See the attached patch&lt;br /&gt;Comments: ** Comment from web user: miniak ** &lt;p&gt;This is the correct patch file, sorry for the mistake&lt;/p&gt;</description><author>miniak</author><pubDate>Sat, 31 Oct 2009 16:43:00 GMT</pubDate><guid isPermaLink="false">Commented Issue: FloatingWindow.EnableXButton()/DisableXButton() are not implemented correctly [9081] 20091031044300P</guid></item><item><title>Created Issue: FloatingWindow.EnableXButton()/DisableXButton() are not implemented correctly [9081]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9081</link><description>MF_BYCOMMAND &amp;#38; SC_CLOSE should be used to avoid hard-coded item positions.&lt;br /&gt;The current implementation using GetMenuItemCount &amp;#38; MF_BYPOSITION does not work as it can be seen in the AvalonDock demo application.&lt;br /&gt;&lt;br /&gt;See the attached patch&lt;br /&gt;</description><author>miniak</author><pubDate>Sat, 31 Oct 2009 16:35:49 GMT</pubDate><guid isPermaLink="false">Created Issue: FloatingWindow.EnableXButton()/DisableXButton() are not implemented correctly [9081] 20091031043549P</guid></item><item><title>Commented Issue: Exception when closing DocumentContents in DocumentsSource [8997]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=8997</link><description>If I have xaml like this&amp;#58;&lt;br /&gt;&amp;#60;ad&amp;#58;DockingManager x&amp;#58;Name&amp;#61;&amp;#34;_dockingManager&amp;#34; RequestDocumentClose&amp;#61;&amp;#34;DockingManager_RequestDocumentClose&amp;#34;&amp;#62;&lt;br /&gt;                &amp;#60;ad&amp;#58;ResizingPanel Orientation&amp;#61;&amp;#34;Vertical&amp;#34;&amp;#62;&lt;br /&gt;                    &amp;#60;ad&amp;#58;DocumentPane x&amp;#58;Name&amp;#61;&amp;#34;mainTabPanel&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;                &amp;#60;&amp;#47;ad&amp;#58;ResizingPanel&amp;#62;&lt;br /&gt;            &amp;#60;&amp;#47;ad&amp;#58;DockingManager&amp;#62;&lt;br /&gt;&lt;br /&gt;and in My cs file I have this&amp;#58;&lt;br /&gt;&lt;br /&gt;private ObservableCollection&amp;#60;DocumentContent&amp;#62; documents&amp;#59;&lt;br /&gt;&lt;br /&gt;public ObservableCollection&amp;#60;DocumentContent&amp;#62; Documents&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;get &amp;#123; return documents&amp;#59; &amp;#125;&lt;br /&gt;&amp;#9;set &amp;#123; documents &amp;#61; value&amp;#59; &amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;public Demo&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;        InitializeComponent&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;this.documents &amp;#61; new ObservableCollection&amp;#60;DocumentContent&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;this._dockingManager.DocumentsSource &amp;#61; this.documents&amp;#59;&lt;br /&gt;...&lt;br /&gt;and when I try to clear DocumentsSource to close all Documents like this&lt;br /&gt;&lt;br /&gt;this.Documents.Clear&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;none of the Documents closes or disappears.&lt;br /&gt;Now, when I try to close Documents one by one like this&amp;#58;&lt;br /&gt;while &amp;#40;this.documents.Count &amp;#62; 0&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;this.documents.RemoveAt&amp;#40;0&amp;#41;&amp;#59;&amp;#47;&amp;#47;this is the same as this.documents&amp;#91;0&amp;#93;.Close&amp;#40;&amp;#41;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;I get an exception, but in some very specific case. When I make three documentcontents, and then when I right click on the last document and make a New Vertical Tab, then I right click on a second document and make a New Horizontal Tab. and then when I try to&lt;br /&gt;close all the documents in a way that is described above I get an exception. The thing is, when I try to close all the document in such an order that the first documents that are being closed are in MainDocumentPane then I get an exception.&lt;br /&gt;So, to avoid an exception I have to close all documents like this&amp;#58;&lt;br /&gt;&lt;br /&gt;public void CloseAllTabItems&amp;#40;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47;&amp;#47;&amp;#47;workaround for avalon dock bug, to close all items you must first close those items that do not belong to MainDocumentPane&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;ObservableCollection&amp;#60;DocumentContentViewItem&amp;#62; documentsToClose &amp;#61; new ObservableCollection&amp;#60;DocumentContentViewItem&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;foreach &amp;#40;DocumentContentViewItem tabItem in this.documents&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;tabItem.Parent is DocumentPane&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;&amp;#40;tabItem.Parent as DocumentPane&amp;#41;.IsMainDocumentPane &amp;#61;&amp;#61; false&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;documentsToClose.Add&amp;#40;tabItem&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;foreach &amp;#40;DocumentContentViewItem tabItem in documentsToClose&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;tabItem.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;while &amp;#40;this.documents.Count &amp;#62; 0&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;this.documents&amp;#91;0&amp;#93;.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&lt;br /&gt;I hope that someone will be able to resolve this bug.&lt;br /&gt;Comments: ** Comment from web user: dejanberic ** &lt;p&gt;Well, now I have changed my code above to support closing and closed events. Simply instead internalClose&amp;#40;0 method write Close&amp;#40;&amp;#41;, and in the Close&amp;#40;&amp;#41; method of DocumentContent comment out the lines described below&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;public bool Close&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;            &amp;#47;&amp;#47;if documents are attached to an external source via DockingManager.DocumentsSource&lt;br /&gt;            &amp;#47;&amp;#47;let application host handle the document closing by itself&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#42;if &amp;#40;Manager.DocumentsSource &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;return Manager.FireRequestDocumentCloseEvent&amp;#40;this&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#125;&amp;#42;&amp;#47;&lt;/p&gt;&lt;p&gt;&amp;#9;&amp;#9;&amp;#9;CancelEventArgs e &amp;#61; new CancelEventArgs&amp;#40;false&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;OnClosing&amp;#40;e&amp;#41;&amp;#59;&lt;br /&gt;...&lt;br /&gt;I have absolutely no idea to what purpose is there RequestDocumentCloseEvent because we can attach to closing event or closed event of documentContent and remove the content from DocumentsSource.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;</description><author>dejanberic</author><pubDate>Thu, 29 Oct 2009 16:01:20 GMT</pubDate><guid isPermaLink="false">Commented Issue: Exception when closing DocumentContents in DocumentsSource [8997] 20091029040120P</guid></item><item><title>Created Issue: Problem with some collection [9070]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9070</link><description>Hi&amp;#33;&lt;br /&gt;I found a problem with latest implementation &amp;#40;1.2.2643&amp;#41;&amp;#58; I use VS2010b2, compiled AvalonDock from sources and my own application with dock windows &amp;#40;both, DockableContent &amp;#38; DocumentContent&amp;#41;. After start and playing some time with docking I receive InvalidOperationException in DockingManager.cs &amp;#40;see pic&amp;#41;. This is how I create DocumentContent programmatically&amp;#58;&lt;br /&gt;&lt;br /&gt;var w &amp;#61; new DocContForm&amp;#40;&amp;#41; &amp;#123; Title &amp;#61; &amp;#34;New doc&amp;#34; &amp;#125;&amp;#59;&lt;br /&gt;dockManager.MainDocumentPane.Items.Add&amp;#40;w&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;And this is how I make DockableContent&amp;#58;&lt;br /&gt;&lt;br /&gt;dockManager.Show&amp;#40;new MyDockContForm&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Probably, something wrong here&amp;#63;&lt;br /&gt;</description><author>Vincent3000</author><pubDate>Thu, 29 Oct 2009 06:53:39 GMT</pubDate><guid isPermaLink="false">Created Issue: Problem with some collection [9070] 20091029065339A</guid></item><item><title>Commented Issue: GetMainDocumentPane(ResizingPanel) snatches my first DockablePane [9018]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9018</link><description>Hi&amp;#33;&lt;br /&gt;First up, thanks again for a wonderful docking library.&lt;br /&gt;&lt;br /&gt;Secondly I&amp;#180;ve run into a problem since I downloaded the 44904 changeset.&lt;br /&gt;I&amp;#180;ve got this following xaml &amp;#40;might contain some minor miswrite since i needed to change some names due to secrecy&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;avalon&amp;#58;DockingManager x&amp;#58;Name&amp;#61;&amp;#34;_dockingManager&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;avalon&amp;#58;ResizingPanel Orientation&amp;#61;&amp;#34;Horizontal&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;ResizingPanel Orientation&amp;#61;&amp;#34;Vertical&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;PackageListWindow x&amp;#58;Name&amp;#61;&amp;#34;_packages&amp;#34; Title&amp;#61;&amp;#34;Packages&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;PropertyWindow x&amp;#58;Name&amp;#61;&amp;#34;_properties&amp;#34; Title&amp;#61;&amp;#34;Properties&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;ResultsWindow x&amp;#58;Name&amp;#61;&amp;#34;_results&amp;#34;&amp;#62;&amp;#60;&amp;#47;Windows&amp;#58;ResultsWindow&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;ResizingPanel&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DocumentPane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;WelcomeWindow Title&amp;#61;&amp;#34;Welcome&amp;#34; x&amp;#58;Name&amp;#61;&amp;#34;_welcome&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DocumentPane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;ResizingPanel&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;avalon&amp;#58;DockingManager&amp;#62;&lt;br /&gt;&lt;br /&gt;Then the problem is that when the UpdateAnchorStyle is called on the main ResizingPanel the following row &amp;#40;DockingManager&amp;#58;2041&amp;#41;&amp;#58;&lt;br /&gt; if &amp;#40;&amp;#33;foundDocumentContent &amp;#38;&amp;#38; GetMainDocumentPane&amp;#40;child as ResizingPanel&amp;#41; &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;calls the GetMainDocumentPane, this will take my first DockablePane and assign it as the main DocumentPane using the following code&amp;#58;&lt;br /&gt;&lt;br /&gt;if &amp;#40;child is DockablePane&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;DocumentPane doc &amp;#61; new DocumentPane&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;DockablePane dockablePane &amp;#61; child as DockablePane&amp;#59;&lt;br /&gt;&amp;#9;while &amp;#40;dockablePane.Items.Count &amp;#62; 0&amp;#41;&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;doc.Items.Add&amp;#40;&amp;#40;dockablePane.Items&amp;#91;0&amp;#93; as DockableContent&amp;#41;.DetachFromContainerPane&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;return doc&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As a temp fix i&amp;#39;ve just commented this out but perhaps this finding of a main document pane should only be done if no documentpane is specified within the xaml &amp;#40;which it is in my case&amp;#41;&amp;#63;&lt;br /&gt;Don&amp;#39;t know the purpose of this code so I couldn&amp;#39;t give a solution to fix but perhaps this could give some direction to whereas the problem lies&amp;#63;&lt;br /&gt;&lt;br /&gt;Best Regards&lt;br /&gt;Comments: ** Comment from web user: dejanberic ** &lt;p&gt;OK, I made that patch to avoid exception that I was getting when restoring a layout. It looks like I wasn&amp;#39;t taking care of other implications the code brings with it. The problem I had was described here http&amp;#58;&amp;#47;&amp;#47;avalondock.codeplex.com&amp;#47;WorkItem&amp;#47;View.aspx&amp;#63;WorkItemId&amp;#61;8975.&lt;/p&gt;&lt;p&gt;So it looks like that we should not allow for dockable contents that is primarily located in dockable pane to dock in to the DocumentPane. That should solve both of our problems.&lt;br /&gt;If I dock my dockable contents from dockable pane to documentpane and save the layout, in the layout file my DockableContent is placed inside a DocumentPanePlaceHolder and when restoring a layout it appears to be located in a dockablePane like is described in xaml file hence no main document pane could be set thus the exception occurs.&lt;/p&gt;</description><author>dejanberic</author><pubDate>Thu, 22 Oct 2009 07:57:26 GMT</pubDate><guid isPermaLink="false">Commented Issue: GetMainDocumentPane(ResizingPanel) snatches my first DockablePane [9018] 20091022075726A</guid></item><item><title>Created Issue: GetMainDocumentPane(ResizingPanel) snatches my first DockablePane [9018]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9018</link><description>Hi&amp;#33;&lt;br /&gt;First up, thanks again for a wonderful docking library.&lt;br /&gt;&lt;br /&gt;Secondly I&amp;#180;ve run into a problem since I downloaded the 44904 changeset.&lt;br /&gt;I&amp;#180;ve got this following xaml &amp;#40;might contain some minor miswrite since i needed to change some names due to secrecy&amp;#41;&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;avalon&amp;#58;DockingManager x&amp;#58;Name&amp;#61;&amp;#34;_dockingManager&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;avalon&amp;#58;ResizingPanel Orientation&amp;#61;&amp;#34;Horizontal&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;ResizingPanel Orientation&amp;#61;&amp;#34;Vertical&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;PackageListWindow x&amp;#58;Name&amp;#61;&amp;#34;_packages&amp;#34; Title&amp;#61;&amp;#34;Packages&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;PropertyWindow x&amp;#58;Name&amp;#61;&amp;#34;_properties&amp;#34; Title&amp;#61;&amp;#34;Properties&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;ResultsWindow x&amp;#58;Name&amp;#61;&amp;#34;_results&amp;#34;&amp;#62;&amp;#60;&amp;#47;Windows&amp;#58;ResultsWindow&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DockablePane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;ResizingPanel&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;avalon&amp;#58;DocumentPane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Windows&amp;#58;WelcomeWindow Title&amp;#61;&amp;#34;Welcome&amp;#34; x&amp;#58;Name&amp;#61;&amp;#34;_welcome&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;DocumentPane&amp;#62;&lt;br /&gt;&amp;#9;&amp;#60;&amp;#47;avalon&amp;#58;ResizingPanel&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;avalon&amp;#58;DockingManager&amp;#62;&lt;br /&gt;&lt;br /&gt;Then the problem is that when the UpdateAnchorStyle is called on the main ResizingPanel the following row &amp;#40;DockingManager&amp;#58;2041&amp;#41;&amp;#58;&lt;br /&gt; if &amp;#40;&amp;#33;foundDocumentContent &amp;#38;&amp;#38; GetMainDocumentPane&amp;#40;child as ResizingPanel&amp;#41; &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;calls the GetMainDocumentPane, this will take my first DockablePane and assign it as the main DocumentPane using the following code&amp;#58;&lt;br /&gt;&lt;br /&gt;if &amp;#40;child is DockablePane&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;DocumentPane doc &amp;#61; new DocumentPane&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;DockablePane dockablePane &amp;#61; child as DockablePane&amp;#59;&lt;br /&gt;&amp;#9;while &amp;#40;dockablePane.Items.Count &amp;#62; 0&amp;#41;&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;doc.Items.Add&amp;#40;&amp;#40;dockablePane.Items&amp;#91;0&amp;#93; as DockableContent&amp;#41;.DetachFromContainerPane&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;return doc&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As a temp fix i&amp;#39;ve just commented this out but perhaps this finding of a main document pane should only be done if no documentpane is specified within the xaml &amp;#40;which it is in my case&amp;#41;&amp;#63;&lt;br /&gt;Don&amp;#39;t know the purpose of this code so I couldn&amp;#39;t give a solution to fix but perhaps this could give some direction to whereas the problem lies&amp;#63;&lt;br /&gt;&lt;br /&gt;Best Regards&lt;br /&gt;</description><author>Almund</author><pubDate>Wed, 21 Oct 2009 19:47:41 GMT</pubDate><guid isPermaLink="false">Created Issue: GetMainDocumentPane(ResizingPanel) snatches my first DockablePane [9018] 20091021074741P</guid></item><item><title>Created Issue: Dock to top programmatically failed to set the default height [9016]</title><link>http://avalondock.codeplex.com/WorkItem/View.aspx?WorkItemId=9016</link><description>In order to reproduce the issue, we can create a window as below,&lt;br /&gt;&lt;br /&gt;&amp;#60;Window ...&amp;#62;&lt;br /&gt;    &amp;#60;Grid&amp;#62;&lt;br /&gt;            &amp;#60;ad&amp;#58;DockingManager x&amp;#58;Name&amp;#61;&amp;#34;dockManager&amp;#34;&amp;#62;&lt;br /&gt;                &amp;#60;ad&amp;#58;DocumentPane &amp;#47;&amp;#62;&lt;br /&gt;            &amp;#60;&amp;#47;ad&amp;#58;DockingManager&amp;#62;&lt;br /&gt;    &amp;#60;&amp;#47;Grid&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;Window&amp;#62;&lt;br /&gt;&lt;br /&gt;In the code behind, we hook up to the Loaded event to dock an dockable content &amp;#40;e.g. ToolBoxWindow&amp;#41; to the top&amp;#47;bottom border,&lt;br /&gt;&lt;br /&gt;        void Window_Loaded&amp;#40;object sender, RoutedEventArgs e&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            ToolBoxWindow toolBoxWnd &amp;#61; new ToolBoxWindow&amp;#40;&amp;#41; &amp;#123; Title &amp;#61; &amp;#34;Toolbox&amp;#34; &amp;#125; &amp;#47;&amp;#47; DockableContent-derived user control&lt;br /&gt;&lt;br /&gt;            dockManager.Show&amp;#40;toolBoxWnd, DockableContentState.Docked, AnchorStyle.Top&amp;#41;&amp;#59; &lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;The ToolBoxWindow is actually created and docked to the top border, but its height is set to 0, we need to use the splitter to enlarge it.&lt;br /&gt;&lt;br /&gt;After debugging, I found out that the issue may be caused by a segment of code used to set the default height&amp;#47;width of the DockablePane of the DockingManager.Show method&lt;br /&gt;&lt;br /&gt;                    DockablePane dockParent &amp;#61; content.ContainerPane as DockablePane&amp;#59;&lt;br /&gt;                    if &amp;#40;content.ActualWidth &amp;#61;&amp;#61; 0.0 &amp;#38;&amp;#38; &amp;#40;&lt;br /&gt;                        dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Left &amp;#124;&amp;#124; dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Right&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        ResizingPanel.SetResizeWidth&amp;#40;dockParent, new GridLength&amp;#40;200&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        ResizingPanel.SetEffectiveSize&amp;#40;dockParent, new Size&amp;#40;200, 0.0&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                    else if &amp;#40;content.ActualWidth &amp;#61;&amp;#61; 0.0 &amp;#38;&amp;#38; &amp;#40;&lt;br /&gt;                        dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Left &amp;#124;&amp;#124; dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Right&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        ResizingPanel.SetResizeWidth&amp;#40;dockParent, new GridLength&amp;#40;200&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        ResizingPanel.SetEffectiveSize&amp;#40;dockParent, new Size&amp;#40;200, 0.0&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;&lt;br /&gt;This should be rewritten as below,&lt;br /&gt;&lt;br /&gt;                    DockablePane dockParent &amp;#61; content.ContainerPane as DockablePane&amp;#59;&lt;br /&gt;                    if &amp;#40;content.ActualWidth &amp;#61;&amp;#61; 0.0 &amp;#38;&amp;#38; &amp;#40;&lt;br /&gt;                        dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Left &amp;#124;&amp;#124; dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Right&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        ResizingPanel.SetResizeWidth&amp;#40;dockParent, new GridLength&amp;#40;200&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        ResizingPanel.SetEffectiveSize&amp;#40;dockParent, new Size&amp;#40;200, 0.0&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                    else if &amp;#40;content.ActualHeight &amp;#61;&amp;#61; 0.0 &amp;#38;&amp;#38; &amp;#40;&lt;br /&gt;                        dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Top &amp;#124;&amp;#124; dockParent.Anchor &amp;#61;&amp;#61; AnchorStyle.Bottom&amp;#41;&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        ResizingPanel.SetResizeHeight&amp;#40;dockParent, new GridLength&amp;#40;200&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                        ResizingPanel.SetEffectiveSize&amp;#40;dockParent, new Size&amp;#40;0.0, 200&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;</description><author>newpingpong</author><pubDate>Wed, 21 Oct 2009 02:20:15 GMT</pubDate><guid isPermaLink="false">Created Issue: Dock to top programmatically failed to set the default height [9016] 20091021022015A</guid></item></channel></rss>