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

How to keep BaseView's propertiesbinding and event when using CustomRenderer : ViewRenderer

$
0
0
    public class JVFloatLabeledEntryRenderer : ViewRenderer<JVFloatLabeledEntry, JVFloatLabeledTextField> { // JVFloatLabeledTextField is a custom ios UITextField

            var newView = new JVFloatLabeledTextField (new RectangleF(0, 0, 200, 40)){
                    // Add custom properties
            }; // JVFloatLabeledTextField is just a custom UITextField 
            SetNativeControl (newView); 
    }

But JVFloatLabeledEntry's base class Entry's members are all gone.
e.g. JVFloatLabeledEntry.TextChanged will never be triggered and all PropertyBindings like Entry.TextProperty, TextColorProperty are gone.

I really reached bottle neck, could anyone please tell me how to keep JVFloatLabeledEntry(CustomEntry)'s base class Entry's properties binding and EventHandlers. Thank you very much.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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