adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
588 stars 49 forks source link

How to focus Entry control? #184

Closed cris-m closed 10 months ago

cris-m commented 10 months ago

I have see the only way to focus Entry control in dotnet maui is to use SetFocusOnEntryCompletedBehavior. But SetFocusOnEntryCompletedBehavior just enable the developer to focus the next element. I would like to know if there is a way to focus an entry when render message execute. Scenario like when open the OTP page of an app, the first entry is focus in order for the numeric keyboard to be visible.

adospace commented 10 months ago

this can work? https://github.com/adospace/reactorui-maui/blob/main/samples/MauiReactor.TestApp/Pages/ElementRefPage.cs