I am attempting to bind a ToolbarItem with:
var aboutItem = new ToolbarItem {Name = "About"};
aboutItem.SetBinding(ToolbarItem.CommandProperty, new Binding("ShowAboutPageCommand"));
ToolbarItems.Add(aboutItem);
The command looks like:
public ICommand ShowAboutPageCommand
{
get
{
return new MvxCommand(() => ShowViewModel<AboutViewModel>());
}
}
If I for instance bind that command to a button instead it works fine, however nothing happens when I press the item in the ActionBar on Android.