<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - XAML Abuse - Dynamic XAML generation? </title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Thu, 23 May 2013 12:31:12 GMT</pubDate>
	<lastBuildDate>Thu, 23 May 2013 12:31:12 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>11</c9:totalResults>
	<c9:pageCount>-11</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>I'm just starting to get my feet wet with XAML/WPF. What I want to get a feel for is if the code drives the XAML or if the XAML drives the code. So let's say I load a file, and I want to generate UI elements based on that file - is that something XAML can handle? </p><p>Just to be clear I'm not talking about databinding or similar. I am talking about literally being able to generate a new Text Box at runtime. This is something VB6 and C#/forms could handle with extreme reluctance (VC&#43;&#43; could handle VERY easily). Is XAML better suited to this kind of thing? </p><p>edit: <br>Just to be clear what I'm getting at - I want to know if, in theory, I could push all of my XAML out to an external file and pull that in on launch and that would be the UI of the application? Or if the user could select a theme from several and it would build the UI without a restart? </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/857ee9d19a0145cfb9f39e2800fe13e9#857ee9d19a0145cfb9f39e2800fe13e9</link>
		<pubDate>Mon, 08 Nov 2010 15:25:04 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/857ee9d19a0145cfb9f39e2800fe13e9#857ee9d19a0145cfb9f39e2800fe13e9</guid>
		<dc:creator>Manip</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ManipUni/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>You can do both.&nbsp; You can add controls at runtime from code, you can load xaml from a database and bind against it, you can generate controls at runtime, save the resultant UI as a xaml string and then reload that.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e90a4da9ea29410ca0699e2801164048#e90a4da9ea29410ca0699e2801164048</link>
		<pubDate>Mon, 08 Nov 2010 16:53:04 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e90a4da9ea29410ca0699e2801164048#e90a4da9ea29410ca0699e2801164048</guid>
		<dc:creator>PerfectPhase</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/PerfectPhase/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation#ce90a4da9ea29410ca0699e2801164048">PerfectPhase</a>: Thanks. You don't happen to know of an example/tutorial/article/blog post on that? I searched for &quot;dynamic XAML&quot; and other similar terms and aren't getting much... </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e6009075caf542e4b4039e28012761fa#e6009075caf542e4b4039e28012761fa</link>
		<pubDate>Mon, 08 Nov 2010 17:55:27 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e6009075caf542e4b4039e28012761fa#e6009075caf542e4b4039e28012761fa</guid>
		<dc:creator>Manip</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ManipUni/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation#c857ee9d19a0145cfb9f39e2800fe13e9">ManipUni</a>: Do you want to just change colors and fonts and such, or the entire interface? You can do the former very easily with styles and binding.</p><p>As far as your XAML driving the code or vice a versa, the XAML gets compiled into code on build, so it's all code at run time.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e4895df2f12e4f6aaec19e28014498c3#e4895df2f12e4f6aaec19e28014498c3</link>
		<pubDate>Mon, 08 Nov 2010 19:41:49 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/e4895df2f12e4f6aaec19e28014498c3#e4895df2f12e4f6aaec19e28014498c3</guid>
		<dc:creator>Scott</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/spivonious/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation#c857ee9d19a0145cfb9f39e2800fe13e9">ManipUni</a>: if you're willing to get really into WPF and generating controls in code, you could check out Charles Petzold's WPF book, he doesn't even introduce XAML at all until halfway through</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/1c4d256f1f754568918e9e280174d7fa#1c4d256f1f754568918e9e280174d7fa</link>
		<pubDate>Mon, 08 Nov 2010 22:37:28 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/1c4d256f1f754568918e9e280174d7fa#1c4d256f1f754568918e9e280174d7fa</guid>
		<dc:creator>contextfree</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/contextfree/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation#ce6009075caf542e4b4039e28012761fa">ManipUni</a>: these ofany help? </p><p><a href="http://geekswithblogs.net/RizwanSharp/archive/2007/12/31/deep-dive-into-xaml-part-2-of-wpf-learning-series.aspx">http://geekswithblogs.net/RizwanSharp/archive/2007/12/31/deep-dive-into-xaml-part-2-of-wpf-learning-series.aspx</a></p><p><a href="http://msdn.microsoft.com/en-us/library/ms750605.aspx">http://msdn.microsoft.com/en-us/library/ms750605.aspx</a></p><p>&nbsp;Also check out XamlWriter and XamlReader.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/c2079276dfd44335ad8f9e28017cdfe0#c2079276dfd44335ad8f9e28017cdfe0</link>
		<pubDate>Mon, 08 Nov 2010 23:06:43 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/c2079276dfd44335ad8f9e28017cdfe0#c2079276dfd44335ad8f9e28017cdfe0</guid>
		<dc:creator>PerfectPhase</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/PerfectPhase/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>XAML is equivalent to a .resx file; it's a DSL for the UI processed at compile time.</p><p>To dynamically set the UI at runtime you will have to build the object graph for the UI in code just as you would for a WinForms app. Although they are different libraries, they still come down to objects representing UI controls which are kept in an ownership graph.</p><p>Unfortunately, the .NET framework does not seem to include a WPF design surface like it contains a Winforms Design surface, otherwise you could (relatively) easily write self-editing WPF applications.</p><p>Herbie</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/4ff8b509adbf42248f0a9e2900a560c4#4ff8b509adbf42248f0a9e2900a560c4</link>
		<pubDate>Tue, 09 Nov 2010 10:02:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/4ff8b509adbf42248f0a9e2900a560c4#4ff8b509adbf42248f0a9e2900a560c4</guid>
		<dc:creator>Herbie Smith</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Dr Herbie/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>I've done precisely that in an Excel app before, which had a WPF front-end for large screen presentations. The thing you need to be googling is XamlReader. There are a few limitations with what you can do with that, but it's the easiest way. Of course you can also always create controls at runtime and use them to populate a form as required if you need something more complex.</p><p>As mentioned above, the Petzold book Code&#43;Markup is definitely worth checking out if you want to get a feel for how to do this manually.</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/0076ad44237a45428da39e2900ed2b1b#0076ad44237a45428da39e2900ed2b1b</link>
		<pubDate>Tue, 09 Nov 2010 14:23:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/0076ad44237a45428da39e2900ed2b1b#0076ad44237a45428da39e2900ed2b1b</guid>
		<dc:creator>AndyC</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/AndyC/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>Thanks everyone for your help. I will be looking at XamlReader and the MSDN/GeeksWithBlogs links. I don't have much time right now so I will look at this in much more detail on the weekend. </p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/9987fadef02a456c86989e2b00a39a56#9987fadef02a456c86989e2b00a39a56</link>
		<pubDate>Thu, 11 Nov 2010 09:55:39 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/9987fadef02a456c86989e2b00a39a56#9987fadef02a456c86989e2b00a39a56</guid>
		<dc:creator>Manip</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/ManipUni/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p><blockquote><div class="quoteText"> </p><p><a class="permalink" title="Post Permalink" href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/4ff8b509adbf42248f0a9e2900a560c4">2 days&nbsp;ago</a>, <a href="/Niners/Dr%20Herbie">Dr&nbsp;Herbie</a> wrote</p><p>XAML is equivalent to a .resx file; it's a DSL for the UI processed at compile time.</p></div></blockquote> <p></p><p>Actually I'd disagee with that a bit&nbsp; <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-1.gif?v=c9' alt='Smiley' />&nbsp; XAML is a stright OMV based object seralisation system, doesn't care what you use it for (see XamlServices.Save()) the MS-WPF grammar is the DSL for WPF.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/cca847421dfc4af99cb99e2b00db850a#cca847421dfc4af99cb99e2b00db850a</link>
		<pubDate>Thu, 11 Nov 2010 13:19:14 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/cca847421dfc4af99cb99e2b00db850a#cca847421dfc4af99cb99e2b00db850a</guid>
		<dc:creator>PerfectPhase</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/PerfectPhase/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - XAML Abuse - Dynamic XAML generation? </title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation#ccca847421dfc4af99cb99e2b00db850a">PerfectPhase</a>: I wasn't thinking in technical terms, I was thinking in it's place in the development process. &nbsp;I guess 'DSL' was the wrong phrase to use.</p><p>Herbie</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/bc390850d0624b09a3dd9e2b0103ec2d#bc390850d0624b09a3dd9e2b0103ec2d</link>
		<pubDate>Thu, 11 Nov 2010 15:46:20 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/XAML-Abuse-Dynamic-XAML-generation/bc390850d0624b09a3dd9e2b0103ec2d#bc390850d0624b09a3dd9e2b0103ec2d</guid>
		<dc:creator>Herbie Smith</dc:creator>
		<slash:comments>11</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Dr Herbie/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>