<?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: .NET 4.0 XmlSerializer and Runtime Objects in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287719#M1427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot serialize Symbols since those contains brushes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you know exactly what you are going to serialize, you can manually serialize brushes to data object that contains the initialization information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have made long time ago extension to serialize GraphicsLayer. You can read more about from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;&lt;SPAN&gt;he code is not near perfect but did the job at that time and it was fun test to work with. If you or other people are interested, I could upload the code to GitHub.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 04:12:06 GMT</pubDate>
    <dc:creator>AnttiKajanus1</dc:creator>
    <dc:date>2012-09-26T04:12:06Z</dc:date>
    <item>
      <title>.NET 4.0 XmlSerializer and Runtime Objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287718#M1426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to Serialize Objects in the ArcGIS Runtime SDK for WPF? I thought this should have worked but it does not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; SimpleMarkerSymbol simpleMarkerSymbol = new SimpleMarkerSymbol() { &amp;nbsp;&amp;nbsp;&amp;nbsp; Color = new SolidColorBrush(Colors.Red), &amp;nbsp;&amp;nbsp;&amp;nbsp; Size = 10, &amp;nbsp;&amp;nbsp;&amp;nbsp; Style = SimpleMarkerSymbol.SimpleMarkerStyle.Circle };&amp;nbsp; using (TextWriter textWriter = new StreamWriter(@"c:\temp\test.xml")) { &amp;nbsp;&amp;nbsp;&amp;nbsp; XmlSerializer xmlSerializer = new XmlSerializer(simpleMarkerSymbol.GetType()); &amp;nbsp;&amp;nbsp;&amp;nbsp; xmlSerializer.Serialize(textWriter, simpleMarkerSymbol); } &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 17:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287718#M1426</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2012-09-25T17:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 4.0 XmlSerializer and Runtime Objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287719#M1427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot serialize Symbols since those contains brushes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you know exactly what you are going to serialize, you can manually serialize brushes to data object that contains the initialization information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have made long time ago extension to serialize GraphicsLayer. You can read more about from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;&lt;SPAN&gt;he code is not near perfect but did the job at that time and it was fun test to work with. If you or other people are interested, I could upload the code to GitHub.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 04:12:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287719#M1427</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2012-09-26T04:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 4.0 XmlSerializer and Runtime Objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287720#M1428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Antti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´ve interesting serialize the Graphics into a database, can you upload the code to GitHub.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Antti,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You cannot serialize Symbols since those contains brushes.&lt;BR /&gt;&lt;BR /&gt;If you know exactly what you are going to serialize, you can manually serialize brushes to data object that contains the initialization information.&lt;BR /&gt;&lt;BR /&gt;I have made long time ago extension to serialize GraphicsLayer. You can read more about from &lt;A href="http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548"&gt;http://forums.arcgis.com/threads/59595-I-need-to-be-able-to-add-a-symbol-to-the-map-and-save-it?p=220548&amp;amp;viewfull=1#post220548&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;he code is not near perfect but did the job at that time and it was fun test to work with. If you or other people are interested, I could upload the code to GitHub.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 06:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287720#M1428</guid>
      <dc:creator>JesúsVillajos1</dc:creator>
      <dc:date>2012-11-29T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: .NET 4.0 XmlSerializer and Runtime Objects</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287721#M1429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Antti,&lt;BR /&gt;&lt;BR /&gt;I´ve interesting serialize the Graphics into a database, can you upload the code to GitHub.&lt;BR /&gt;&lt;BR /&gt;Thanks Antti,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There you go. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; As I mentioned previously, I haven't tested that more than the example application so you should do some testing with it. I am also interested if you find it useful or if it blows up. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/anttikajanus/Esri/tree/master/RuntimeForWPFExamples/GraphicSerializationExample"&gt;https://github.com/anttikajanus/Esri/tree/master/RuntimeForWPFExamples/GraphicSerializationExample&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/net-4-0-xmlserializer-and-runtime-objects/m-p/287721#M1429</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2012-11-29T11:37:26Z</dc:date>
    </item>
  </channel>
</rss>

