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
in MainPage.xaml:
MainPage.xaml
<controls:ContextMenuButton.Items> <x:Array Type="{x:Type MenuItem}"> <MenuItem Text="Command 1"/> <MenuItem Text="Command 2"/> <MenuItem Text="Command 3"/> </x:Array> </controls:ContextMenuButton.Items>
The text was updated successfully, but these errors were encountered:
Wondering what happened to the Array extension in Xamarin.Forms 5...
I'm now adding the menu items programatically using <controls:ContextMenuButton x:Name="menu" and ` this.InitializeComponent();
<controls:ContextMenuButton x:Name="menu"
var items = new List<MenuItem>(); items.Add(new MenuItem() { Text = "Command 1" }); items.Add(new MenuItem() { Text = "Command 2" }); items.Add(new MenuItem() { Text = "Command 3" }); menu.Items = items;
`
Sorry, something went wrong.
No branches or pull requests
in
MainPage.xaml
:The text was updated successfully, but these errors were encountered: