<?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: LayerCanvas.ArrangeOverride Setting Invalid FrameworkElement Size (Crashes App) in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/layercanvas-arrangeoverride-setting-invalid/m-p/589211#M3015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find the fix for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am seeing the similar behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shay ~&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm intermittently experiencing an error when rapidly changing map scales (i.e. from very large to very small, or vice-versa) wherein my application will crash. It appears that the LayerCanvas.ArrangeOverride is, for some reason, attempting to set an invalid Width property on the FrameworkElement's dependency property. Based on this link, it appears that the issue was carried over from the Silverlight API: &lt;A href="http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception&lt;/A&gt;. Has anyone else encountered this problem and been able to work around it? The following is a snippet of the stack trace with the offending method:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;System.ArgumentException: '-907.750834278924' is not a valid value for property 'Width'.
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.set_Width(Double value)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.LayerCanvas.ArrangeOverride(Size finalSize)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.Arrange(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayout()
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Aaron&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:18:38 GMT</pubDate>
    <dc:creator>shay-geo</dc:creator>
    <dc:date>2021-12-12T01:18:38Z</dc:date>
    <item>
      <title>LayerCanvas.ArrangeOverride Setting Invalid FrameworkElement Size (Crashes App)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/layercanvas-arrangeoverride-setting-invalid/m-p/589210#M3014</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;I'm intermittently experiencing an error when rapidly changing map scales (i.e. from very large to very small, or vice-versa) wherein my application will crash. It appears that the LayerCanvas.ArrangeOverride is, for some reason, attempting to set an invalid Width property on the FrameworkElement's dependency property. Based on this link, it appears that the issue was carried over from the Silverlight API: &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception&lt;/A&gt;&lt;SPAN&gt;. Has anyone else encountered this problem and been able to work around it? The following is a snippet of the stack trace with the offending method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;System.ArgumentException: '-907.750834278924' is not a valid value for property 'Width'.
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.set_Width(Double value)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.LayerCanvas.ArrangeOverride(Size finalSize)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.Arrange(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayout()
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/layercanvas-arrangeoverride-setting-invalid/m-p/589210#M3014</guid>
      <dc:creator>AaronHigh</dc:creator>
      <dc:date>2021-12-12T01:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: LayerCanvas.ArrangeOverride Setting Invalid FrameworkElement Size (Crashes App)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/layercanvas-arrangeoverride-setting-invalid/m-p/589211#M3015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Aaron,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find the fix for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am seeing the similar behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shay ~&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm intermittently experiencing an error when rapidly changing map scales (i.e. from very large to very small, or vice-versa) wherein my application will crash. It appears that the LayerCanvas.ArrangeOverride is, for some reason, attempting to set an invalid Width property on the FrameworkElement's dependency property. Based on this link, it appears that the issue was carried over from the Silverlight API: &lt;A href="http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception" rel="nofollow noopener noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception&lt;/A&gt;. Has anyone else encountered this problem and been able to work around it? The following is a snippet of the stack trace with the offending method:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;System.ArgumentException: '-907.750834278924' is not a valid value for property 'Width'.
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
&amp;nbsp;&amp;nbsp; at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.set_Width(Double value)
&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Client.LayerCanvas.ArrangeOverride(Size finalSize)
&amp;nbsp;&amp;nbsp; at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.Arrange(Rect finalRect)
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayout()
&amp;nbsp;&amp;nbsp; at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Aaron&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/layercanvas-arrangeoverride-setting-invalid/m-p/589211#M3015</guid>
      <dc:creator>shay-geo</dc:creator>
      <dc:date>2021-12-12T01:18:38Z</dc:date>
    </item>
  </channel>
</rss>

