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

XAML: How do you pass a control/view reference into a behavior?

$
0
0

I am trying to write a compare validator as a behavior. I have the behavior attached to an Entry but I want to pass a reference to the control to compare to into it in XAML. I created a BindableProperty of type Entry and tried using {Binding myCompareToControlName} but it is always null.

Can someone post an example of how this is done?

Thanks,
Jason


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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