<?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 Application shutdown without error event-Undocumented change in Silverlight 4.0 in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423018#M10884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After upgrading my application to Silverlight 4.0 and making all the necessary changes as documented, a persistent error occurred, which caused my application to shut down without any error message. Even the debugger couldn't help because a routine was completed succesfully and then the application hanged without any warning or error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It took a lot of effort to discover that there has been an undocumented change in Silverlight4.0 where the x:Name of an object in the XAML cannot itself be bound. I replaced the x:Name attribute with the Tag attribute and the bug was solved. I don't know if this was an intentional change on MS's part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--- This is wrong in Silverlight 4.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBox&amp;nbsp; x:Name="{Binding FieldName}"&amp;nbsp; Text="{Binding FieldData}" Visibility="{Binding FieldVisibility}" Grid.Column="1" Width="120" FontSize="9" KeyUp="DataKeyUp" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+++ It should be replaced with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBox&amp;nbsp; Tag="{Binding FieldName}"&amp;nbsp; Text="{Binding FieldData}" Visibility="{Binding FieldVisibility}" Grid.Column="1" Width="120" FontSize="9" KeyUp="DataKeyUp" /&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 12:33:52 GMT</pubDate>
    <dc:creator>AvronPolakow</dc:creator>
    <dc:date>2010-05-24T12:33:52Z</dc:date>
    <item>
      <title>Application shutdown without error event-Undocumented change in Silverlight 4.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423018#M10884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After upgrading my application to Silverlight 4.0 and making all the necessary changes as documented, a persistent error occurred, which caused my application to shut down without any error message. Even the debugger couldn't help because a routine was completed succesfully and then the application hanged without any warning or error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It took a lot of effort to discover that there has been an undocumented change in Silverlight4.0 where the x:Name of an object in the XAML cannot itself be bound. I replaced the x:Name attribute with the Tag attribute and the bug was solved. I don't know if this was an intentional change on MS's part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--- This is wrong in Silverlight 4.0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBox&amp;nbsp; x:Name="{Binding FieldName}"&amp;nbsp; Text="{Binding FieldData}" Visibility="{Binding FieldVisibility}" Grid.Column="1" Width="120" FontSize="9" KeyUp="DataKeyUp" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+++ It should be replaced with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;TextBox&amp;nbsp; Tag="{Binding FieldName}"&amp;nbsp; Text="{Binding FieldData}" Visibility="{Binding FieldVisibility}" Grid.Column="1" Width="120" FontSize="9" KeyUp="DataKeyUp" /&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 12:33:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423018#M10884</guid>
      <dc:creator>AvronPolakow</dc:creator>
      <dc:date>2010-05-24T12:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Application shutdown without error event-Undocumented change in Silverlight 4.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423019#M10885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was intentional, since this is not really valid XAML and doesn't make much sense either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x:Name is only used to be able to get to the element in codebehind, but if it keeps changing through the binding, what's the point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 20:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423019#M10885</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-24T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Application shutdown without error event-Undocumented change in Silverlight 4.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423020#M10886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even if it didn't make sense before earlier versions of Silverlight didn't throw an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At least in Silverlight 4.0 there should have been some error thrown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using x:Name binding in templates (eg in listboxes and trees) where some form of identification was needed to identify separate rows (a la XML attributes). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It just seemed natural to use the x:Name for each row. The Tag attribute I replaced it with is OK except that I was using that for other information about rows in some templates where I now have to parse out the Tag in the application to get to the row name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could have used a collapsed (hidden) textblock but using the Name seemed just the most intuitive.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 13:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423020#M10886</guid>
      <dc:creator>AvronPolakow</dc:creator>
      <dc:date>2010-05-25T13:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Application shutdown without error event-Undocumented change in Silverlight 4.0</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423021#M10887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like what you really need to do is build a proper viewmodel. I suggest you research the MVVM pattern a bit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 15:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/application-shutdown-without-error-event/m-p/423021#M10887</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-25T15:04:22Z</dc:date>
    </item>
  </channel>
</rss>

