i use fragment where is list view and on item click i changed this fragment to details. I want to add custom back button inside details view..
I wrote this event
private void _Back_Click(object sender, EventArgs e)
{
var fragmentTransaction = this.FragmentManager.BeginTransaction();
var _fragment = new ForecastRegionListFragment();
fragmentTransaction.Attach(_fragment).Commit();
fragmentTransaction.Show(_fragment);
fragmentTransaction.Remove(this);
MyApplication._Back.Click -= _Back_Click;
MyApplication._Back.Visibility = ViewStates.Invisible;
}
but i think that it is not good way to do back. can u advice me better version ?