Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropDownContextMenu doesn't show when adding a new document #493

Closed
mgaga606 opened this issue Nov 22, 2024 · 1 comment
Closed

DropDownContextMenu doesn't show when adding a new document #493

mgaga606 opened this issue Nov 22, 2024 · 1 comment

Comments

@mgaga606
Copy link

I am adding a new Document to DocumentsSource but despite it's adding the Document, it doesn't show the DropDownContextMenu when I click the tab... I don't know if there is something I'm not doing...

When or how is setted the value of the DependencyProperty DropDownContextMenuProperty??? If I debug, its always null...

I am adding the manager to my mainview via c# code... not in the xaml, is there anything missing??:

DockingManager manager = new DockingManager();
manager.DocumentsSource = Maps;
manager.LayoutItemContainerStyle = LayoutItemContainerStyle;
var layoutItemTemplateSelector = new PanesTemplateSelector();
layoutItemTemplateSelector.MapViewTemplate = CreateMapViewTemplate();
manager.LayoutItemTemplateSelector = layoutItemTemplateSelector;

LayoutRoot root = new LayoutRoot();
var hPanel = new LayoutPanel();
hPanel.Orientation = Orientation.Horizontal;
root.RootPanel = hPanel;
manager.Layout = root;

var mainPane = new LayoutDocumentPane();
var mainPaneGroup = new LayoutDocumentPaneGroup();
mainPaneGroup.Children.Add(mainPane);
hPanel.Children.Add(mainPaneGroup);

@mgaga606
Copy link
Author

I saw the problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant