Ejemplo n.º 1
0
        public override void OnClick(View view)
        {
            var viewHolder = (ProductAdapterViewHolder)view.Tag;

            if (view.Id == Resource.Id.ProductRowItemInfo)
            {
                var item = _adapter.GetItem(viewHolder.AdapterPosition);
                NavigationManager.GoToProductDetails(item);
            }
            if (view.Id == Resource.Id.ProductRowItemEdit)
            {
                var item = _adapter.GetItem(viewHolder.AdapterPosition);
                NavigationManager.GoToProductEdit(item);
            }
        }