how that would work with MVVM ? I mean how you would pass the TextInput reference if we are using the keyboard extension methods in the ViewModel ? Thanks
Thank you, Gerald. Always appriciate your videos, even when some are neat tips/tricks, they're all useful. For years I've been wanting to do a programming series. How do you find the time? 😂
@@jfversluis Really appreciate the feedback. No joke, means a lot. One of these days I'll warm up a series on Prism.Maui and Prism.Avalonia. Keep up the great work! - Damian
This is great Gerald, thankyou! Is there anyway to permanently disable/hide the keyboard so that even if a user types something into the Entry box the keyboard stay hidden? This would be beneficial to devices that have a build on physical keyboard!
Hi Gerald, I gave it a go and I could not make it work in iOS - Simple Code below a border- a grid and editor at the bottom - when typing it should not overlap. I did in the code behind what you did but does not work.. what Am I missing? thank you!!!
I have a different issue. I have a chat app in a Grid with 2 rows, one with the CollectionView for chat messages, one with an entry and a send button. When I open the keyboard the focus is on the Entry which remains visible, but the CollectionView items (chat messages) from the first row move off screen, moving up due to the keyboard. I'll have to try and see if I can use the new KeyboardExtensions to resolve this somehow.
@@sinsedrix if there is APIs for it on Windows to do that then sure. But I think it’s a setting that people can enable on the OS and it will show up automatically
Hi. I'm new to .NET MAUI. I am working on selecting an option from a picker and when selecting a specific one, it shows an entry box for free text. the code for the selection change event is: private void locationPicker_SelectedIndexChanged(object sender, EventArgs e) { if (locationPicker.SelectedItem.ToString() == "Other...") { pickerFrame.IsVisible = false; entryFrame.IsVisible = true; locationEntry.Focus(); locationEntry.ShowKeyboardAsync(); } } however, the entry control gain focus but the keyboard does not pop up, no matter what combination I tried with or without the extensions, etc. It does pop up if i click on the focused entry box. (I tried with and w\out await, there is no difference) The interesting thing is, if i put the code in the button click event: private void Button_AddItem_Clicked(object sender, EventArgs e) { locationEntry.Focus(); locationEntry.ShowKeyboardAsync(); } it works! it is almost like it is missing the click 🤷♂ Do you have any idea why the keyboard will not pop us from the picker event? or how can I make it happen? it is not crucial but a nice to have. I am working with VS2022 community windows 17.9.2, MAUI .NET 8 Thanks in advance Zeev
You'll need to reference a control, so no "pure" MVVM way, no. But this also has very much to do with the view, so shouldn't this be part of the view anyway...? Your view model shouldn't know about a keyboard, should it?
@@jfversluis I used that plugin today! Was awesome! Somef feedback, I had to copy the file stream into a memory stream to get it working on android. I also had to make sure the stream wasnt disposed before the sound had finished playing. Anyway looking forward to more videos from you!
I using PureWeen.Maui.FixesAndWorkarounds as solution for it problem, I Will check solution from community toolkit, thanks, but its correctly open keyboard also if entry placed deep at bottom of screen?
And if you have some best practices for justify label multiline text on Windows (maybe good handler or some another way to justify label binded string) , its will be very interesting for me, thanks a lot for your videos!
yes please a video about cancellation tokens would be great! Best practices!
how that would work with MVVM ? I mean how you would pass the TextInput reference if we are using the keyboard extension methods in the ViewModel ? Thanks
same question ....
I would love to see more videos on cancellation tokens!
Is there any solution like this to be used in a .Net MAUI Hybrid? I´ve the same problem with HTML input elements
Thank you, Gerald. Always appriciate your videos, even when some are neat tips/tricks, they're all useful.
For years I've been wanting to do a programming series. How do you find the time? 😂
Time is a constant, it's all about setting priorities 🤓 but yeah, this takes a lot of time 😅 Thank you for noticing!
@@jfversluis Really appreciate the feedback. No joke, means a lot. One of these days I'll warm up a series on Prism.Maui and Prism.Avalonia. Keep up the great work!
- Damian
@@dsuess do it! And make sure to let me know!
I would love a video about cancelation tokens
Yes to a vid on cancellation tokens, please! Thank you for the great videos as always, sir.
This is great Gerald, thankyou! Is there anyway to permanently disable/hide the keyboard so that even if a user types something into the Entry box the keyboard stay hidden? This would be beneficial to devices that have a build on physical keyboard!
Hm I would think this happens at an OS level, is this something that you think might happen in theory or something you are actually experiencing?
Hi Gerald, I gave it a go and I could not make it work in iOS - Simple Code below a border- a grid and editor at the bottom - when typing it should not overlap. I did in the code behind what you did but does not work.. what Am I missing? thank you!!!
Very interesting.. I'd like to know how can i make it using mvvm. Thanks for everything
Thanks a lot for video, Gerald. I'm wondering: Is it only for Android ?
Seems it's not working for IOS
As far as I know it should also work on iOS!
Hi, Gerald , i have a unrelated issue, the onnavigatedto override method is not working. What are the likely issues
Thanks for video. Could you please add details how to use this property with maui with blazor inside razor component ?
You can’t, not with this at least since you need a reference to a .NET MAUI control
You're simply the best!
I don't know about that, but thank you 🥰
"better than all the rest" 🎶🎤
@@jewersp 🤣🤣👍🏻
I also want to see more information and cancellation tokens.
Very high quality and well hug
Do you have an example of a TextInput reference if we are using the keyboard extension methods in the ViewModel :-)
I have a different issue. I have a chat app in a Grid with 2 rows, one with the CollectionView for chat messages, one with an entry and a send button. When I open the keyboard the focus is on the Entry which remains visible, but the CollectionView items (chat messages) from the first row move off screen, moving up due to the keyboard. I'll have to try and see if I can use the new KeyboardExtensions to resolve this somehow.
Found a solution for that?
Could you do a video on how to programatically walk the documents folder and list out all of the files
Haven't tried the control really, maybe soon. I just wanna ask, can we use it in the event of the entry instead of the button?
Sure, put the line of code everywhere you need it
can we use for all controls in all pages in net maui so i mean we don't have to specified controls one by one to do that ?
Any input control that implements ITextInput, yes
Ура снова классное видео которое решило мою проблему! Good job!!!
That's why I make them! Thank you! :)
It doesn't seem to be merged to Maui main repo, do you confirm? Also there is still no way to have a virtual keyboard on Windows :/
Virtual keyboard is part of Windows not the app
@@jfversluis so, is there a way to activate it on Maui?
@@sinsedrix if there is APIs for it on Windows to do that then sure. But I think it’s a setting that people can enable on the OS and it will show up automatically
thanks , waiting for this ,!!!
Here it is!
Hi. I'm new to .NET MAUI.
I am working on selecting an option from a picker and when selecting a specific one, it shows an entry box for free text.
the code for the selection change event is:
private void locationPicker_SelectedIndexChanged(object sender, EventArgs e)
{
if (locationPicker.SelectedItem.ToString() == "Other...")
{
pickerFrame.IsVisible = false;
entryFrame.IsVisible = true;
locationEntry.Focus();
locationEntry.ShowKeyboardAsync();
}
}
however, the entry control gain focus but the keyboard does not pop up, no matter what combination I tried with or without the extensions, etc. It does pop up if i click on the focused entry box. (I tried with and w\out await, there is no difference)
The interesting thing is, if i put the code in the button click event:
private void Button_AddItem_Clicked(object sender, EventArgs e)
{
locationEntry.Focus();
locationEntry.ShowKeyboardAsync();
}
it works!
it is almost like it is missing the click 🤷♂
Do you have any idea why the keyboard will not pop us from the picker event? or how can I make it happen? it is not crucial but a nice to have.
I am working with VS2022 community windows 17.9.2, MAUI .NET 8
Thanks in advance
Zeev
Is there any way to do this in MVVM fashion?
You'll need to reference a control, so no "pure" MVVM way, no. But this also has very much to do with the view, so shouldn't this be part of the view anyway...? Your view model shouldn't know about a keyboard, should it?
@@jfversluis true.
Thanks a lot
You're welcome!
I need a .NET MAUI droid sticker for my machine!! 😊
Everyone needs .NET MAUI stickers!
Drastic.AudioRecorder might be a good nuget package to do a video on
Definitely, thanks! We're also working to get that in Plugin.Maui.Audio!
@@jfversluis I used that plugin today! Was awesome! Somef feedback, I had to copy the file stream into a memory stream to get it working on android. I also had to make sure the stream wasnt disposed before the sound had finished playing. Anyway looking forward to more videos from you!
doesn't work upon focus 😞
very good~~~
Thanks!
how hide keyboard in .net 6.0?
Thanks for video!
Cool emoji! Thank you!
I using PureWeen.Maui.FixesAndWorkarounds as solution for it problem, I Will check solution from community toolkit, thanks, but its correctly open keyboard also if entry placed deep at bottom of screen?
And if you have some best practices for justify label multiline text on Windows (maybe good handler or some another way to justify label binded string) , its will be very interesting for me, thanks a lot for your videos!
The code is probably the same. PureWeen implemented this!
one of the most annoying things ever. thank you
I know, right?! Hopefully it will all become better with more control in your hands!
I would love to see more videos on cancellation tokens!
I've put it on the list!