コード例 #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);
        }
コード例 #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);
        }