<?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: Change ScaleTransform ScaleX at runtime for a markersymbol in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-scaletransform-scalex-at-runtime-for-a/m-p/601080#M15406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at custom symbols here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the MarkerSymbol.ControlTemplate, you can update your Storyboard and Rectangle to include ScaleTransform. In the example above replace Storyboard for Selection for 'SelectRectangleMarkerSymbol' with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;Storyboard&amp;gt;
 &amp;lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" 
 Duration="00:00:00.0010000" Storyboard.TargetName="myrectangle" 
 Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"&amp;gt;
&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.9"/&amp;gt;
 &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;
 &amp;lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" 
 Duration="00:00:00.0010000" Storyboard.TargetName="myrectangle" 
 Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"&amp;gt;
&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.9"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;
&amp;lt;/Storyboard&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and add RenderTransform.ScaleTransform to the Rectangle:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;Rectangle.RenderTransform&amp;gt;
&amp;nbsp; &amp;lt;ScaleTransform /&amp;gt;
 &amp;lt;/Rectangle.RenderTransform&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:46:20 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-12T01:46:20Z</dc:date>
    <item>
      <title>Change ScaleTransform ScaleX at runtime for a markersymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-scaletransform-scalex-at-runtime-for-a/m-p/601079#M15405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is it possible to change ScaleTransform ScaleX and ScaleY at runtime for a markersymbol? How?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 16:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-scaletransform-scalex-at-runtime-for-a/m-p/601079#M15405</guid>
      <dc:creator>AlirezaAhmadi</dc:creator>
      <dc:date>2011-08-22T16:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change ScaleTransform ScaleX at runtime for a markersymbol</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-scaletransform-scalex-at-runtime-for-a/m-p/601080#M15406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at custom symbols here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the MarkerSymbol.ControlTemplate, you can update your Storyboard and Rectangle to include ScaleTransform. In the example above replace Storyboard for Selection for 'SelectRectangleMarkerSymbol' with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;Storyboard&amp;gt;
 &amp;lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" 
 Duration="00:00:00.0010000" Storyboard.TargetName="myrectangle" 
 Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"&amp;gt;
&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.9"/&amp;gt;
 &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;
 &amp;lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" 
 Duration="00:00:00.0010000" Storyboard.TargetName="myrectangle" 
 Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"&amp;gt;
&amp;nbsp; &amp;lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.9"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;lt;/DoubleAnimationUsingKeyFrames&amp;gt;
&amp;lt;/Storyboard&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and add RenderTransform.ScaleTransform to the Rectangle:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 &amp;lt;Rectangle.RenderTransform&amp;gt;
&amp;nbsp; &amp;lt;ScaleTransform /&amp;gt;
 &amp;lt;/Rectangle.RenderTransform&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/change-scaletransform-scalex-at-runtime-for-a/m-p/601080#M15406</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T01:46:20Z</dc:date>
    </item>
  </channel>
</rss>

