<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.windows-now.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Rob Relyea</title><subtitle type="html">xaml:Blog</subtitle><id>http://www.windows-now.com/blogs/rrelyea/atom.aspx</id><link rel="alternate" type="text/html" href="http://www.windows-now.com/blogs/rrelyea/default.aspx" /><link rel="self" type="application/atom+xml" href="http://www.windows-now.com/blogs/rrelyea/atom.aspx" /><generator uri="http://communityserver.org" version="4.0.30618.954">Community Server</generator><updated>2006-03-06T17:58:00Z</updated><entry><title>Requests for xaml:blog should be forwarded to spaces.msn.com/rrelyea</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/MovingMyBlog.aspx" /><id>/blogs/rrelyea/MovingMyBlog.aspx</id><published>2006-04-29T16:43:00Z</published><updated>2006-04-29T16:43:00Z</updated><content type="html">I moving over to msn spaces......(&lt;a href="http://www.windows-now.com/blogs/rrelyea/MovingMyBlog.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16211" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="WinFx" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/WinFx/default.aspx" /><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>Beyond data visualization</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/BeyondDataViz.aspx" /><id>/blogs/rrelyea/BeyondDataViz.aspx</id><published>2006-04-27T03:55:00Z</published><updated>2006-04-27T03:55:00Z</updated><content type="html">&lt;P&gt;WPF has some great &lt;a href="http://www.longhornblogs.com/rrelyea/archive/2005/11/10/Auction_Data_Visualization_Demo.aspx"&gt;Data Visualization&lt;/A&gt; features.&amp;nbsp;I'm working with&amp;nbsp;&lt;A href="http://blogs.msdn.com/okoboji/default.aspx"&gt;Kevin Moore&lt;/A&gt;, other WPF teammates and people around the company to think about how we might be able to do even more with data.&amp;nbsp; We think we are on to something very nice...&lt;/P&gt;
&lt;P&gt;Hope to have more to share on this in a little while...we are having fun.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16205" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>WPF General Manager on Channel 9</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/WallentOnC9.aspx" /><id>/blogs/rrelyea/WallentOnC9.aspx</id><published>2006-04-27T03:50:00Z</published><updated>2006-04-27T03:50:00Z</updated><content type="html">&lt;P&gt;Just finished watching my boss' boss Michael Wallent talk about the forming of the Avalon team, the journey to shipping our v1, and some of the places we know we want to go in the future...Many of you will enjoy some of the history behind the forming of the Avalon team.&lt;/P&gt;
&lt;P&gt;He talks about some of our early bets: managed code, xaml, etc...&lt;/P&gt;
&lt;P&gt;Check out the video: &lt;A href="http://channel9.msdn.com/Showpost.aspx?postid=185468"&gt;http://channel9.msdn.com/Showpost.aspx?postid=185468&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;I've been in Michael's org ever since I joined as a PM in the IE5 team...he is very passionate about technology and our customers.&amp;nbsp; Fun to work with.&lt;/P&gt;
&lt;P&gt;We'll watch for your comments on Channel 9, feel free to ask questions/post comments&amp;nbsp;here as well...&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16203" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>Early notice of a change to WPF templates: "MyApp.xaml" to "App.xaml"</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/MyAppChangingToApp.aspx" /><id>/blogs/rrelyea/MyAppChangingToApp.aspx</id><published>2006-04-14T00:50:00Z</published><updated>2006-04-14T00:50:00Z</updated><content type="html">&lt;P&gt;Just a quick note to book authors, users, and anybody else who cares.&lt;/P&gt;
&lt;P&gt;I'm communicating early because...well, why wait?&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;&lt;U&gt;Microsoft Tools and MyApp.xaml&lt;/U&gt;&lt;/STRONG&gt;&lt;BR&gt;The VS "Orcas" team and&amp;nbsp;Expression Interactive Designer team plan to change&amp;nbsp;a few things about the default files created when you create a new WPF project.&amp;nbsp; You'll likely see the change in VS next CTP...EID will come the release after that.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Today's Model&lt;/U&gt;&lt;BR&gt;Today, VS "Orcas"&amp;nbsp;creates a MyApp.xaml file with the following&amp;nbsp;root element:&lt;BR&gt;&amp;amp;lt;Application x:Class="ProjectName.MyApp" ...&amp;amp;gt;&lt;/P&gt;
&lt;P&gt;Today,&amp;nbsp;EID ("Sparkle") creates an Application.xaml file with the following root element:&lt;BR&gt;&amp;amp;lt;Application x:Class="ProjectName.MainApplication" ...&amp;nbsp;&amp;amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Next CTP's model&lt;BR&gt;&lt;/U&gt;Those teams have decided to move to a consistent model.&amp;nbsp; The file will be called App.xaml and will look like this:&lt;BR&gt;&amp;amp;lt;Application x:Class="ProjectName.App" ... &amp;amp;gt;&lt;BR&gt;&amp;amp;lt;/Application&amp;amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;What should you do?&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Tool authors - you likely want to be consistent with this change.&lt;BR&gt;Book authors - you probably want to update your examples.&lt;BR&gt;Users - you can rename your files and x:Class attribute value&amp;nbsp;if you like...although there is no need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Manual steps to Change an existing project (if you want to)&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;To change your project in EID:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;1) right click on Application.xaml, rename to App.xaml&lt;BR&gt;2) right click on Application.xaml.cs or Application.xaml.vb, rename to App.xaml.cs or App.xaml.vb&lt;BR&gt;3) in App.xaml, change x:Class="UntitledProject1.MainApplication" to x:Class="UntitledProject1.App"&lt;BR&gt;4) if C# project, in App.xaml.cs:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;change from:&lt;BR&gt;public partial class MainApplication: System.Windows.Application&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;change to:&lt;BR&gt;public partial class App: System.Windows.Application&lt;BR&gt;5) if&amp;nbsp;VB project, in App.xaml.vb:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;change from:&lt;BR&gt;Partial Public Class MainApplication&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits System.Windows.Application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;change to:&lt;/P&gt;
&lt;P&gt;Partial Public Class&amp;nbsp;App&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits System.Windows.Application&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;To change your project in VS "Orcas":&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;1) right click on MyApp.xaml, rename to App.xaml&lt;BR&gt;2) right click on Application.xaml.cs or Application.xaml.vb, rename to App.xaml.cs or App.xaml.vb&lt;BR&gt;3) in App.xaml, change x:Class="ProjectName.MyApp" to x:Class="ProjectName.App"&lt;BR&gt;4) if C# project, in App.xaml.cs:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;change from:&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;partial&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;MyApp&lt;/FONT&gt;&lt;FONT size=2&gt; : &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Application&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;change to:&lt;BR&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;partial&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;class&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;App&lt;/FONT&gt;&lt;FONT size=2&gt; : &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Application&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;5) if&amp;nbsp;VB project, in App.xaml.vb:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;change from:&lt;BR&gt;Partial Public Class&amp;nbsp;MyApp&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;change to:&lt;/P&gt;
&lt;P&gt;Partial Public Class&amp;nbsp;App&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits Application&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Please let us know if you have questions/issues.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16136" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>WPF application update w/ Petzold</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/SoftwareUpdates.aspx" /><id>/blogs/rrelyea/SoftwareUpdates.aspx</id><published>2006-04-13T14:54:00Z</published><updated>2006-04-13T14:54:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://www.charlespetzold.com/"&gt;Charles Petzold&lt;/A&gt; has been generating many interesting &lt;A href="http://www.charlespetzold.com/blog/blog.xml"&gt;blog posts&lt;/A&gt; dealing with WPF/XAML.&lt;/P&gt;
&lt;P&gt;As part of his book writing effort (&lt;A href="http://www.charlespetzold.com/wpf/index.html"&gt;Applications = Markup +Code&lt;/A&gt;), he even created a XAMLPad like application called XAML Cruncher.&amp;nbsp; It added a number of interesting features over XAMLPad (open, save as, etc...).&lt;/P&gt;
&lt;P&gt;He just made his &lt;A href="http://www.charlespetzold.com/blog/2006/04/120645.html"&gt;first updates&lt;/A&gt; to the application, and when I ran it I was prompted to see if I wanted to install the update. Nice way to keep software up to date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to try XAML Cruncher, install it from this &lt;A href="http://www.charlespetzold.com/wpf/index.html"&gt;page&lt;/A&gt;. (It requires the FebCTP of WinFX).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Charles - I'm looking forward to your book.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16134" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="WinFx" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/WinFx/default.aspx" /></entry><entry><title>IE7 Search Bar + OpenSearch</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/IE7Search.aspx" /><id>/blogs/rrelyea/IE7Search.aspx</id><published>2006-04-07T15:17:00Z</published><updated>2006-04-07T15:17:00Z</updated><content type="html">&lt;P&gt;I'm loving the work many of my former teammates (I was an IE PM working on DHTML's programmibility from IE5 to IE6)&amp;nbsp;are doing over on IE7.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Keyboard (or mouse)&amp;nbsp;shortcuts I like:&lt;BR&gt;&lt;/U&gt;&lt;/STRONG&gt;ctrl-t -&amp;nbsp;opens a&amp;nbsp;new tab&lt;BR&gt;ctrl-click on a link (opens in a new tab in the background)&lt;BR&gt;ctrl-e, moves keyboard focus to the search box, type your term, then:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;1) enter to navigate the current tab&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;2) alt-enter to navigate a new tab&lt;BR&gt;See more at the &lt;A href="http://blogs.msdn.com/ie/archive/2006/02/08/527702.aspx"&gt;Keyboard Lover's Guide to IE7&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Search Providers&lt;/U&gt;&lt;/STRONG&gt;&lt;BR&gt;Adding&amp;nbsp;search providers is nice: &lt;A href="http://blogs.msdn.com/ie/archive/2005/09/14/466186.aspx"&gt;http://blogs.msdn.com/ie/archive/2005/09/14/466186.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Search on this site&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Navigate to a site with a &amp;amp;lt;link /&amp;amp;gt; tag pointing to information about their search, and it shows up in the drop down box next to search...&lt;/P&gt;
&lt;P&gt;For instance...go to &lt;A href="http://live.com/"&gt;live.com&lt;/A&gt; and see how the drop down changes. (it changes color and adds some choices in the drop down...)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Install IE7 Preview?&lt;BR&gt;&lt;/U&gt;&lt;/STRONG&gt;If you haven't tried IE7, now may be a good time:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="http://www.microsoft.com/windows/ie/ie7/default.mspx"&gt;Internet Explorer 7 Beta 2 Preview - released on March 20th&lt;/A&gt;.&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16103" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author></entry><entry><title>Check out Fil's Thailand demo app on C9</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/FilOnC9.aspx" /><id>/blogs/rrelyea/FilOnC9.aspx</id><published>2006-04-05T00:42:00Z</published><updated>2006-04-05T00:42:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://filfortes.com/work"&gt;Fil&lt;/A&gt;&amp;nbsp;is on Channel9 doing a &lt;A href="http://channel9.msdn.com/Showpost.aspx?postid=179095"&gt;demo of building an application in WPF&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This is based on the demo he did at Mix06 for developers...&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16092" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>XAML and IL</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/XamlAndIL.aspx" /><id>/blogs/rrelyea/XamlAndIL.aspx</id><published>2006-03-28T13:42:00Z</published><updated>2006-03-28T13:42:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://www.itwriting.com/blog"&gt;Tim Anderson&lt;/A&gt; asked a &lt;A href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=320584&amp;amp;SiteID=1"&gt;question&lt;/A&gt; on the MSDN forum for WPF.&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;
&lt;P&gt;&amp;nbsp;I'm not 100% clear about the relationship between XAML and IL. As far as I can tell, you can compile XAML but it ends up as BAML rather than IL. Equally, my understanding is that anything you can do in XAML you can also do in C# (declarative vs procedural).&lt;/P&gt;
&lt;P&gt;If so, presumably it would be possible to compile XAML to IL, even if this is not what happens.&amp;nbsp;Another interesting question: if C# compiles&amp;nbsp;to IL, but XAML does not, then what are the pros and cons - eg. performance?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In WPF, XAML can be used a few ways.&lt;/P&gt;
&lt;P&gt;A) Compiled into the assembly&lt;BR&gt;Use &amp;lt;Page Include="Page1.xaml" /&amp;gt; in a .csproj/.vbproj file to get it compiled into the assembly.&amp;nbsp; (It will be stored as a .baml file...and it will have a corresponding .g.cs/.g.vb file).&lt;/P&gt;
&lt;P&gt;B) Included in the assembly&lt;BR&gt;Use &amp;lt;Resource Include="Page1.xaml" /&amp;gt; in a .csproj/.vbproj file to get it included in the assembly, but left as a XAML text file.&lt;/P&gt;
&lt;P&gt;C) Distributed with the app, but not in the assembly.&lt;BR&gt;Use &amp;lt;Content Include="Page.xaml" /&amp;gt; in a .csproj/.vbproj file to make sure click-once knows about the file (it is listed in the .exe.manifest) and will be distributed with the exe.&lt;/P&gt;
&lt;P&gt;D) Loose in the world&lt;BR&gt;Don't put it in your .csproj/.vbproj...put it up on some server or in the file system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In WPF, we only support event wiring/code with A.&lt;/P&gt;
&lt;P&gt;A few blog posts that go into more details about this include:&lt;/P&gt;
&lt;P&gt;A) &lt;a href="http://www.longhornblogs.com/rrelyea/archive/2005/04/27/CodingStyles.aspx"&gt;3 Coding Styles for Avalon Applications&lt;/A&gt;&lt;BR&gt;B) &lt;a href="http://www.longhornblogs.com/rrelyea/archive/2004/01/31/2306.aspx"&gt;MarkupCompilation: XAML, BAML, .g.cs Details&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Yes, XAML could be compiled into all code instead of half BAML and .g.cs (in fact we used to do it that way).&lt;/P&gt;
&lt;P&gt;XPS has chosen to distribute XAML in text form in an XPS file.&amp;nbsp; XPS doesn't support having IL in the XPS file.&lt;BR&gt;Most WPF applications will use compiled XAML.&lt;BR&gt;WPF/E will likely use an approach similar to XPS (storing XAML in text form), but will have to solve the addition of IL.&lt;/P&gt;
&lt;P&gt;XPS chose to keep XAML as an XML file because it was easier for different devices/printers to consume or create.&lt;BR&gt;WPF chose to compile XAML for the perf benefit.&lt;BR&gt;WPF/E plans to keep XAML as an XML file.&amp;nbsp; They will get smaller download sizes than WPF since they will be in a .zip file.&amp;nbsp; Parsing performance can be faster if you do work ahead of time (like we do with BAML).&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16071" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /></entry><entry><title>XAML Language and XAML Formats</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/XamlLanguageAndFormats.aspx" /><id>/blogs/rrelyea/XamlLanguageAndFormats.aspx</id><published>2006-03-27T19:55:00Z</published><updated>2006-03-27T19:55:00Z</updated><content type="html">&lt;P&gt;There are several ways that people use the term&amp;nbsp;XAML:&lt;/P&gt;
&lt;P&gt;1) &lt;STRONG&gt;XAML Language&lt;/STRONG&gt; - the core language.&amp;nbsp; This defines how a XamlReader treats elements, attributes and content in an XML file to represent a tree of objects.&amp;nbsp;One mapping is to CLR based objects.&lt;/P&gt;
&lt;P&gt;We haven't yet published the XAML Language spec.&amp;nbsp; Chuck's &lt;A href="http://www.removingalldoubt.com/CategoryView.aspx/XAML"&gt;XAML posts&lt;/A&gt; (in reverse order) provide a good start.&lt;/P&gt;
&lt;P&gt;2) &lt;STRONG&gt;WPF XAML&lt;/STRONG&gt; - the set of elements which describe Windows Presentation Foundation based content - Vector Graphics, Controls, 3D, Documents, etc...&lt;/P&gt;
&lt;P&gt;The best reference on &lt;A href="http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wpf_conceptual/html/f667bd15-2134-41e9-b4af-5ced6fafab5d.asp"&gt;WPF XAML&lt;/A&gt; is the Windows SDK.&lt;BR&gt;&lt;BR&gt;3) &lt;STRONG&gt;XPS XAML &lt;/STRONG&gt;- a subset of WPF XAML which has been published as part of independent specification, the&amp;nbsp;open XML Paper Specification (XPS), which describes the architecture of the XPS Document file format—a paginated representation of electronic paper that is based on XML.&lt;/P&gt;
&lt;P&gt;Note that the XPS spec uses a subset of WPF XAML elements and also constrains the use of some of the XAML Language features (for example, XPS specifies some property values must be set via attribute syntax or property element syntax...while normally XAML allows either to be used.)&lt;/P&gt;
&lt;P&gt;Xml Paper Specification.&amp;nbsp; &lt;A href="http://www.microsoft.com/whdc/xps"&gt;Overview&lt;/A&gt;.&amp;nbsp; &lt;A href="http://www.microsoft.com/whdc/xps/downloads.mspx"&gt;Spec Download&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;4) "&lt;STRONG&gt;WPF/E" XAML&lt;/STRONG&gt; - WPF/Everywhere - a subset of WPF XAML which will be release for cross platform use.&amp;nbsp; For example, current plans call for no 3D and fewer Controls in WPF/E XAML.&lt;/P&gt;
&lt;P&gt;WPF/E XAML has been talked about in some detail in this &lt;A href="http://blogs.msdn.com/mharsh/archive/2006/03/23/559106.aspx"&gt;blog post&lt;/A&gt; and&amp;nbsp;at&amp;nbsp;Joe Stegman's&amp;nbsp;&lt;A href="http://blogs.msdn.com/mharsh/archive/2006/03/24/559923.aspx"&gt;presentation at Mix06&lt;/A&gt;.&lt;BR&gt;&lt;BR&gt;5) &lt;STRONG&gt;WF XAML&lt;/STRONG&gt; - the series of elements which describe &lt;A href="http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/WF_GettingStarted/html/feaec6ba-1653-434a-b0c3-c6d27b5fe540.asp"&gt;Windows Workflow&lt;/A&gt; based content - Activities, etc...&lt;/P&gt;
&lt;P&gt;&lt;a href="http://www.longhornblogs.com/rrelyea/archive/2006/03/26/XamlForWorkflow.aspx"&gt;More Info.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[I plan to&amp;nbsp;keep growing this list and the detail on each of topics.]&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16069" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /></entry><entry><title>C++ applications using XAML</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/NishCppXaml.aspx" /><id>/blogs/rrelyea/NishCppXaml.aspx</id><published>2006-03-27T03:34:00Z</published><updated>2006-03-27T03:34:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://blog.voidnish.com/"&gt;Nish&lt;/A&gt; is starting to use WPF with C++.&lt;BR&gt;He &lt;A href="http://blog.voidnish.com/?p=119"&gt;posts &lt;/A&gt;about using C++ and XamlReader.Load together.&lt;/P&gt;
&lt;P&gt;There are 3 main ways that an application can use XAML.&amp;nbsp; Nish referred to one of them (code + compiled markup) and shows off another (code + markup using XamlReader at runtime).&lt;BR&gt;See &lt;a href="http://www.longhornblogs.com/rrelyea/archive/2005/04/27/CodingStyles.aspx"&gt;3 Coding Styles of an Avalon Application&lt;/A&gt;&amp;nbsp;(note, some syntax may have changed...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16065" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /></entry><entry><title>Short Video showing basic XAML and Databinding</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/DataInWPF.aspx" /><id>/blogs/rrelyea/DataInWPF.aspx</id><published>2006-03-27T03:21:00Z</published><updated>2006-03-27T03:21:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://davidbetz.net/winfx"&gt;David Betz&lt;/A&gt; posts a nice &lt;A href="http://davidbetz.net/winfx/2006/03/using-xaml-to-represent-objects.aspx"&gt;video demo&lt;/A&gt; of some basic Databinding in XAML.&lt;/P&gt;
&lt;P&gt;Few notes that I took about the demo:&lt;/P&gt;
&lt;P&gt;1) The color capture of the video didn't make the gradient look very good.&amp;nbsp; Very banded.&amp;nbsp; Yes, it wasn't going to look much prettier...but at least the gradient will look a bit smoother.&lt;/P&gt;
&lt;P&gt;2) David was using a build previous to the Feb CTP...one major difference in Feb CTP would be that you wouldn't need the Mapping PI that he used...instead you would just use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;xmlns:nwcollection="clr-namespace:Northwind.DAL.CollectionClasses;assembly=Northwind.DAL"&lt;/P&gt;
&lt;P&gt;3) David hacks on his object to make it available declaratively.&amp;nbsp; He adds a property.&amp;nbsp; (note, he could have used attribute syntax for that property...instead of Property Element syntax like he does).&amp;nbsp; In order to make an object be expressable in XAML, do the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;a) make it have a default constructor.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;b) make its state settable via properties only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more on WPF databinding, I can recommend:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://microsoft.sitestream.com/PDC05/PRS/PRS324_files/Default.htm#nopreload=1&amp;amp;autostart=1"&gt;Namita Gupta's PDC talk&lt;/A&gt; (September 2005)&lt;BR&gt;&lt;A href="http://www.beacosta.com/"&gt;Beatriz Costa&lt;/A&gt; - a WPF team member blogging on Databinding.&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16063" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="Avalon" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/Avalon/default.aspx" /></entry><entry><title>XAML used for Windows Workflow</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/XamlForWorkflow.aspx" /><id>/blogs/rrelyea/XamlForWorkflow.aspx</id><published>2006-03-27T02:41:00Z</published><updated>2006-03-27T02:41:00Z</updated><content type="html">&lt;P&gt;The WPF and WF teams have worked together to make sure our markup formats are both XAML.&lt;/P&gt;
&lt;P&gt;See a bit about using XAML for Workflow in this &lt;A href="http://odetocode.com/Articles/448.aspx"&gt;article&lt;/A&gt;.&amp;nbsp; Comments on the article should go on this &lt;A href="http://odetocode.com/Blogs/scott/archive/2006/03/26/3175.aspx"&gt;post&lt;/A&gt; from &lt;A href="http://odetocode.com/Blogs/scott"&gt;K. Scott Allen&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Only one (very minor) problem I saw in the article...Grid.Row and Grid.Column start at 0, not 1.&amp;nbsp; WPF should have thrown an exception, I would think in that case...not sure why we don't.&amp;nbsp; I'll check why we aren't throwing now...&lt;/P&gt;
&lt;P&gt;What other declarative formats would work well being described in XAML?&amp;nbsp; Would love to hear your thoughts/feelings on that...&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16062" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="XAML" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/XAML/default.aspx" /></entry><entry><title>IBloks.com interview/demo from Mix06</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/IBloksIntro.aspx" /><id>/blogs/rrelyea/IBloksIntro.aspx</id><published>2006-03-20T23:50:00Z</published><updated>2006-03-20T23:50:00Z</updated><content type="html">&lt;P&gt;Just watched a short &lt;A href="http://blog.mix06.com/virtualmix/archive/2006/03/15/iBloks.aspx"&gt;interview&lt;/A&gt; with &lt;A href="http://www.ibloks.com/"&gt;&lt;FONT color=#800080&gt;IBloks&lt;/FONT&gt;&lt;/A&gt; showing off their new WPF application.&amp;nbsp; I like Dancing man.&amp;nbsp; I'm going to sign up for the beta...looking at their site it looks like they will sell backgrounds for $.99 and a game for $9.99 and media.&amp;nbsp; Interesting...&lt;/P&gt;
&lt;P&gt;(updated link to interview...was broken...)&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16021" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author><category term="WinFx" scheme="http://www.windows-now.com/blogs/rrelyea/archive/tags/WinFx/default.aspx" /></entry><entry><title>Watching Mix06 from Redmond</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/Mix06Keynotes.aspx" /><id>/blogs/rrelyea/Mix06Keynotes.aspx</id><published>2006-03-20T15:48:00Z</published><updated>2006-03-20T15:48:00Z</updated><content type="html">&lt;P&gt;This morning I'm looking forward to watching the &lt;A href="http://mix06.com"&gt;Mix06&lt;/A&gt; online.&lt;BR&gt;I'm keeping my head down on work I have on my plate for a while, so I'm not attending.&amp;nbsp; :-(&lt;/P&gt;
&lt;P&gt;I'll be following as much of the content as I can at &lt;A href="http://blog.mix06.com/virtualmix/"&gt;VirtualMix&lt;/A&gt;.&amp;nbsp; I'm back to subscribing to blog feeds using IE7's interface...just subscribed to the &lt;A href="http://blog.mix06.com/virtualmix/rss.aspx"&gt;RSS feed.&lt;/A&gt;&amp;nbsp; Rumor has it that a new build of IE7 may be coming out with Mix.&amp;nbsp; Haven't checked internally to see if that is true...but I'll be upgrading if it is.&amp;nbsp;&lt;BR&gt;&lt;BR&gt;Update: Bill just said&amp;nbsp;it is available today...get &lt;A href="http://www.microsoft.com/windows/ie/ie7/"&gt;it&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I just upgraded my wife's computer to it last week.&amp;nbsp; We went away for a ski weekend so she hasn't put much time in on it yet...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bill's keynote: (9am PST)&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;
&lt;P&gt;
&lt;TABLE cellSpacing=0 cellPadding=0&gt;

