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

XAML binding to code-behind property in ContentView subclass

$
0
0

Hi,
I've subclassed ContentView to create my own custom control where I can use XAML and a code-behind file (like a WPF UserControl). Only problem is how do I bind to properties in the code behind instead of having to manually update the XAML controls via x:Name (code-behind)? Changing the top-most ContentView to my control and using x:Reference didn't work.

If there's a better way to this (like a WPF control template, etc), please let me know.

Thanks,

Chase


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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