//Custom Instantiation For Fragment private ChangeUserDataDialog NewDialogInstance() { ChangeUserDataDialog changeUserDataDialog = new ChangeUserDataDialog(); Bundle bundle = new Bundle(); changeUserDataDialog.Arguments = bundle; return(changeUserDataDialog); }
private void ShowChangeUserDataDialog(object sender, System.EventArgs e) { //Show ChangeUserDataDialog-Fragment ChangeUserDataDialog changeUserDataDialog = NewDialogInstance(); FragmentTransaction transaction = Activity.SupportFragmentManager.BeginTransaction() .SetCustomAnimations(Resource.Animation.enter_from_left, Resource.Animation.exit_to_left) .Add(Resource.Id.main_content, changeUserDataDialog) .AddToBackStack("changeUserDataDialog"); transaction.Commit(); Activity.SupportFragmentManager.ExecutePendingTransactions(); //Listen For CoffeeValueDialogComplete-Event changeUserDataDialog.ChangeUserDataComplete += (o, args) => SetupView(); }