修复子菜单弹出问题

This commit is contained in:
polarboy 2024-07-26 11:56:38 +08:00
parent 372a729989
commit 8e29c96038
2 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,7 @@ internal class MenuItemTheme : ControlTheme
menuIndicatorIcon.RegisterInNameScope(scope);
var popup = CreateMenuPopup();
popup.RegisterInNameScope(scope);
layout.Children.Add(togglePresenter);
layout.Children.Add(iconPresenter);

View File

@ -51,6 +51,7 @@ public class TopLevelMenuItemTheme : ControlTheme
panel.Children.Add(contentPresenter);
var popup = CreateMenuPopup();
popup.RegisterInNameScope(scope);
panel.Children.Add(popup);
return panel;
});