I have a custom control, override of UIScrollView. When rendering two UIViews are rendered. One is the PDF, one is a layer above. The layer above contains a collection of texts which rendered at different places over the pdf.
I use MvvmCross so have a model. Collection of texts is observable. How can I bind the observable collection to the results which need to be rendered in the layer?
In short...pseudo
UIScrollViewWrapper
On draw create two layers
layer 1 is pdf image
layer above is view with texts.
Texts need to be bind and observed by Model.Texts (ObservableCollection<string>)
I tried:
var set = this.CreateBindingSet<ViewWithScrollView, ViewWithScrollViewModel>();
set.Bind(ScrollView.LayerView).For(x => x.LayerItems).To(vm => vm.LayerItems);
set.Apply();
The LayerView is MvxView for bindingcontext