Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Don't show Keyboard When Editing TextField

$
0
0

Here's what I'm trying to do... I have a UIDatePicker in a UIView with a toolbar (Cancel/Done buttons). When the user clicks in a UITextField I set the UIView.Hidden to false. I want that to show and not the keyboard.

        txtDateTime.EditingDidBegin += (sender, e) => {
            txtDateTime.EndEditing(true);
            pDateView.Hidden = false;
        };

That code words the first time. When the user clicks the Done button in my toolbar in my UIView, I set my view.Hidden to true. All that works ok. But when I click inside the UITextField again, the keyboard shows and not the view with my picker.

How can not have the keyboard show at at?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>