Dear All,
i have a question.I have one model view for picker and other model view for datagrid.i want to use both in a single view.if
i use like below example
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Picker="clr-namespace:TestApp.ViewModels;asembly=TestApp"
xmlns:bindPicker="clr-namespace:Xamarin.Forms.BindablePicker;assembly=Xamarin.Forms.BindablePicker"
xmlns:behaviors="clr-namespace:Behaviors;assembly=Behaviors"
xmlns:DGViewModel="clr-namespace:TestApp.ViewModels.DataGrid"
xmlns:ViewModels="clr-namespace:TestApp.ViewModels.PickerViewModels"
xmlns:dg="clr-namespace:Xamarin.Forms.DataGrid;assembly=Xamarin.Forms.DataGrid"
x:Class="TestApp.Views.OtherPages.Querypage">
<ContentPage.BindingContext>
<ViewModels:ClsRegionPicker></ViewModels:ClsRegionPicker>
<DGViewModel:ClsDataGridViewModel></DGViewModel:ClsDataGridViewModel>
</ContentPage.BindingContext>
</ContentPage>
it only takes view model for picker and through error for datagrid.
one way is that i merge in one viewmodel.But i want to keep both in seperate viewmodels.
pls help.
Thanks in advance