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

NativeMenuItemSeparator/NativeMenuItemSeperator throws exception #7780

Closed
Megapit opened this issue Mar 10, 2022 · 0 comments · Fixed by #7954
Closed

NativeMenuItemSeparator/NativeMenuItemSeperator throws exception #7780

Megapit opened this issue Mar 10, 2022 · 0 comments · Fixed by #7954
Assignees
Labels

Comments

@Megapit
Copy link
Contributor

Megapit commented Mar 10, 2022

Describe the bug
Under 10.11 i use NativeMenuItemSeparator or NativeMenuItemSeperator. It works under Windows(NativeMenuBar) and under OSX.
Since 10.12 it throws an exception:
"Property 'Menu not registered on 'Avalonia.Controls.NativeMenuItemSeperator"

As a Workaround i use "<NativeMenuItem Header="-"/>". Under Windows it is displaying a Line as expected. Under OSX there is only a "-" displayed.

Expected behavior
Display a line in the menu under OSX. Since both versions of NativeMenuItemSeperator are depricated i will use "-"

  • OS: [Windows 10, OSX 10.14 Mojave]
  • Version 0.10.13
@Megapit Megapit added the bug label Mar 10, 2022
@grokys grokys self-assigned this Apr 9, 2022
grokys added a commit that referenced this issue Apr 9, 2022
The `x:DataType="NativeMenuItem"` directive is incorrect as the items can also be `NativeMenuItemSeparator`s which don't have the bound properties.

Turn off compiled bindings here for now.

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

Successfully merging a pull request may close this issue.

2 participants