This project is read-only.

DockableContent from FloatingWindow

Sep 2, 2011 at 10:22 AM


i want to close specific floating windows before i restore the layout (otherwise DeserializationCallback will not be called).

I use the property DockableContent.Name as a identifier and i need this identifier to identify the  floating windows, too.

But nothing seems to work, to get the DockableContent from a FloatingWindow. Is there a way to get the private field _contentToTransfer?

I dont want to change the source code from AvalonDock!



Sep 2, 2011 at 10:32 AM

I solved the problem ;-)

private void Event_NavigationItemContent_StateChanged(object sender, RoutedEventArgs e)
            var content = e.OriginalSource as DockableContent;
            if(content == null)

            if (content.State == DockableContentState.DockableWindow)
               content.ContainerPane.Name = content.Name;