How can I open new page from context action?
Some code:
public class DriveCell : ViewCell
{
public DriveCell()
{
...creating layout here...
CreateActions();
}
private void CreateActions()
{
var editAction = new MenuItem { Text = "Edit" };
editAction.SetBinding(MenuItem.CommandParameterProperty, new Binding("."));
editAction.Clicked += async (sender, e) =>
{
await Task.Run(() =>
{
var mi = (MenuItem)sender;
var someClass = (SomeClass)mi.CommandParameter;
// TODO open edit page here
});
};
ContextActions.Add(editAction);
}
}