Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library
Microsoft Public License
1.41k stars 321 forks source link

LayoutDocument Is No Longer Displayed #421

Open ColdCodeHah opened 1 year ago

ColdCodeHah commented 1 year ago
LayoutDocument form = new LayoutDocument
            {
                Title =titleIndex++.ToString(),
            };
            LayoutDocumentPane.Children.Add(form);
            form.IsActive = true;   

The code adds pane, And drag leave the pane, And drag enter the pane, And close the pane, The result is run the code LayoutDocument Is No Longer Displayed.

ColdCodeHah commented 1 year ago

The LayoutDocument is there,But does not exist in the visual tree.

isharrrry commented 12 months ago

I also encountered it. After dragging the document out, drag it back and open another document (without displaying the new document) 4.72.1 Not MVVM mode

在源码中这样复现:

  1. Add code : LayoutDocumentPane;// image
  2. Run TestApp and close document 2

image

  1. Drag document 1 image
  2. Drag back document 1

image

  1. click document 1 add documents button can not open another document image