Browse Source

Added comments to explain why MenuItem is broken.

pull/58/head
Steven Kirk 11 years ago
parent
commit
26c3740461
  1. 4
      Perspex.Controls/MenuItem.cs

4
Perspex.Controls/MenuItem.cs

@ -98,6 +98,10 @@ namespace Perspex.Controls
}
else if (open)
{
// TODO: This is broken, meaning that a previous submenu isn't closed when a new
// one opens. This is because each menu item is in a separate visual tree to its
// parent due to its being contained in a Popup and parenting/templating is
// broken across visual trees.
this.GetLogicalParent<IMenu>()?.ChildSubMenuOpened(this);
}
}

Loading…
Cancel
Save