<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JAPF &#187; xaml</title>
	<atom:link href="http://www.japf.fr/tag/xaml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.japf.fr</link>
	<description>Jeremy Alles Presentation Foundation: WPF, Silverlight, Windows Phone 7, Windows 8</description>
	<lastBuildDate>Fri, 27 Jan 2012 07:57:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>If you like typing XAML you will love ReSharper 6.1 !</title>
		<link>http://www.japf.fr/2012/01/if-you-like-typing-xaml-you-will-love-resharper-6-1/</link>
		<comments>http://www.japf.fr/2012/01/if-you-like-typing-xaml-you-will-love-resharper-6-1/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 17:42:25 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=1029</guid>
		<description><![CDATA[Resharper is an amazing tool for any .Net developers. The latest version 6.1 has been released just a couple of weeks ago and I wanted to share with you a brief overview of the new workflow available in the XAML world ! Visual Studio 2010 introduced 2 new design time properties: d:DesignInstance and d:DesignData. Those [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jetbrains.com/resharper/">Resharper</a> is an amazing tool for any .Net developers. The latest version 6.1 has been released just a couple of weeks ago and I wanted to share with you a brief overview of the new workflow available in the XAML world !</p>
<p>Visual Studio 2010 introduced 2 new design time properties: d:DesignInstance and d:DesignData. Those properties can be used in order to specify a design time DataContext in order to have more help during the creation of a binding.</p>
<p>For example, when you create a binding using the Property dialog of VS2010 you can browse your DataContext to select the right property (image from this <a href="http://karlshifflett.wordpress.com/2009/10/28/ddesigninstance-ddesigndata-in-visual-studio-2010-beta2/">blog post</a> from <a href="http://karlshifflett.wordpress.com/">Karl Shifflet</a>):</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/bindingbuilder_thumb.png" rel="lightbox[1029]"><img class="alignnone size-medium wp-image-1031" title="bindingbuilder_thumb" src="http://www.japf.fr/wp-content/uploads/2012/01/bindingbuilder_thumb-300x291.png" alt="" width="300" height="291" /></a></p>
<p>Resharper 6.1 is now able to use those metadata in order to improve the experience you have while typing XAML (which I personally do a LOT!). Here is how it works:</p>
<ul>
<li>you create a new ViewModel with a simple property (this property has just get/set because we don&#8217;t need much more in the context of this post&#8230;)</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/01.png" rel="lightbox[1029]"><img class="alignnone size-medium wp-image-1034" title="01" src="http://www.japf.fr/wp-content/uploads/2012/01/01-300x99.png" alt="" width="300" height="99" /></a></p>
<ul>
<li>you setup a binding in your view</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/02.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1035" title="02" src="http://www.japf.fr/wp-content/uploads/2012/01/02.png" alt="" width="514" height="126" /></a></p>
<p>At this point the ReSharper magic comes into play&#8230;</p>
<ul>
<li>ReSharper warns you the DataContext is unknown</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/02.1.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1043" title="02.1" src="http://www.japf.fr/wp-content/uploads/2012/01/02.1.png" alt="" width="565" height="126" /></a></p>
<ul>
<li>Offer the ability to fix this</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/03.png" rel="lightbox[1029]"><img title="03" src="http://www.japf.fr/wp-content/uploads/2012/01/03.png" alt="" width="545" height="271" /></a></p>
<ul>
<li>Note that like in C#, you can very easily resolve namespace issues</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/041.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1046" title="04" src="http://www.japf.fr/wp-content/uploads/2012/01/041.png" alt="" width="602" height="192" /></a></p>
<ul>
<li>Then notice that the warning is gone (the Title property is no longer underlined)</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/06.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1039" title="06" src="http://www.japf.fr/wp-content/uploads/2012/01/06.png" alt="" width="577" height="191" /></a></p>
<ul>
<li>You can now add a new binding</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/07.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1040" title="07" src="http://www.japf.fr/wp-content/uploads/2012/01/07.png" alt="" width="576" height="207" /></a></p>
<ul>
<li>You can then ask ReSharper to create the property in your ViewModel</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/08.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1041" title="08" src="http://www.japf.fr/wp-content/uploads/2012/01/08.png" alt="" width="580" height="378" /></a></p>
<ul>
<li>Choosing the first option will get you to the ViewModel definition</li>
</ul>
<p><a href="http://www.japf.fr/wp-content/uploads/2012/01/09.png" rel="lightbox[1029]"><img class="alignnone size-full wp-image-1042" title="09" src="http://www.japf.fr/wp-content/uploads/2012/01/09.png" alt="" width="417" height="242" /></a></p>
<p>Now that I&#8217;ve upgraded my installation to version 6.1, I think this is a must have !</p>
<p>That&#8217;s all for today ! Hope it helps <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2012/01/if-you-like-typing-xaml-you-will-love-resharper-6-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BUILD: Starting the BUILD series !</title>
		<link>http://www.japf.fr/2011/09/build-starting-the-build-series/</link>
		<comments>http://www.japf.fr/2011/09/build-starting-the-build-series/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 05:42:21 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[build]]></category>
		<category><![CDATA[windows8]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=933</guid>
		<description><![CDATA[In two weeks, I’ll have the chance to be part of the BUILD conference in Los Angeles. It will be my second trip to the US (my first one was in Seattle in February for the MVP summit) and I’m really looking forward. During the conference I&#8217;ll be blogging extensively to share with you the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="www.buildwindows.com"><img class="alignnone size-full wp-image-930" title="build_logo" src="http://www.japf.fr/wp-content/uploads/2011/09/build_logo.png" alt="" width="252" height="90" /></a></p>
<p>In two weeks, I’ll have the chance to be part of the BUILD conference in Los Angeles. It will be my second trip to the US (my first one was in Seattle in February for the MVP summit) and I’m really looking forward. During the conference I&#8217;ll be blogging extensively to share with you the new information.</p>
<p>BUILD is the new conference about the future of Windows. We can expect many information about Windows 8 and its new development platform. At this point we know that HTML5 will be an important aspect of this new platform, but without any doubt XAML will also be part of the game. Note that I&#8217;m not saying neither &#8220;WPF&#8221; or &#8220;Silverlight&#8221; because what is coming with Windows 8 is still unknown. It looks like XAML will be accessible from both the native  (C++) and managed (.Net) world.</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2011/09/metro.jpg" rel="lightbox[933]"><img class="alignnone size-full wp-image-935" title="metro" src="http://www.japf.fr/wp-content/uploads/2011/09/metro.jpg" alt="" width="234" height="131" /></a></p>
<p>In order to follow the event:</p>
<ul>
<li>Twitter</li>
<ul>
<li>follow me(<a href="http://twitter.com/jalpf">@jalpf</a>)</li>
<li>check the hashtag <a href="http://twitter.com/#%21/search/%23bldwin">#bldwin</a></li>
</ul>
<li>MSDN Blog</li>
<ul>
<li>the official Windows 8 blog is at <a href="http://blogs.msdn.com/b/b8/">http://blogs.msdn.com/b/b8/</a></li>
</ul>
<li>New page on my blog</li>
<ul>
<li><a href="build.japf.fr">build.japf.fr</a></li>
</ul>
</ul>
<p>Make sure to check my blog in order to have the latest information about the future of WPF, Silverlight and Windows from a .Net guy perspective !</p>
<p><a href="http://twitter.com/jalpf"><img class="alignnone size-full wp-image-337" title="twitter-blue" src="http://www.japf.fr/wp-content/uploads/2009/11/twitter-blue.png" alt="" width="80" height="60" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2011/09/build-starting-the-build-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R# can create resources for you in XAML</title>
		<link>http://www.japf.fr/2010/04/resharper-to-creates-resources-in-xaml/</link>
		<comments>http://www.japf.fr/2010/04/resharper-to-creates-resources-in-xaml/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 12:33:36 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=498</guid>
		<description><![CDATA[I was aware for some time now that R# offers some support for editing XAML but I didn&#8217;t know the following features until recently.When you create a StaticResource in XAML, R# is able to help you by generating some code for you. The famous R# &#8220;bubble&#8221; shows up offering various options to create the resource: [...]]]></description>
			<content:encoded><![CDATA[<p>I was aware for some time now that R# offers some support for editing XAML but I didn&#8217;t know the following features until recently.When you create a StaticResource in XAML, R# is able to help you by generating some code for you. The famous R# &#8220;bubble&#8221; shows up offering various options to create the resource:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/04/2.png" rel="lightbox[498]"><img class="alignnone size-full wp-image-501" title="2" src="http://www.japf.fr/wp-content/uploads/2010/04/2.png" alt="" width="507" height="191" /></a></p>
<p>Then the resource is automatically created for you:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/04/3.png" rel="lightbox[498]"><img class="alignnone size-full wp-image-502" title="3" src="http://www.japf.fr/wp-content/uploads/2010/04/3.png" alt="" width="469" height="173" /></a></p>
<p>Note that it works with converter too:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/04/4.png" rel="lightbox[498]"><img class="alignnone size-full wp-image-503" title="4" src="http://www.japf.fr/wp-content/uploads/2010/04/4.png" alt="" width="691" height="255" /></a></p>
<p>R# 5.0 has been released a couple of weeks ago. Go ahead and <a href="http://www.jetbrains.com/resharper/">grab your copy</a> !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2010/04/resharper-to-creates-resources-in-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BezierSegment demo application</title>
		<link>http://www.japf.fr/2009/07/beziersegment-demo-application/</link>
		<comments>http://www.japf.fr/2009/07/beziersegment-demo-application/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 10:00:52 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=227</guid>
		<description><![CDATA[It has been a long time since my last post, I&#8217;m must admit I was both busy and trying to find something cool to blog about. Because I&#8217;ll be in holidays tomorrow, I decided to take some time to build a sample application that demonstrates a feature of WPF I&#8217;m going to use soon. In [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a long time since my last post, I&#8217;m must admit I was both busy and trying to find something cool to blog about. Because I&#8217;ll be in holidays tomorrow, I decided to take some time to build a sample application that demonstrates a feature of WPF I&#8217;m going to use soon.</p>
<p>In the sample application (source code <a href="//www.japf.fr/wp-content/uploads/2009/07/beziersegmentdemo.zip">available here</a>), you will be able to play with the <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.beziersegment.aspx">BezierSegment</a> class. I created a simple control that wrap the BezierSegment into something more easy to visualize.The application allows you to drag and drop points and to animate the line.</p>
<p>Here is the result:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2009/07/bezierdemo.png" rel="lightbox[227]"><img class="alignnone size-medium wp-image-228" title="bezierdemo" src="http://www.japf.fr/wp-content/uploads/2009/07/bezierdemo-300x300.png" alt="bezierdemo" width="300" height="300" /></a></p>
<p>I hope you&#8217;ll like it ! The reason I&#8217;m going to use this class is in a diagramming control (like Visio) to connect shapes together&#8230;</p>
<p>Download <a href="//www.japf.fr/wp-content/uploads/2009/07/beziersegmentdemo.zip">the source code</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/07/beziersegment-demo-application/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The future of WPF at Mix09</title>
		<link>http://www.japf.fr/2009/03/the-future-of-wpf-at-mix09/</link>
		<comments>http://www.japf.fr/2009/03/the-future-of-wpf-at-mix09/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 20:27:54 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[mix09]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=178</guid>
		<description><![CDATA[MIX09 is now over and the good news is that we can watch all sessions that have been recorded online ! I didn&#8217;t have time yet to watch all sessions I&#8217;m interested in, but I already saw &#8220;What&#8221;s new in WPF 4&#8243; video (available here). Here are the important points of this session regarding the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.japf.fr/wp-content/uploads/2009/03/mix09.jpg" rel="lightbox[178]"><img class="alignnone size-full wp-image-164" title="mix09" src="http://www.japf.fr/wp-content/uploads/2009/03/mix09.jpg" alt="mix09" width="129" height="113" /></a></p>
<p>MIX09 is now over and the good news is that we can watch all sessions that have been recorded <a href="http://videos.visitmix.com/MIX09/T39F">online</a> !</p>
<p>I didn&#8217;t have time yet to watch all sessions I&#8217;m interested in, but I already saw &#8220;What&#8221;s new in WPF 4&#8243; video (available <a href="http://videos.visitmix.com/MIX09/T39F">here</a>).</p>
<p>Here are the important points of this session regarding the future of WPF:</p>
<ul>
<li>Lot of new things are coming in WPF4: <strong>Text clarity improved</strong>, <strong>Multi-touch</strong>, Windows7 integration, <strong>Ribbon </strong>control, <strong>Focus management improvements</strong>, <strong>Visual State Manager</strong>, Client profile, Themes, Chart controls and a lot of <strong>bug fixes</strong>&#8230;</li>
<li>WPF4 will come together with .Net4 which brings its own set of cool new stuff: Dynamic Language, MEF, F#, parallel library</li>
<li>WPF will be the best choise for RAD under Windows7: Multi-touch, <strong>Taskbar integration</strong>, Ribbon, <strong>Common dialogs</strong>, <strong>File explorer</strong> customization&#8230;</li>
<li><strong>Multi-touch support</strong>: UIElement changes to manage touch related events, touch support is added for some controls (ScrollViewer)</li>
<li><strong>New composition API</strong>: developers can control graphical elements cached in video memory</li>
<li>Controls that are currently available in the <a href="http://www.codeplex.com/wpf">WPF toolkit</a> will be integrated into the platform (DataGrid, DatePicker&#8230;) &#8211; moreover an update of the toolkit has just been released</li>
<li>Developers tools are improved: VS2010 and Blend3 helps the usage of WPF (databinding support&#8230;)</li>
<li>.Net4 will come with a <strong>new XAML parser</strong>: faster, extensible, public API to manage BAML format</li>
<li>.Net4 XAML language has <strong>new XAML features</strong>: support for generics, better references by name</li>
</ul>
<p>I hope will see a CTP soon so that we&#8217;ll start playing with those new features <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/03/the-future-of-wpf-at-mix09/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XAML guidelines: interviews of WPF masters</title>
		<link>http://www.japf.fr/2009/01/xaml-guidelines-interviews-from-wpf-masters/</link>
		<comments>http://www.japf.fr/2009/01/xaml-guidelines-interviews-from-wpf-masters/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 12:16:42 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[blend]]></category>
		<category><![CDATA[practises]]></category>
		<category><![CDATA[xaml]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=101</guid>
		<description><![CDATA[Getting back to work this morning, I opened my Google Reader to have a look at the RSS feeds I’m reading. I found a nice video on Channel9: “XAML Guidelines, Part 2”. The first episode, where Jaime Rodriguez interviews 3 people from Identity Mines is also available on Channel9 (unfortunately, the sound is rather poor [...]]]></description>
			<content:encoded><![CDATA[<p>Getting back to work this morning, I opened my Google Reader to have a look at the RSS feeds I’m reading.</p>
<p>I found a nice video on Channel9: <a href="http://channel9.msdn.com/shows/Continuum/XAML-Guidelines-Part-2/">“XAML Guidelines, Part 2”</a>. <a href="http://channel9.msdn.com/shows/Continuum/XAML-Guidelines-Part-1/">The first episode</a>, where Jaime Rodriguez interviews 3 people from Identity Mines is also available on Channel9 (unfortunately, the sound is rather poor on this episode…).</p>
<p>This time, Jaime meets up with Unni Ravindranathan from the Expression Blend team. During the shot, they open the Blend source code project inside Blend (sounds nice isn’t it :p). Unni explains the structure of the project, their conventions, how resources are used, etc.</p>
<p>I think Blend is an application we can learn a lot from. If you’re also interested to understand what architecture Blend uses, you can check out <a href="http://www.paulstovell.com/blog/expression-framework-versus-composite-wpf">this post</a> from Paul Stovell.</p>
<p>Here are some notes I took while watching the video:</p>
<ul>
<li>Blend is shipped with 2 themes: Expression Light &amp; Expression Dark</li>
<li>Blend resources are stored in (only !) 3 resources dictionaries</li>
<li>Resources are categorized into Colors, Brushes and Styles</li>
<li>Blend defines a set of margins and thicknesses that are used in the entire application to ensure a consistency across the different layouts</li>
<li>By convention, Name and Key properties are always defined first in the XAML</li>
<li>Properties might be spitted over several lines, if this is the case; properties are grouped together by types (style, size, appearance…)</li>
<li>Blend 3 will add extensibility and improve XAML code generation:
<ul>- Name will always be the first property</ul>
<ul>- Better control over how the XAML is formatted</ul>
</li>
<li>Name everything versus name nothing? Blend names almost everything, it helps UI automation</li>
<li>Static resources versus dynamic resources? No big performance impact, Blend mostly uses dynamic resources</li>
<li>When design time doesn’t work fine in Blend
<ul>- An exception can occur when Blend is creating the control because the running process is Blend itself and not the application we are creating</ul>
<ul>- Add tests to check if code is running in design mode (you can use System.ComponentModel.DesignerProperties.GetIsInDesignMode(DependencyObject) method)</ul>
<ul>- Debug Blend process by attaching an instance of Visual Studio to Blend</ul>
</li>
<li>Blend is a big application:
<ul>- 300 000 lines of XAML</ul>
<ul>- 500 000 lines of C#</ul>
</li>
</ul>
<p>If you want more information about fixing error that we can have in Blend (while the application works properly at run time), you can check out <a href="http://blogs.msdn.com/jaimer/archive/2007/01/21/tweaking-your-wpf-code-to-run-in-expression-blend.aspx">this post</a> of Jaime.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/01/xaml-guidelines-interviews-from-wpf-masters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

