
{"id":652,"date":"2010-11-03T02:44:19","date_gmt":"2010-11-03T06:44:19","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=652"},"modified":"2010-11-03T02:44:19","modified_gmt":"2010-11-03T06:44:19","slug":"wpfsilverlight-convergence-is-a-myth","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=652","title":{"rendered":"WPF\/Silverlight Convergence is a Myth"},"content":{"rendered":"<p>I remember reading on Microsoft web site that although WPF and Silverlight are different technologies, their libraries will eventually converge.<\/p>\n<p>While this might be a declared goal, it by no means is a high priority. I recently tried to quickly port my very simple WPF demo application to Silverlight 4. What did I find?<\/p>\n<p>&#8211; <b>There is no BooleanToVisibilityConverter<\/b>. It&#8217;s a very simple and useful class, takes maybe 20 lines of code. They just did not care to include it.<\/p>\n<p>&#8211; <b>Label control is not in main Silverlight libraries, but in the &#8220;SDK&#8221;.<\/b> Come on. I would understand if that was Calendar, or something else which is heavy and rarely used. But Label? This makes reusing XAML between WPF and SDK difficult, since Label is quite common, and in Silverlight it is sdk:Label.<\/p>\n<p>&#8211; <b>There is no IsDefault property on buttons.<\/b> I am not sure, maybe keyboard handling is very different in SL. But still, looks very strange. Shouldn&#8217;t something happen when you press ENTER? Why can&#8217;t it be a button command?<\/p>\n<p>&#8211; <b>There is no Visibility.Hidden<\/b>. Well, maybe that complicated layout management and they through it away, or something. Again, makes porting code difficult.<\/p>\n<p>As I said, some of these differences may have deep rooted reasons, but BooleanToVisibilityConverter?! I will be very surprised if it&#8217;s something philosophical. They just did not give it a priority.<br \/>\n<a style=\"display:none\" href=\"http:\/\/www.codeproject.com\/script\/Articles\/BlogFeedList.aspx?amid=1181663\" rel=\"tag\">CodeProject<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I remember reading on Microsoft web site that although WPF and Silverlight are different technologies, their libraries will eventually converge. While this might be a declared goal, it by no <a href=\"https:\/\/ikriv.com\/blog\/?p=652\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[19,12],"tags":[],"class_list":["entry","author-ikriv","post-652","post","type-post","status-publish","format-standard","category-silverlight","category-wpf"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=652"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/652\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}