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

InitializeComponent before set BindingContext or viceversa?

$
0
0

In the code behind of a Xaml page, which is the correct order?

InitializeComponent();
BindingContext = ThePageViewModel;

or

BindingContext = ThePageViewModel;
InitializeComponent();


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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