{"id":163,"date":"2010-05-30T07:16:39","date_gmt":"2010-05-30T07:16:39","guid":{"rendered":"http:\/\/www.themissingdocs.net\/wordpress\/?p=163"},"modified":"2010-05-30T07:16:39","modified_gmt":"2010-05-30T07:16:39","slug":"silverlight-4","status":"publish","type":"post","link":"https:\/\/www.themissingdocs.net\/?p=163","title":{"rendered":"Silverlight 4"},"content":{"rendered":"<p>So I&#8217;m a couple of weeks behind the times but the final silverlight 4 tools were released, so it was time to give it a spin.<\/p>\n<p>The result is <a href=\"http:\/\/www.themissingdocs.net\/LoopDeLoop.html\">http:\/\/www.themissingdocs.net\/LoopDeLoop.html<\/a><\/p>\n<p>Its a cut-down version of my win forms LoopDeLoop, but it also has a couple of features the old one didn&#8217;t &#8211; like click-drag to apply changes to multiple locations, and proper fix position support (ctrl-F\/ctrl-R\/ctrl-U).<\/p>\n<p>Silverlight 4 is noticeably better than Silverlight 2, but the errors on the designer when your custom controls fail in design mode, are a bit cryptic.\u00a0 It also took me a while to work out my ellipses were not showing because I hadn&#8217;t measured them during the measure phase.<\/p>\n<p>I haven&#8217;t made any serious changes to my actual game engine, other than having to replace SortedDictionary with something else. (I reimplemented my approximatepointset using a dictionary an equality comparer which used fmod to round values, not quite as correct but it seems to still work well enough.)<\/p>\n<p>It was interesting to see that attempting to manually capture a stacktrace (which happens just fine when you throw an exception) throws a security exception.\u00a0 Also Debug.WriteLine caused me some grief, had to remove those.<br \/>\nAlso it might be my imagination, but it seems like the silverlight runtime is noticeably slower than the normal .Net runtime.\u00a0 And the fact that ctrl-f5 on a page containing a silverlight object doesn&#8217;t cause cache-invalidation of the silverlight object itself is quite annoying.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I&#8217;m a couple of weeks behind the times but the final silverlight 4 tools were released, so it was time to give it a spin. The result is http:\/\/www.themissingdocs.net\/LoopDeLoop.html Its a cut-down version of my win forms LoopDeLoop, but it also has a couple of features the old one didn&#8217;t &#8211; like click-drag to &hellip; <a href=\"https:\/\/www.themissingdocs.net\/?p=163\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Silverlight 4<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry","category-net-stuff"],"_links":{"self":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":0,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.themissingdocs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}