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

Accessing content property from second View via ViewModel efficently

$
0
0

My ultimate goal, is to have a fixed header on a ContentPage, and then bind the content property to my other views (ContentView) .
I so far have a ViewModel, which i have bound a property called "Viewbound", which is of a "View" data type.

This allows me to access the ViewBound.Content property.

My Problem is I think this is how to assign the content property would be like this;

ViewBound.content = OtherView.content;

This would require a property on the ViewModel for each View (and binding), this doesn't seem that efficient and would have a lot of repeated code?

I can post my full code if required.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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