Skip to content

Commit

Permalink
https://github.com/Dirkster99/AvalonDock/issues/11
Browse files Browse the repository at this point in the history
The fixed order of the two lines (in two places) in Xceed.Wpf.AvalonDock.DockingManager.cs as shown below.

_layoutItems.Add( layoutItem );
ApplyStyleToLayoutItem( layoutItem );
  • Loading branch information
Dirkster99 committed Jan 21, 2019
1 parent 61e905d commit e00b6ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal static class _XceedVersionInfo
public const string BaseVersion = "3.4";
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
public const string Version = BaseVersion +
".0.10";
".0.11";
[System.Diagnostics.CodeAnalysis.SuppressMessage( "Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields" )]
public const string PublicKeyToken = "ba83ff368b7563c6";

Expand Down
8 changes: 4 additions & 4 deletions source/Components/Xceed.Wpf.AvalonDock/DockingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3165,8 +3165,8 @@ private void CreateAnchorableLayoutItem( LayoutAnchorable contentToAttach )

var layoutItem = new LayoutAnchorableItem();
layoutItem.Attach( contentToAttach );
ApplyStyleToLayoutItem( layoutItem );
_layoutItems.Add( layoutItem );
_layoutItems.Add( layoutItem ); // #1430
ApplyStyleToLayoutItem( layoutItem ); // #1430

if( contentToAttach != null &&
contentToAttach.Content != null &&
Expand All @@ -3190,8 +3190,8 @@ private void CreateDocumentLayoutItem( LayoutDocument contentToAttach )

var layoutItem = new LayoutDocumentItem();
layoutItem.Attach( contentToAttach );
ApplyStyleToLayoutItem( layoutItem );
_layoutItems.Add( layoutItem );
_layoutItems.Add( layoutItem ); // #1430
ApplyStyleToLayoutItem( layoutItem ); // #1430

if( contentToAttach != null &&
contentToAttach.Content != null &&
Expand Down

0 comments on commit e00b6ca

Please sign in to comment.