<?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 Mapview from WPF to winForm in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/744465#M3724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to use the Map View tool which is made for WPF in a WinForms project and I have the ElementHost set up and ready to take a UserControl but, when I try setting up the User control, it won't allow me to put the Map View Tool into the WPF User Control. It is just greyed out saying I can't use it which doesn't make sense to me. Anyone know why it won't let me put the Map View into the User Control? Any fixes? Thanks in advance!&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/119740_Capture.PNG" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 17:19:34 GMT</pubDate>
    <dc:creator>GabeSmith</dc:creator>
    <dc:date>2015-07-29T17:19:34Z</dc:date>
    <item>
      <title>Mapview from WPF to winForm</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/744465#M3724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to use the Map View tool which is made for WPF in a WinForms project and I have the ElementHost set up and ready to take a UserControl but, when I try setting up the User control, it won't allow me to put the Map View Tool into the WPF User Control. It is just greyed out saying I can't use it which doesn't make sense to me. Anyone know why it won't let me put the Map View into the User Control? Any fixes? Thanks in advance!&lt;IMG alt="Capture.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/119740_Capture.PNG" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/744465#M3724</guid>
      <dc:creator>GabeSmith</dc:creator>
      <dc:date>2015-07-29T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mapview from WPF to winForm</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/744466#M3725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar issue where I got an error message about an invalid invocation of the constructor for my WPF user control.&lt;/P&gt;&lt;P&gt;I got around this by adding an empty ElementHost to my WinForm and then adding the control through code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Form1()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elementHost1.Child = new MyWPFUserControlLibrary.UserControl1();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2019 14:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/744466#M3725</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2019-10-22T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Mapview from WPF to winForm</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/1087580#M3824</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9633"&gt;@MattNicol&lt;/a&gt;.&amp;nbsp; This worked for me too.&amp;nbsp; Had to use the code behind instead of the designer to add the UserControl.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 17:33:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/mapview-from-wpf-to-winform/m-p/1087580#M3824</guid>
      <dc:creator>AndyWhitaker1</dc:creator>
      <dc:date>2021-08-10T17:33:20Z</dc:date>
    </item>
  </channel>
</rss>

