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

Binding to a static property in code, not in xaml

$
0
0

Hi,

the following doesn't work:
myLbl.SetBinding<ViewModel>(Label.TextProperty, x => ViewModel.StaticVariable);
What's the equivalent in code of the xaml x:Static markup extension?
Tks.

François


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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