Samsung / Tizen.CircularUI

Tizen Wearable CircularUI project is to develop an open source software motivate software developer to creating Tizen Wearable Xamarin Forms app more easily and efficiently.
Other
80 stars 32 forks source link

Calling Focus on PopupEntry does nothing #165

Closed max-kuzmin closed 5 years ago

max-kuzmin commented 5 years ago

I suppose this code should show keyboard on page appearing, but it does not:

public class SendMessagePage : CirclePage
    {
        private readonly PopupEntry popupEntryView = new PopupEntry();

        public SendMessagePage()
        {
            Content = popupEntryView;
        }

        protected override void OnAppearing()
        {
            popupEntryView.Focus();
            base.OnAppearing();
        }
    }

Emulator: W4.0-circle-x86-preview-26101 Tizen.Wearable.CircularUI 1.1.0-pre1-00013

yourina commented 5 years ago

Hello, @MaxGsomGsom It is difficult to check whether SendMessagePage method is called or not with the above example code. Could you share more information? Thank you for reporting.

max-kuzmin commented 5 years ago

OnAppearing() method is called every time when page is shown on screen. You can test it by creating simplest app:

using Xamarin.Forms;

public class App : Application
    {
        protected override void OnStart()
        {
            MainPage = new SendMessagePage();
        }
    }
yourina commented 5 years ago

Hello, @MaxGsomGsom Thank you for providing more information. Unfortunately, basic operation of 'Focus() ' is to change focus status of 'PopupEntry', not to show Keyboard on Popup. But, we agree the necessity of your requirement. So, we decided to provide new method as 'ShowPopup'. The basic operation of 'ShowPopup' is to create Popup and to show keyboard with entry. We are waiting for your opinion.. Thank you.

max-kuzmin commented 5 years ago

I have read some more info and found that I need to implement my own view renderer to use this feature