<?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: Edit AdvanceSymbology in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585777#M2988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;to move the message you will either need to create a new message (using the original message id) or edit the original message updating the "_control_points" field with the new position to move to. Here is a sample (untested) that should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// sample creating a new message:
Message msg = new Message();
msg.Id = OriginalMessageID;
msg.Add("_type", "position_report");
msg.Add("_action", "update");
msg.Add("_control_points", X + "," + Y);
msg.Add("_wkid", "3857");
msg.Add("sic", symbolID);
_messageLayer.ProcessMessage(msg);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// sample editing the original message:
Message originalMsg = _messageLayer.GetMessage(msg.Id);
originalMsg["_action"] = "update";
originalMsg["_control_points"] = X + "," + Y;
_messageLayer.ProcessMessage(originalMsg);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to edit the geometry, I assume there is a symbol xaml file located somewhere that you can override the template. Perhaps someone else can answer that part of your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:11:57 GMT</pubDate>
    <dc:creator>MatthewSerbinski</dc:creator>
    <dc:date>2021-12-12T01:11:57Z</dc:date>
    <item>
      <title>Edit AdvanceSymbology</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585776#M2987</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;Is it possible to edit the geometry with AdvancedSymbology? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to move a graphic with AdvancedSymbology?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need edit an 'Message' like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
// Create a new message
Message msg = new Message();&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; 
//set the ID and other parts of the message
msg.Id = messageID;
msg.Add("_type", "position_report");
msg.Add("_action", "update");
msg.Add("_control_points", X.ToString() + "," + Y.ToString());
msg.Add("_wkid", "3857");
msg.Add("sic", symbolID);
msg.Add("UniqueDesignation", "1");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
//Process the message using the MessageProcessor within the MessageGroupLayer
_messageLayer.ProcessMessage(msg);

//or this Message
/* 
* |== Example Message ==|
* 
* &amp;lt;message&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;_type&amp;gt;position_report&amp;lt;/_type&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;_action&amp;gt;update&amp;lt;/_action&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;_id&amp;gt;16986029-8295-48d1-aa6a-478f400a53c0&amp;lt;/_id&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;_wkid&amp;gt;3857&amp;lt;/_wkid&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sic&amp;gt;GFGPOLKGS-----X&amp;lt;/sic&amp;gt;
*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;_control_points&amp;gt;-226906.99878,6679149.88998;-228500.51759,6677576.8009;-232194.67644,6675625.78198&amp;lt;/_control_points&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;&amp;nbsp;&amp;nbsp; &amp;lt;UniqueDesignation&amp;gt;DIRECTION OF ATTACK&amp;lt;/UniqueDesignation&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;lt;/message&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */


&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because I need move it or resize. It is possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585776#M2987</guid>
      <dc:creator>JesúsVillajos1</dc:creator>
      <dc:date>2013-05-23T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Edit AdvanceSymbology</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585777#M2988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;to move the message you will either need to create a new message (using the original message id) or edit the original message updating the "_control_points" field with the new position to move to. Here is a sample (untested) that should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// sample creating a new message:
Message msg = new Message();
msg.Id = OriginalMessageID;
msg.Add("_type", "position_report");
msg.Add("_action", "update");
msg.Add("_control_points", X + "," + Y);
msg.Add("_wkid", "3857");
msg.Add("sic", symbolID);
_messageLayer.ProcessMessage(msg);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// sample editing the original message:
Message originalMsg = _messageLayer.GetMessage(msg.Id);
originalMsg["_action"] = "update";
originalMsg["_control_points"] = X + "," + Y;
_messageLayer.ProcessMessage(originalMsg);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to edit the geometry, I assume there is a symbol xaml file located somewhere that you can override the template. Perhaps someone else can answer that part of your question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585777#M2988</guid>
      <dc:creator>MatthewSerbinski</dc:creator>
      <dc:date>2021-12-12T01:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Edit AdvanceSymbology</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585778#M2989</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;That's correct - to move an existing message you create a message with the action Update and pass in the ID of the message you want to move.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately it's not currently possible to alter the symbol size - we hope to be able to implement that for the next release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 08:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/edit-advancesymbology/m-p/585778#M2989</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-05-24T08:06:27Z</dc:date>
    </item>
  </channel>
</rss>

