<?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: Examples of working with WPF API objects from  program code in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/examples-of-working-with-wpf-api-objects-from/m-p/709009#M3603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatolii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The equivalent code-behind to your XAML is this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="codebehind.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/34847_codebehind.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you also asked about FeatureLayer and MapTips (in another post), the FeatureLayer in following XAML-code&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_add_MapTips/017000000038000000/" title="http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_add_MapTips/017000000038000000/"&gt;ArcGIS Runtime SDK for WPF&lt;/A&gt; is equivalent to the following code-behind.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="featurelayer.PNG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/34848_featurelayer.PNG" style="width: 620px; height: 329px;" /&gt;&lt;/P&gt;&lt;P&gt;Notice that code-behind tends to be more lengthy and less intuitive as XAML, this is why our SDK samples to be as short and readable as possible is mostly in XAML whenever possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 22:28:45 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2014-11-26T22:28:45Z</dc:date>
    <item>
      <title>Examples of working with WPF API objects from  program code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/examples-of-working-with-wpf-api-objects-from/m-p/709008#M3602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus!&lt;/P&gt;&lt;P&gt;Is there are some resources where I can find examples of working with WPF API objects from&amp;nbsp; program code.&lt;/P&gt;&lt;P&gt;For example if I have xaml:&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14156950960203297 jive_text_macro" jivemacro_uid="_14156950960203297"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map x:Name="Map" Background="White" WrapAround="true" &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extent="6095000,6810000,6900000,7258000" &amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer ID="BaseLayer" &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer" rel="nofollow" target="_blank"&gt;http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer&amp;nbsp;&amp;nbsp; ID="routes_osm" &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer/1" rel="nofollow" target="_blank"&gt;http://localhost:6080/ArcGIS/rest/services/streetRK/MapServer/1&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;How I can create FeatureLayer from code and so on... May be exists some resources where I can find solutions for such tasks more quickly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 08:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/examples-of-working-with-wpf-api-objects-from/m-p/709008#M3602</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-11-11T08:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Examples of working with WPF API objects from  program code</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/examples-of-working-with-wpf-api-objects-from/m-p/709009#M3603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatolii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The equivalent code-behind to your XAML is this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="codebehind.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/34847_codebehind.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you also asked about FeatureLayer and MapTips (in another post), the FeatureLayer in following XAML-code&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_add_MapTips/017000000038000000/" title="http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_add_MapTips/017000000038000000/"&gt;ArcGIS Runtime SDK for WPF&lt;/A&gt; is equivalent to the following code-behind.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="featurelayer.PNG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/34848_featurelayer.PNG" style="width: 620px; height: 329px;" /&gt;&lt;/P&gt;&lt;P&gt;Notice that code-behind tends to be more lengthy and less intuitive as XAML, this is why our SDK samples to be as short and readable as possible is mostly in XAML whenever possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 22:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/examples-of-working-with-wpf-api-objects-from/m-p/709009#M3603</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2014-11-26T22:28:45Z</dc:date>
    </item>
  </channel>
</rss>

