<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to get mulitple model views in a single view xamarin crossplateform. in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-mulitple-model-views-in-a-single-view/m-p/132774#M1519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to set the BindingContext at the page level.&amp;nbsp; You can limit it to the control you want to set the binding on, or you can bind directly into the property and not use the BindingContext at all.&amp;nbsp; So you could have something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ContentPage ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;ContentPage.Resources&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;SPAN style="background-color: #ffffff;"&gt;ViewModels:ClsRegionPicker x:Key="RegionPickerViewModel" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;SPAN&gt;DGViewModel:ClsDataGridViewModel x:Key="ClsDataGridViewModel"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/ContentPage.Resources&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;Picker BindingContext="{StaticResource RegionPickerViewModel}" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;DataGrid BindingContext="{StaticResource ClsDataGridViewModel}" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ContentPage&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the view-models are declared as resources, and then the BindingContext for the Picker and DataGrid are specified separately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2017 18:50:59 GMT</pubDate>
    <dc:creator>RichZwaap</dc:creator>
    <dc:date>2017-10-04T18:50:59Z</dc:date>
    <item>
      <title>how to get mulitple model views in a single view xamarin crossplateform.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-mulitple-model-views-in-a-single-view/m-p/132773#M1518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;i use like below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ContentPage xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fxamarin.com%2Fschemas%2F2014%2Fforms" rel="nofollow" target="_blank"&gt;http://xamarin.com/schemas/2014/forms&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:x="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fschemas.microsoft.com%2Fwinfx%2F2009%2Fxaml" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/winfx/2009/xaml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; xmlns:Picker="clr-namespace:TestApp.ViewModels;asembly=&lt;SPAN&gt;Test&lt;/SPAN&gt;App"&lt;BR /&gt; xmlns:bindPicker="clr-namespace:Xamarin.Forms.BindablePicker;assembly=Xamarin.Forms.BindablePicker"&lt;BR /&gt; xmlns:behaviors="clr-namespace:Behaviors;assembly=Behaviors"&lt;BR /&gt;&amp;nbsp;xmlns:DGViewModel="clr-namespace:&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.ViewModels.DataGrid"&lt;BR /&gt; xmlns:ViewModels="clr-namespace:&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.ViewModels.PickerViewModels"&lt;BR /&gt; xmlns:dg="clr-namespace:Xamarin.Forms.DataGrid;assembly=Xamarin.Forms.DataGrid"&lt;BR /&gt; x:Class="&lt;SPAN&gt;TestApp&lt;/SPAN&gt;.Views.OtherPages.Querypage"&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;ContentPage.BindingContext&amp;gt;&lt;BR /&gt; &amp;lt;ViewModels:ClsRegionPicker&amp;gt;&amp;lt;/ViewModels:ClsRegionPicker&amp;gt;&lt;BR /&gt;&amp;lt;DGViewModel:ClsDataGridViewModel&amp;gt;&amp;lt;/DGViewModel:ClsDataGridViewModel&amp;gt;&lt;BR /&gt; &amp;lt;/ContentPage.BindingContext&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ContentPage&amp;gt;&lt;/P&gt;&lt;P&gt;it only takes view model for picker and through error for datagrid.&lt;/P&gt;&lt;P&gt;one way is that i merge in one viewmodel.But i want to keep both in seperate viewmodels.&lt;/P&gt;&lt;P&gt;pls help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 05:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-mulitple-model-views-in-a-single-view/m-p/132773#M1518</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2017-10-03T05:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get mulitple model views in a single view xamarin crossplateform.</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-mulitple-model-views-in-a-single-view/m-p/132774#M1519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to set the BindingContext at the page level.&amp;nbsp; You can limit it to the control you want to set the binding on, or you can bind directly into the property and not use the BindingContext at all.&amp;nbsp; So you could have something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ContentPage ...&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;ContentPage.Resources&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;SPAN style="background-color: #ffffff;"&gt;ViewModels:ClsRegionPicker x:Key="RegionPickerViewModel" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;&lt;SPAN&gt;DGViewModel:ClsDataGridViewModel x:Key="ClsDataGridViewModel"&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/ContentPage.Resources&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;Picker BindingContext="{StaticResource RegionPickerViewModel}" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;DataGrid BindingContext="{StaticResource ClsDataGridViewModel}" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ContentPage&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that the view-models are declared as resources, and then the BindingContext for the Picker and DataGrid are specified separately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-get-mulitple-model-views-in-a-single-view/m-p/132774#M1519</guid>
      <dc:creator>RichZwaap</dc:creator>
      <dc:date>2017-10-04T18:50:59Z</dc:date>
    </item>
  </channel>
</rss>

