mirror of
https://gitee.com/chinware/atomui.git
synced 2024-12-03 12:28:27 +08:00
修复子菜单弹出问题
This commit is contained in:
parent
372a729989
commit
8e29c96038
@ -141,6 +141,7 @@ internal class MenuItemTheme : ControlTheme
|
|||||||
menuIndicatorIcon.RegisterInNameScope(scope);
|
menuIndicatorIcon.RegisterInNameScope(scope);
|
||||||
|
|
||||||
var popup = CreateMenuPopup();
|
var popup = CreateMenuPopup();
|
||||||
|
popup.RegisterInNameScope(scope);
|
||||||
|
|
||||||
layout.Children.Add(togglePresenter);
|
layout.Children.Add(togglePresenter);
|
||||||
layout.Children.Add(iconPresenter);
|
layout.Children.Add(iconPresenter);
|
||||||
|
@ -51,6 +51,7 @@ public class TopLevelMenuItemTheme : ControlTheme
|
|||||||
panel.Children.Add(contentPresenter);
|
panel.Children.Add(contentPresenter);
|
||||||
|
|
||||||
var popup = CreateMenuPopup();
|
var popup = CreateMenuPopup();
|
||||||
|
popup.RegisterInNameScope(scope);
|
||||||
panel.Children.Add(popup);
|
panel.Children.Add(popup);
|
||||||
return panel;
|
return panel;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user