carlosalberto/xwt — comment on commit 6136ddb47f2c7be06ef2766878e45d5c094eba53
File: Xwt.WPF/Xwt.WPFBackend/MenuBackend.cs line 71
By carlosalberto:

A menu is either a direct child of another item, or a direct child of a Window, so we need to handle them different here. Also, it would be nice to not access the mainMenu field directly, but use a property (an automatic one should do it).