<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.oosterkamp.nl/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jo-wen Mei : Expression Suite, Visual Studio</title><link>http://blogs.oosterkamp.nl/blogs/jowen/archive/tags/Expression+Suite/Visual+Studio/default.aspx</link><description>Tags: Expression Suite, Visual Studio</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>WPF &amp; Inheritance</title><link>http://blogs.oosterkamp.nl/blogs/jowen/archive/2009/01/23/wpf-amp-inheritance.aspx</link><pubDate>Fri, 23 Jan 2009 09:43:25 GMT</pubDate><guid isPermaLink="false">6da500ce-fa22-46ef-b417-4864733669f6:197</guid><dc:creator>Jo-wen</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.oosterkamp.nl/blogs/jowen/rsscomments.aspx?PostID=197</wfw:commentRss><comments>http://blogs.oosterkamp.nl/blogs/jowen/archive/2009/01/23/wpf-amp-inheritance.aspx#comments</comments><description>&lt;p&gt;Probably one of the first things you&amp;#39;ve tried is to subclass Window (or Page/UserControl/etc) and expected to get the xaml for free in derived classes...&lt;/p&gt; &lt;p&gt;This is called &amp;quot;visual inheritance&amp;quot;, and it doesn&amp;#39;t work as expected (yet)....&amp;nbsp; This is a major issue for WPF. &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Code inheritance is not a problem, and works as we&amp;#39;re used to. As everything we do in Xaml, can be done in code there&amp;#39;s no loss from a functional perspective...&amp;nbsp; it&amp;#39;s just too much work&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;So you can create an (abstract) base class that derives from Window (code only!), and derive new windows (including xaml!) from your custom base class...&lt;/p&gt; &lt;p&gt;It&amp;#39;s possible to make your base class abstract, unfortunately you loose CIDER (Visual Studio Designer) support. Blend can still create classes that are derived from an abstract class though.&lt;/p&gt; &lt;p&gt;&lt;a href="http://geekswithblogs.net/lbugnion/archive/2007/03/02/107747.aspx"&gt;Here&amp;#39;s&lt;/a&gt; an example&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Note: if you download the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a07196d1-971b-4710-99c8-d3d9603ccfcb&amp;amp;displaylang=en"&gt;Blend SP1&lt;/a&gt; you get another 60 days for your trial version :)&lt;/p&gt;&lt;img src="http://blogs.oosterkamp.nl/aggbug.aspx?PostID=197" width="1" height="1"&gt;</description><category domain="http://blogs.oosterkamp.nl/blogs/jowen/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.oosterkamp.nl/blogs/jowen/archive/tags/WPF/default.aspx">WPF</category><category domain="http://blogs.oosterkamp.nl/blogs/jowen/archive/tags/Expression+Suite/default.aspx">Expression Suite</category></item></channel></rss>