&lt;TR&gt;
&lt;TD&gt;•&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://metahost.savvislive.com/microsoft/20060320/mix_gates_20060320_56.asx"&gt;56K&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;•&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://metahost.savvislive.com/microsoft/20060320/mix_gates_20060320_100.asx"&gt;100K&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;•&lt;/TD&gt;
&lt;TD&gt;&lt;A href="http://metahost.savvislive.com/microsoft/20060320/mix_gates_20060320_300.asx"&gt;300K&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Dean's keynote: (after Bill)&lt;/P&gt;
&lt;BLOCKQUOTE dir=ltr&gt;
&lt;P&gt;&lt;A href="http://metahost.savvislive.com/microsoft/20060320/mix_gates_20060320_56.asx"&gt;56K&lt;/A&gt;&lt;BR&gt;&lt;A href="http://metahost.savvislive.com/microsoft/20060320/mix_gates_20060320_100.asx"&gt;100K &lt;/A&gt;&lt;BR&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Michael Wallent, Fil Fortes and Robert Ingebretsen have WPF focused talks.&amp;nbsp; More on that when I find links...&lt;/P&gt;
&lt;P&gt;If you are there...would love to hear what you think about the conference, keynotes, sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=16020" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author></entry><entry><title>Windows Vista DWM (Desktop Window Manager) Details</title><link rel="alternate" type="text/html" href="/blogs/rrelyea/VistaDWM.aspx" /><id>/blogs/rrelyea/VistaDWM.aspx</id><published>2006-03-06T17:58:00Z</published><updated>2006-03-06T17:58:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://blogs.msdn.com/greg_schechter/"&gt;Greg Schechter&lt;/A&gt; rejoins us after a lengthy blogging pause to describe &lt;A href="http://blogs.msdn.com/greg_schechter/archive/2006/03/05/544314.aspx"&gt;profound changes&lt;/A&gt;&amp;nbsp;how Windows Applications render to the screen.&lt;/P&gt;
&lt;P&gt;Greg has contributed a lot to the architecture of WPF.&amp;nbsp; You may have seen Greg, &lt;A href="http://www.simplegeek.com/"&gt;Chris Anderson&lt;/A&gt;, and Jeff Bogdan's talk at the October 2005 PDC.&amp;nbsp; I don't think the session will be available online past April...so catch it soon if you desire.&lt;/P&gt;
&lt;P&gt;
&lt;TABLE&gt;

&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT size=2&gt;&amp;nbsp; &lt;/FONT&gt;&lt;A href="http://microsoft.sitestream.com/PDC05/PRS/PRS435.htm#nopreload=1&amp;amp;autostart=1"&gt;&lt;FONT size=2&gt;PRS435: Going under the Hood to Understand the Architecture&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;(link stolen from Fil's &lt;A href="http://fortes.com/2005/10/25/pdcvideos/"&gt;list of WPF PDC talks&lt;/A&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=15973" width="1" height="1"&gt;</content><author><name>rrelyea</name><uri>http://www.windows-now.com/members/rrelyea/default.aspx</uri></author></entry></feed>