MenubarItem() Argument Exceptions
See original GitHub issueI am trying to create a menubar with two menu items(without the sub menus) by modifying the demo app.
At first, I tried
var menu = new MenuBar ( new MenuBarItem [] {
new MenuBarItem ("_Quit", "Quit the application", () => { if (Quit ()) top.Running = false; }),
new MenuBarItem ("_Settings", "",() => Settings ())
});
when I build, I receive error CS1729: ‘MenuBarItem’ does not contain a constructor that takes 3 arguments
Then I tried,
var menu = new MenuBar ( new MenuBarItem [] {
new MenuBarItem ("_Quit", "Quit the application", () => { if (Quit ()) top.Running = false; }, null),
new MenuBarItem ("_Settings", "",() => Settings (), null)
});
when I build, I receive error CS1729: ‘MenuBarItem’ does not contain a constructor that takes 4 arguments.
Not sure what I am doing wrong, I need help
Issue Analytics
- State:
- Created 3 years ago
- Comments:14
Top Results From Across the Web
ArgumentNullException when binding menuitem IsEnabled ...
When opening the File-menu, I get an exception. System.ArgumentNullException was unhandled HResult=-2147467261. Message=Value cannot be null.
Read more >CA2208: Instantiate argument exceptions correctly
When a method has a parameter, and it throws an exception type that is, or derives from, ArgumentException, it is expected to call...
Read more >Menu and MenuItem thorw "Invariant Violation: ...
Problem description I work with typescript, react and material-ui. I'm trying to do a snapshot test with jest. But material-ui's MenuItem ...
Read more >MenuItem (Java Platform SE 8 )
Currently, menu items only support action events. Note that if the event parameter is null the behavior is unspecified and may result in...
Read more >ASPxMenu - An error occurs when the menu item is clicked
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index. Source ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thank you, I will try building the Master, otherwise I will just wait for new version.
I think the nuget package does not have these updates yet.