Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Stackoverflow closing LayoutAnchorable [20821]

$
0
0
These two keep calling each other in my project.

LayoutAnchorable.cs (This is a change that was made between 2.0 and 2.1)
```
public override void Close()
{
var dockingManager = this.Root.Manager;
if( ( this.Root != null ) && ( this.Root.Manager != null ) )
dockingManager._ExecuteCloseCommand( this );
}
```

( If nothing else, the null checks after "= this.Root.Manager" do not make much sense)


DockingManager.cs

```
internal void _ExecuteCloseCommand(LayoutAnchorable anchorable)
{
var model = anchorable as LayoutAnchorable;
if (model != null && model.TestCanClose())
{
if (model.IsAutoHidden)
model.ToggleAutoHide();

model.Close();
return;
}
}
```
Comments: ** Comment from web user: BoucherS **

Hi,

This has already been fixed. It will be included in v2.3 of the toolkit.


Viewing all articles
Browse latest Browse all 4964

Trending Articles