<?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 Glass template - SL 5.0; ESRI API 3.x, no XAML preview. in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/glass-template-sl-5-0-esri-api-3-x-no-xaml-preview/m-p/542096#M13846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dear Readers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for taking the time to read through is issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Main problem:&amp;nbsp; I had a working edit application (explicit save) developed using Minimal template style that was available from VS 2010 project - the team wanted to change the background to glass template and i am having a hard time to merge the style from working code minimal style to nice looking glass style.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to understand how to effectively i wanted to open the designer and inspect each of the items;&amp;nbsp; this is what i get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.MissingMethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Method not found: 'System.String System.Environment.UnsafeGetFolderPath(SpecialFolder)'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.CleanInBrowserAppDataCache()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.Application_Exited(Object sender, EventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I get this error with an option to reload the designer and i get the same error back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/49707-quot-Glass-Template-quot-not-opening-properly.?highlight=glass"&gt;http://forums.arcgis.com/threads/49707-quot-Glass-Template-quot-not-opening-properly.?highlight=glass&lt;/A&gt;&lt;SPAN&gt; - looked at it - did all the unlock magic etc and nothing changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to accomplisgh my task: i tried the other route of modifying the working edit working app code built using default minimal style of vs 2010.&amp;nbsp;&amp;nbsp; Minimal template that comes out of vs 2010 does not have a replacable&amp;nbsp; MyStyles.xaml and all style related information is present in app.xaml.&amp;nbsp;&amp;nbsp; When i tried to merge styles .xaml I had to move my style code from app.xaml to MinimalStyle.xaml and included it as a resource in App.XAML. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with difficulty, i moved the minimal styles.xaml to a separate file and called in app.xaml = the app works as it was before.&amp;nbsp; when i tried to replace it with GlassStyles.xaml, it is throwing unable to find name/key XAML parser errors.&amp;nbsp; they fail at value being assigned to a staticresource in setter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;Style x:Name="titleTextStyle" TargetType="TextBlock"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Setter Property="Foreground" Value="{StaticResource MediumHighlightBrush}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Setters..../&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Style&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;SolidColorBrush x:Key="MediumHighlightBrush" Color="#FF022A47" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how is that the downloadable glass project does not complain (it is a website with no default.aspx - only a default.html) does not complain not being able to locate a key whereas web application project complains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the templates for vs 2010 have the abiility to swamp templates, it would have been easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas would be of great help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 21:07:53 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2012-10-29T21:07:53Z</dc:date>
    <item>
      <title>Glass template - SL 5.0; ESRI API 3.x, no XAML preview.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/glass-template-sl-5-0-esri-api-3-x-no-xaml-preview/m-p/542096#M13846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dear Readers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for taking the time to read through is issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Main problem:&amp;nbsp; I had a working edit application (explicit save) developed using Minimal template style that was available from VS 2010 project - the team wanted to change the background to glass template and i am having a hard time to merge the style from working code minimal style to nice looking glass style.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to understand how to effectively i wanted to open the designer and inspect each of the items;&amp;nbsp; this is what i get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.MissingMethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Method not found: 'System.String System.Environment.UnsafeGetFolderPath(SpecialFolder)'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.CleanInBrowserAppDataCache()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.Application_Exited(Object sender, EventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I get this error with an option to reload the designer and i get the same error back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/49707-quot-Glass-Template-quot-not-opening-properly.?highlight=glass"&gt;http://forums.arcgis.com/threads/49707-quot-Glass-Template-quot-not-opening-properly.?highlight=glass&lt;/A&gt;&lt;SPAN&gt; - looked at it - did all the unlock magic etc and nothing changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So to accomplisgh my task: i tried the other route of modifying the working edit working app code built using default minimal style of vs 2010.&amp;nbsp;&amp;nbsp; Minimal template that comes out of vs 2010 does not have a replacable&amp;nbsp; MyStyles.xaml and all style related information is present in app.xaml.&amp;nbsp;&amp;nbsp; When i tried to merge styles .xaml I had to move my style code from app.xaml to MinimalStyle.xaml and included it as a resource in App.XAML. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with difficulty, i moved the minimal styles.xaml to a separate file and called in app.xaml = the app works as it was before.&amp;nbsp; when i tried to replace it with GlassStyles.xaml, it is throwing unable to find name/key XAML parser errors.&amp;nbsp; they fail at value being assigned to a staticresource in setter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;Style x:Name="titleTextStyle" TargetType="TextBlock"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Setter Property="Foreground" Value="{StaticResource MediumHighlightBrush}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Setters..../&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/Style&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;SolidColorBrush x:Key="MediumHighlightBrush" Color="#FF022A47" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how is that the downloadable glass project does not complain (it is a website with no default.aspx - only a default.html) does not complain not being able to locate a key whereas web application project complains.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the templates for vs 2010 have the abiility to swamp templates, it would have been easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas would be of great help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ravi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 21:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/glass-template-sl-5-0-esri-api-3-x-no-xaml-preview/m-p/542096#M13846</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2012-10-29T21:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Glass template - SL 5.0; ESRI API 3.x, no XAML preview.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/glass-template-sl-5-0-esri-api-3-x-no-xaml-preview/m-p/542097#M13847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To avoid these issues, I would recommend to start with a fresh glass Template (you can get it in the visualstudio gallery. Search for 'ESRI').&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Compile it and check that the design surface is working well. Then you'll be able to add your application files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 13:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/glass-template-sl-5-0-esri-api-3-x-no-xaml-preview/m-p/542097#M13847</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-11-06T13:35:48Z</dc:date>
    </item>
  </channel>
</rss>

