You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//DocumentViewer is my class, the class is derived from LayoutDocument
var dw = new DocumentViewer();
InitialDocumentsPane.Children.Add(dw);
I make floating the one document, then dock in inside this document, after this it do not dock, but disappears.
Reason: DocumentViewer is not fully class LayoutDocument, it is derived.
Fixing: class DocumentPaneDropTarget (file DocumentPaneDropTarget.cs), method protected override void Drop(LayoutDocumentFloatingWindow floatingWindow), switch (Type), case DropTargetType.DocumentPaneDockInside, replace loop
foreach (var anchorableToImport in layoutDocumentPaneGroup.Descendents().OfType<LayoutContent>()
.Where(item => allowedDropTypes.Contains(item.GetType())).ToArray())
with
foreach (var anchorableToImport in layoutDocumentPaneGroup.Descendents().
Where(d => d is LayoutDocument || d is LayoutAnchorable).OfType<LayoutContent>().ToList())
I am sorry, because I am very stupid and don't know how to create pull request.
The text was updated successfully, but these errors were encountered:
I use this xaml:
In code I add documents (two or greater):
I make floating the one document, then dock in inside this document, after this it do not dock, but disappears.
Reason:
DocumentViewer
is not fully classLayoutDocument
, it is derived.Fixing: class DocumentPaneDropTarget (file DocumentPaneDropTarget.cs), method protected override void Drop(LayoutDocumentFloatingWindow floatingWindow), switch (Type), case DropTargetType.DocumentPaneDockInside, replace loop
with
I am sorry, because I am very stupid and don't know how to create pull request.
The text was updated successfully, but these errors were encountered: