private void TournamentList_ItemSelected(object sender, ItemListSelectEventArgs e) { Tournament item = e.Item as Tournament; var f = new MatchesFragment(); f.Arguments = new Bundle(); f.Arguments.PutObject("Item", item); this.FragmentManager.BeginTransaction() .AddToBackStack("BeforeTaskFragment") .Replace(Resource.Id.ContentLayout, f, "MatchesFragment") .Commit(); }
public override bool OnOptionsItemSelected(IMenuItem item) { switch (item.ItemId) { case 1: var f = new MatchesFragment(); f.Arguments = new Bundle(); f.Arguments.PutObject("Item", _item.Tournament); this.FragmentManager.BeginTransaction() .AddToBackStack("BeforeTaskFragment") .Replace(Resource.Id.ContentLayout, f, "MatchesFragment") .Commit(); return(true); default: return(base.OnOptionsItemSelected(item)); } }