{"id":281,"date":"2007-07-21T13:17:12","date_gmt":"2007-07-21T12:17:12","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=281"},"modified":"2007-07-21T13:17:12","modified_gmt":"2007-07-21T12:17:12","slug":"familyshow-an-excellent-wpf-demo-app","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/281-familyshow-an-excellent-wpf-demo-app.html","title":{"rendered":"Family.Show &#8211; an excellent WPF demo app"},"content":{"rendered":"<p>Microsoft&#8217;s Tim Sneath <a href=\"http:\/\/blogs.msdn.com\/tims\/archive\/2007\/07\/17\/announcing-family-show-2-0.aspx\" target=\"_blank\">drew my attention<\/a> to <a href=\"http:\/\/www.vertigo.com\/familyshow.aspx\" target=\"_blank\">Family.Show<\/a>, which he describes as &#8220;our first end-to-end reference sample for WPF&#8221;. This genealogy&nbsp;application was made public three months ago, but I had not tried it before. Source code is available, and there is a <a href=\"http:\/\/www.vertigo.com\/downloads\/familyshow\/Family.Show%20-%20A%20WPF%20Reference%20Application.xps\" target=\"_blank\">white paper<\/a> [XPS] about how it was developed.<\/p>\n<p>The application feels a little unfinished, but nevertheless it is excellent. I started the application and without reading any documentation started entering my family details. I enjoyed the results and carried on longer than I had intended. It scales beautifully, both when you resize the main window, and when you use the zoom control. Another neat feature is the time slider, which lets you change the current year. As you go back in time, everyone&#8217;s age goes down and people not yet born fade into the background.<\/p>\n<p>WFP applications are&nbsp;unlike what we know as&nbsp;Windows applications. This is partly because they don&#8217;t use standard Windows controls, and partly because WPF encourages a different approach. It is more like a Flash application, and requires design skills to build.<\/p>\n<p>The paper is also a good read. Family.Show apparently uses XML Serialization to persist its genealogy files. I&#8217;m not sure this is wise, though I&#8217;m open to being convinced. I&#8217;d be inclined to use an old-fashioned relational database, which&nbsp;I suspect would perform better with large files. Another problem with XML Serialization is that it can be brittle when you want to revise the objects.<\/p>\n<p>I am always interested in performance, and&nbsp;a tip from the paper is worth highlighting. This is the huge benefit of virtualizing the ListView control, which&nbsp;means it doesn&#8217;t bother instantiating elements that are not visible.&nbsp;The team found sorting 32 times faster, filtering 70 times faster, and memory use 75% less when using a virtual list.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/familyshow.jpg\"> <\/p>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:fa6994ed-ed1b-421d-96fd-782796ff85fb\" contenteditable=\"false\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/wpf\" rel=\"tag\">wpf<\/a>, <a href=\"http:\/\/technorati.com\/tags\/windows\" rel=\"tag\">windows<\/a>, <a href=\"http:\/\/technorati.com\/tags\/family.show\" rel=\"tag\">family.show<\/a>, <a href=\"http:\/\/technorati.com\/tags\/xml%20serialization\" rel=\"tag\">xml serialization<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft&#8217;s Tim Sneath drew my attention to Family.Show, which he describes as &#8220;our first end-to-end reference sample for WPF&#8221;. This genealogy&nbsp;application was made public three months ago, but I had not tried it before. Source code is available, and there is a white paper [XPS] about how it was developed. The application feels a little &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/281-familyshow-an-excellent-wpf-demo-app.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Family.Show &#8211; an excellent WPF demo app<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80,97],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-software-development","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}