We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using MenuBuilder class to register menu options for MenuBar control. But it does not return options list when GetOptions method is called.
menuBuilder.RegisterOption(new MainMenuOption { FontFamily = string.Empty, Glyph = string.Empty, Priority = 3, Text = "Badge View", Uri = "BadgeViewPage" }); menuBuilder.RegisterOption(new MainMenuOption { FontFamily = string.Empty, Glyph = string.Empty, Priority = 1, Text = "Image Entry", Uri = "ImageEntryPage" }); menuBuilder.RegisterOption(new MainMenuOption { FontFamily = string.Empty, Glyph = string.Empty, Priority = 2, Text = "Borderless Date Picker", Uri = "BorderlessDatePickerPage" }); menuBuilder.RegisterOption(new MainMenuOption { FontFamily = string.Empty, Glyph = string.Empty, Priority = 4, Text = "Repeater View", Uri = "RepeaterViewPage" }); MenuOptions = menuBuilder.GetOptions();
It should return sorted menu options list based on priority.
It returns empty list.
Project: ToolkitDemo Branch: issue/75/Demo-User-Controls
The text was updated successfully, but these errors were encountered:
this is an issue within the sample project. you will need to address this
Sorry, something went wrong.
I debugged MenuBuilder to figure out the problem and my finding are given below:
MenuBuilder.RegisterOption method executes with the option as parameter. It adds option to Options collection.
Options.ReplaceRange method executes with the sorted list as parameter. In this method, it shows the item in the collection parameter.
When Items.Clear method executes, it clears up the Items list as well as collection parameter.
Options list in MenuBuilder gets empty.
dansiegel
No branches or pull requests
Description
I am using MenuBuilder class to register menu options for MenuBar control. But it does not return options list when GetOptions method is called.
Steps to reproduce
Expected Behavior
It should return sorted menu options list based on priority.
Actual Behavior
It returns empty list.
Basic Information
Reproduction Link
Project: ToolkitDemo
Branch: issue/75/Demo-User-Controls
The text was updated successfully, but these errors were encountered: