<?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 Connecting Map in MainWindow to UserControl in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/connecting-map-in-mainwindow-to-usercontrol/m-p/640526#M3285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking at my question.&amp;nbsp; Learning Xaml, C# and WPF all at the same time.&amp;nbsp; I am working on on am Offline Editor for WPF. So here goes, I have an offline FeatureLayer that is created from an online FeatureLayer. The FeatureLayer is point data.&amp;nbsp; I can add a new point and any attributes of the new point to the offline geodatabase of the FeatureLayer.&amp;nbsp; This was all built using the Esri samples from GitHub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to be able to edit the offline geodatabase of the FeatureLayer. I have created UserControls from the EditorWidget and TemplatePicker samples from GitHub as well.&amp;nbsp; The samples reference ArcGISLocalTiledLayer and ArcGISLocalFeatureLayer from esri:Map x:Name="MyMap"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I access the offline Featurelayer/geodatabase from the UserControls?&amp;nbsp; I have tried esri:FeatureLayer wih the ID of the offline FeatureLayer, but since the layer is crated by the application I do not see how to tie it to the UserControl in the way the ArcGISLocalTiledLayer and ArcGISLocalFeatureLayer are in the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add more to this, in my MainWindow my map is esri:Map x:Name="mapView", I am thinking I need to tie/access/connect the esri:Map from the UserControls to esri:Map x:Name="mapView" in the MainWindow for this to even begin to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have working is that after the new Featurelayer/geodatabase is created I click on an Edit button, the initialize component is fired off in the TemplatePicker, a dialog box opens and that is all that happens.&amp;nbsp; What I want to see is the TemplatePicker open with the different points to edit displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am even going down the correct thought process on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp; Dale,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 14:47:26 GMT</pubDate>
    <dc:creator>DaleShearer</dc:creator>
    <dc:date>2014-09-10T14:47:26Z</dc:date>
    <item>
      <title>Connecting Map in MainWindow to UserControl</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/connecting-map-in-mainwindow-to-usercontrol/m-p/640526#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for looking at my question.&amp;nbsp; Learning Xaml, C# and WPF all at the same time.&amp;nbsp; I am working on on am Offline Editor for WPF. So here goes, I have an offline FeatureLayer that is created from an online FeatureLayer. The FeatureLayer is point data.&amp;nbsp; I can add a new point and any attributes of the new point to the offline geodatabase of the FeatureLayer.&amp;nbsp; This was all built using the Esri samples from GitHub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to be able to edit the offline geodatabase of the FeatureLayer. I have created UserControls from the EditorWidget and TemplatePicker samples from GitHub as well.&amp;nbsp; The samples reference ArcGISLocalTiledLayer and ArcGISLocalFeatureLayer from esri:Map x:Name="MyMap"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I access the offline Featurelayer/geodatabase from the UserControls?&amp;nbsp; I have tried esri:FeatureLayer wih the ID of the offline FeatureLayer, but since the layer is crated by the application I do not see how to tie it to the UserControl in the way the ArcGISLocalTiledLayer and ArcGISLocalFeatureLayer are in the sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add more to this, in my MainWindow my map is esri:Map x:Name="mapView", I am thinking I need to tie/access/connect the esri:Map from the UserControls to esri:Map x:Name="mapView" in the MainWindow for this to even begin to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have working is that after the new Featurelayer/geodatabase is created I click on an Edit button, the initialize component is fired off in the TemplatePicker, a dialog box opens and that is all that happens.&amp;nbsp; What I want to see is the TemplatePicker open with the different points to edit displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am even going down the correct thought process on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&amp;nbsp; Dale,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 14:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/connecting-map-in-mainwindow-to-usercontrol/m-p/640526#M3285</guid>
      <dc:creator>DaleShearer</dc:creator>
      <dc:date>2014-09-10T14:47:26Z</dc:date>
    </item>
  </channel>
</rss>

