Ejemplo n.º 1
0
        public void Handle(View itemView, T viewModel)
        {
            _viewModel = viewModel;
            _lastContextMenuComponent = _contextMenuFunc(viewModel);

            var popup = _lastContextMenuComponent.BuildMenu(itemView.Context, itemView);

            popup.MenuItemClick += PopupMenuItemClickHandler;
            popup.DismissEvent  += PopupDismissEvent;
            popup.Show();
        }
Ejemplo n.º 2
0
 private void PopupDismissEvent(object sender, PopupMenu.DismissEventArgs e)
 {
     _lastContextMenuComponent = null;
     _viewModel = default(T);
 }