Ejemplo n.º 1
0
        void OnButtonClick(object sender, EventArgs e)
        {
            var editText = this.View.FindViewById<EditText>(Resource.Id.fragment_navigation_edittext);
            if (editText == null) {
                return;
            }

            var target = new NavigationTargetFragment();
            if (target.Arguments == null) {
                target.Arguments = new Bundle();
            }
            target.Arguments.PutString(ExtraMessage, editText.Text);

            MainActivity.Current.PushFragment(target);
        }
Ejemplo n.º 2
0
        void OnButtonClick(object sender, EventArgs e)
        {
            var editText = this.View.FindViewById <EditText>(Resource.Id.fragment_navigation_edittext);

            if (editText == null)
            {
                return;
            }

            var target = new NavigationTargetFragment();

            if (target.Arguments == null)
            {
                target.Arguments = new Bundle();
            }
            target.Arguments.PutString(ExtraMessage, editText.Text);

            MainActivity.Current.PushFragment(target);
        }