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

binding using multiple contexts?

$
0
0

let's take the example from xamarin http://iosapi.xamarin.com/?link=T:Xamarin.Forms.MasterDetailPage

and masterdatail page damo from there https://github.com/xamarin/xamarin-forms-samples/tree/master/FormsGallery

when item in master page is selected it sets detail page binding context
this.Detail.BindingContext = args.SelectedItem;

so the question is:
what if i have, say, two items to bind? for example, i want background color on detail page to be of selected item color and foreground color to become the color of previously selected item?

just want to know the pattern or good practice to do this kind of things right.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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