<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://discuss.mediacentersandbox.com/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>Media Center Markup Language</title><link>http://discuss.mediacentersandbox.com/forums/3/ShowForum.aspx</link><description>Discuss Media Center Markup Language (MCML), the XML declarative language for Windows Media Center Presentation Layer.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/8397.aspx</link><pubDate>Sat, 20 Sep 2008 07:24:05 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:8397</guid><dc:creator>AndyC</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/8397.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=8397</wfw:commentRss><description>&lt;P&gt;I wouldn't say that Media Center was your best option for this application!&lt;/P&gt;
&lt;P&gt;You can still use XBAP, just be aware that by Windows 7 it may not work.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR&gt;Andrew&lt;/P&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/8391.aspx</link><pubDate>Thu, 18 Sep 2008 10:41:24 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:8391</guid><dc:creator>federico.caselli</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/8391.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=8391</wfw:commentRss><description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;before XBAP was deprecated in Media Center, I was thinking to build an application with 3D animations, to drive a massage armchair. I guess this feature is unavailable using MCML. Am I right?&lt;/P&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6653.aspx</link><pubDate>Mon, 18 Feb 2008 04:44:54 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6653</guid><dc:creator>Charlie</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6653.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6653</wfw:commentRss><description>We wrote a book -- it's called the SDK. :-)</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6643.aspx</link><pubDate>Sun, 17 Feb 2008 20:10:06 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6643</guid><dc:creator>bobbyderosa</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6643.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6643</wfw:commentRss><description>Thanks for the clarification guys.&lt;br&gt;&lt;br&gt;OK, well that was an easy decision.&amp;nbsp; It's obvious MCML is the proper choice in my case. Do any of you know if there are any MCML books available? I searched amazon but came up fruitless.&lt;br&gt;&lt;br&gt;Thanks again.&lt;br&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6631.aspx</link><pubDate>Sat, 16 Feb 2008 08:30:52 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6631</guid><dc:creator>AndyC</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6631.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6631</wfw:commentRss><description>&lt;P&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;bobbyderosa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I typically do my binding in markup - unless its more complex or just makes sense to use code-behind. Does MCML not allow you to modify the UI from code?&lt;BR&gt;&lt;BR&gt;Can you provide a little more detail about the "better integration w/ Media Center" that MCML provides?&lt;BR&gt;&lt;BR&gt;Thanks for the quick reply!&lt;BR&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/P&gt;
&lt;P&gt;In WPF you can bind your XAML to the partial class that is created alongside it by putting &lt;FONT face="Courier New"&gt;this.DataContext = this&lt;/FONT&gt; in the constructor of the partial class, or you can put &lt;FONT face="Courier New"&gt;DataContext="{Binding RelativeSource={RelativeSource Self}}"&lt;/FONT&gt; in the XAML window/page element.&amp;nbsp; You can then put &lt;FONT face="Courier New"&gt;{Binding Path=propertyname, Mode=TwoWay}&lt;/FONT&gt; as the data source for your UI element (e.g. &lt;FONT face="Courier New"&gt;&amp;lt;CheckBox IsChecked="{..}"&amp;gt;&lt;/FONT&gt;), and define properties in your class firing OnPropertyChanged when the setter is accessed.&lt;/P&gt;
&lt;P&gt;In MCML you can create the properties in exactly the same way in a class (I create a class per page, with the same name as the MCML file - e.g. DisplayPage.mcml and DisplayPage.cs).&amp;nbsp; Inherit your class from ModelItem and you can then access FirePropertyChanged in your setter to notify your MCML that a property has changed.&amp;nbsp; To "bind" the code behind, pass a property into the page (I call it "Page" for some reason :) and then bind each individual property using a &amp;lt;Binding&amp;gt; rule.&lt;/P&gt;
&lt;P&gt;For integration differences, have a look at both the other comments in this post but also search for XBAP, XAML, and WPF in the forum - there are a number of posts about it.&amp;nbsp;&amp;nbsp; The biggest benefit (not mentioned in any posts that I can recall) is that the animations in MCML are much easier (IMHO) than in WPF.&amp;nbsp; The worst feature of WPF in Media Center for me is that it is overlaid on the Media Center surface rather than being in it, like MCML so the transition between Media Center and the XBAP is ugly.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR&gt;Andrew&lt;/P&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6624.aspx</link><pubDate>Sat, 16 Feb 2008 05:26:28 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6624</guid><dc:creator>soultaker</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6624.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6624</wfw:commentRss><description>To me it boils down to fidelity of graphics and animations, with mcml you get full motion graphics using XBAP on the other hand you are limited to 3 or 4 FPS. Also as noted above XBAP has been deprecated.</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6623.aspx</link><pubDate>Sat, 16 Feb 2008 00:56:18 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6623</guid><dc:creator>Charlie</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6623.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6623</wfw:commentRss><description>&lt;P&gt;Keep chatting with AndyC -- but please know we deprecated the XAML Browser Application (XBAP)&amp;nbsp;paradigm with the release of the 5.3 SDK.&lt;/P&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6622.aspx</link><pubDate>Fri, 15 Feb 2008 22:46:12 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6622</guid><dc:creator>bobbyderosa</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6622.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6622</wfw:commentRss><description>I typically do my binding in markup - unless its more complex or just makes sense to use code-behind. Does MCML not allow you to modify the UI from code?&lt;br&gt;&lt;br&gt;Can you provide a little more detail about the "better integration w/ Media Center" that MCML provides?&lt;br&gt;&lt;br&gt;Thanks for the quick reply!&lt;br&gt;</description></item><item><title>Re: MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6621.aspx</link><pubDate>Fri, 15 Feb 2008 22:16:46 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6621</guid><dc:creator>AndyC</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6621.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6621</wfw:commentRss><description>&lt;P&gt;I've used both and have to say for Media Center development I much prefer MCML.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;MCML has better integration into Media Center than WPF but the biggest reason to not use WPF is that it is deprecated in the SDK as of v5.3 - i.e. no further support for this technology, even though it may currently still work.&lt;/P&gt;
&lt;P&gt;If you've been doing your WPF development using binding in your UI and setting the DataContext to the associated partial class, then you can develop MCML in exactly the same way.&amp;nbsp; If you've been coding in the old "VB style" of directly manipulating your UI from code, then it's going to be a tougher transition.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR&gt;Andrew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>MCML vs XAML</title><link>http://discuss.mediacentersandbox.com/forums/thread/6620.aspx</link><pubDate>Fri, 15 Feb 2008 21:14:31 GMT</pubDate><guid isPermaLink="false">edf2c9e4-3a2f-48fb-a021-c4ce4a1a3ed1:6620</guid><dc:creator>bobbyderosa</dc:creator><slash:comments>0</slash:comments><comments>http://discuss.mediacentersandbox.com/forums/thread/6620.aspx</comments><wfw:commentRss>http://discuss.mediacentersandbox.com/forums/commentrss.aspx?SectionID=3&amp;PostID=6620</wfw:commentRss><description>Now that Vista Media Center can host a XAML page, what is the benefit of using MCML over XAML? I've been using WPF/XAML for a few months now and really love it - it would be nice to be able to re-use that knowledge.&lt;br&gt;&lt;br&gt;If you've used both, can you provide any insight?&lt;br&gt;</description></item></channel></rss>