Because I want to call textview.resignFocus and on page_Diisappear it doesnt work. It should be called before the page disappeared. I am using the back button of NavigationController.
I resolved this by setting textview..editable.false and after again textview.editable=true (to hide the keyboard)
The keyboard disappears automatically when the page is changed. If you want to prevent it from appearing again when you return to the page then you can use CallSubDelayed to hide it (call it from the Page_Appear event).
Yes I this but it hides the keyboard only after showing the page.
Anyway I solved it by makin textview.editable=false when page disappear.
But will be great to add more delegates to controls (like for textview)
I don't see how viewWillDisappear of the text field will help here. It will be called together with Page_Disappear (which is based on viewWillDisappear).
What I was meaning with more delegates is that for exemaple textview support only Click and Doubleclixk events. I changed to delegate of Textview to my module to be able to use the OnEdit,... events.
It is not so difficult but anyway will be great to support more and more events for controls in b4i.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.