Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to set internal Property "IsFocused" of VisualElement outside of xamarin API

$
0
0

Hi there,

I'm using a custom Entry, which then uses my native iOS cutom UITextField. I wanna hook up the custom UITextField's EditingDidBegin/End to custom Entry's IsFocused just like the following code:

// following code is in CustomRenderer : ViewRenderer<CustomEntry, CustomUITextField>
myCustomUITextField.EditingDidBegin += delegate (object sender, EventArgs args) {
    myCustomEntry.IsFocused = true; // Error in this line: can't set IsFocused property outside of xamarin API
};

My problem is Entry.IsFocused is internal, could anyone tells me how to set Entry.IsFocused property outside of xamarin API?

Thank you.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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