<?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; Visual Stutio</title>
	<atom:link href="http://www.japf.fr/category/visual-stutio/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>Visual Studio 2010 and HW acceleration on Windows XP&#8230;</title>
		<link>http://www.japf.fr/2011/03/visual-studio-2010-and-hw-acceleration-on-windows-xp/</link>
		<comments>http://www.japf.fr/2011/03/visual-studio-2010-and-hw-acceleration-on-windows-xp/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 07:46:48 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=817</guid>
		<description><![CDATA[Last week during the MVP summit in Seattle we&#8217;d the confirmation that the SP1 of Visual Studio was almost ready and today we&#8217;ve more details: &#8220;Visual Studio 2010 Service Pack 1 will be available March 9th for download for MSDN Subscribers, and will be generally available for download on March 10th, 2011&#8221; [from G.Duthie's blog [...]]]></description>
			<content:encoded><![CDATA[<p>Last week during the MVP summit in Seattle we&#8217;d the confirmation that the SP1 of Visual Studio was almost ready and today we&#8217;ve more details: &#8220;<em>Visual Studio 2010 Service Pack 1 will be available March 9th for <a href="http://msdn.microsoft.com/subscriptions/downloads/">download for MSDN Subscribers</a>, and will be <a href="http://go.microsoft.com/fwlink/?LinkId=209902">generally available for download</a> on March 10th, 2011</em>&#8221; [from <a href="http://blogs.msdn.com/b/gduthie/archive/2011/03/08/visual-studio-2010-sp1-available-march-8th-for-msdn-subscribers-general-availability-march-10th.aspx">G.Duthie's blog on MSDN</a>].</p>
<p><em>&#8220;While the Service Pack is mostly focused on improvements in response to  feedback on Visual Studio 2010, one new feature I want to highlight is  the integration of IIS Express into Visual Studio 2010. IIS Express,  which was introduced with the new Microsoft WebMatrix editor, is a  lightweight, yet full-featured version of IIS that can run without  administrative permissions.&#8221;</em></p>
<p>Another important thing to notice about the SP1, is that <strong>it will disable the hardware acceleration of the IDE on Windows XP</strong>. Yes, you read correctly, despite WPF&#8217;s support for accelerated graphics, this feature will be disabled on XP (for VS only).</p>
<p><br/></p>
<h2>Background</h2>
<p>When the version 3.5 of the .Net framework was released, Microsoft added a new software rendering engine in case the hardware was not able to do the job. This feature could be enabled at the Window level using the following code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p817code3'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8173"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p817code3"><pre class="csharp" style="font-family:monospace;">HwndSource hwndSource <span style="color: #008000;">=</span> PresentationSource<span style="color: #008000;">.</span><span style="color: #0000FF;">FromVisual</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#41;</span> <span style="color: #0600FF; font-weight: bold;">as</span> HwndSource<span style="color: #008000;">;</span>
HwndTarget hwndTarget <span style="color: #008000;">=</span> hwndSource<span style="color: #008000;">.</span><span style="color: #0000FF;">CompositionTarget</span><span style="color: #008000;">;</span>
hwndTarget<span style="color: #008000;">.</span><span style="color: #0000FF;">RenderMode</span> <span style="color: #008000;">=</span> RenderMode<span style="color: #008000;">.</span><span style="color: #0000FF;">SoftwareOnly</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p>With WPF4, this is now possible at the Process level using a single line of code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p817code4'); return false;">View Code</a> CHSARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8174"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p817code4"><pre class="chsarp" style="font-family:monospace;">RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly</pre></td></tr></table></div>

<p>Another trick you can use in your application is to determine whether your application is currently using hardware acceleration. You can do that by looking at the <a href="http://msdn.microsoft.com/en-us/library/system.windows.media.rendercapability.tier.aspx">RenderCapability.Tier</a> enumeration.</p>
<p><br/></p>
<h2>In your applications running on XP&#8230;</h2>
<p>Now the immediate question that might come in your mind is: <em>&#8220;If VS2010 is disabling HW acceleration on XP, should I do the same on my WPF application which is shipped on XP too ?&#8221;</em></p>
<p>I guess the answer is &#8220;maybe&#8221; and it actually depends on various factors:</p>
<ul>
<li>does your user reported crash that seems correlated to video drivers issue ?</li>
<li>does your application extensively uses complex graphical effects (for example this is clearly not the case in VS2010) ?</li>
<li>what kind of hardware your users are using. Is this recent hardware (which are being downgraded to XP) or is this really old hardware ?</li>
</ul>
<p>Maybe a good option is to let the user change this settings (while having a default value). In VS2010, you&#8217;ll be able to turn on HW acceleration back by using the settings dialog:</p>
<p><em><a href="http://www.japf.fr/wp-content/uploads/2011/03/settings-vs2010.png" rel="lightbox[817]"><img class="alignnone size-full wp-image-820" title="settings-vs2010" src="http://www.japf.fr/wp-content/uploads/2011/03/settings-vs2010.png" alt="" width="482" height="280" /></a><br />
</em></p>
<p>Anyway, I thought at the beginning it was a very weird decision. But after all; if the majority of the crashes they see in VS on Windows XP is linked to bad drivers, it makes sense.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2011/03/visual-studio-2010-and-hw-acceleration-on-windows-xp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MSDN Ultimate Subscription Giveaway</title>
		<link>http://www.japf.fr/2010/09/msdn-ultimate-subscription-giveaway/</link>
		<comments>http://www.japf.fr/2010/09/msdn-ultimate-subscription-giveaway/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 06:44:00 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[Windows Phone]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=650</guid>
		<description><![CDATA[As a Microsoft MVP for this year, I got 3 MSDN Ultimate Subscriptions to share with friends and co-workers. I already gave 2 of them to co-workers and I’d like to offer the last one to one of my reader ! The “official” pricing for the MSDN Ultimate Subscription is $11,899. The subscription is valid [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="98"><a href="http://www.japf.fr/wp-content/uploads/2010/09/IMG_0833.jpg" rel="lightbox[650]"><img title="IMG_0833" border="0" alt="IMG_0833" src="http://www.japf.fr/wp-content/uploads/2010/09/IMG_0833_thumb.jpg" width="99" height="130" /></a></td>
<td valign="top" width="302">As a Microsoft MVP for this year, I got 3 MSDN Ultimate Subscriptions to share with friends and co-workers. I already gave 2 of them to co-workers and I’d like to offer the last one to one of my reader !</td>
</tr>
</tbody>
</table>
<p>The “official” pricing for the MSDN Ultimate Subscription is $11,899. The subscription is valid one year and is not restricted to US only. The MSDN Ultimate has the following items (among many others &#8211; you can see the detailed list <a href="http://www.microsoft.com/visualstudio/en-us/support">here</a>):</p>
<ul>
<li>Windows Azure Platform </li>
<li>Visual Studio 2010 Ultimate </li>
<li>Visual Studio TFS 2010 </li>
<li>Expression Studio Ultimate </li>
<li>Windows 7, Windows Server 2008 R2 and SQL Server 2008 </li>
<li>Microsoft Office Professional Plus 2010, Project Professional 2010, Visio Premium 2010 </li>
</ul>
<p>In order to take your chance to get this subscription:</p>
<ul>
<li>let a comment on this blog post </li>
<li>explain what you would like to do with the subscription </li>
<li>share you blog address, community website or whatever to show how you’re involved in the .Net community </li>
</ul>
<p><strong>Contest is now over. The winner of the MSDN Ultimate License is Mike Strobel. Thank you all for letting a comment, I which I had more subscriptions to giveaway…<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2010/09/msdn-ultimate-subscription-giveaway/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mix10 starting today !</title>
		<link>http://www.japf.fr/2010/03/mix10-starting-today/</link>
		<comments>http://www.japf.fr/2010/03/mix10-starting-today/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 07:51:21 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[mix10]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=466</guid>
		<description><![CDATA[Mix10 is starting today and we can expect many cool announcements during the keynote. You can watch the keynote online at live.visitmix.com. I&#8217;ll try to give feedback as soon as possible. Because I&#8217;m not lucky enough to be in Vegas, I&#8217;ll watch the keynote tonight (French time !) at home with some coworkers. Last information [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/Mix101.jpg" rel="lightbox[466]"><img class="alignnone size-full wp-image-456" title="Mix10" src="http://www.japf.fr/wp-content/uploads/2010/03/Mix101.jpg" alt="" width="157" height="96" /></a></p>
<p>Mix10 is starting today and we can expect many cool announcements during the keynote. You can watch the keynote online at <a href="http://live.visitmix.com/">live.visitmix.com</a>. I&#8217;ll try to give feedback as soon as possible. Because I&#8217;m not lucky enough to be in Vegas, I&#8217;ll watch the keynote tonight (French time !) at home with some coworkers.</p>
<p>Last information before the keynote, it looks like we&#8217;ll have some announcements about <a href="http://blogs.zdnet.com/microsoft/?p=5550&amp;utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+zdnet%2Fmicrosoft+%28ZDNet+All+About+Microsoft%29&amp;utm_content=Google+Reader">Silverlight running on Symbian</a> devices&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2010/03/mix10-starting-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Reflector to debug a .Net app in Visual Studio without the original source code</title>
		<link>http://www.japf.fr/2010/03/debug-any-app-in-visual-studio-without-the-original-sources/</link>
		<comments>http://www.japf.fr/2010/03/debug-any-app-in-visual-studio-without-the-original-sources/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 22:40:43 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[reflector]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=436</guid>
		<description><![CDATA[Many .Net developers use to say &#8220;if you&#8217;re a serious developer, then you MUST Reflector&#8221;. I would like to add another statement: &#8220;if you want to have an insight and powerful look at how things works internally, use Reflector Professional&#8221;. Last Wednesday, RedGate released a new version of Reflector. You&#8217;re probably going to download it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro10.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-445" title="ReflectorPro10" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro10.png" alt="" width="243" height="66" /></a></p>
<p>Many .Net developers use to say <em>&#8220;if you&#8217;re a serious developer, then you MUST Reflector&#8221;</em>.</p>
<p>I would like to add another statement:<em> &#8220;if you want to have an insight and powerful look at how things works internally, use Reflector Professional&#8221;</em>.</p>
<p>Last Wednesday, <a href="http://www.red-gate.com">RedGate</a> released a new version of Reflector. You&#8217;re probably going to download it soon or later because your actual version is going to expire. When you&#8217;ll download the free version, you&#8217;ll automatically get a trial (14 days) of the professional edition. Nice, but what&#8217;s so special about this edition ?</p>
<p>Let&#8217;s see a demonstration of what can be done using Reflector Pro. The following is not an ad for RedGate, I&#8217;m just totally amazed by their new feature <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>1. Reflector is now integrated into Visual Studio (2005, 2008 and 2010 RC):</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro2.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-438" title="ReflectorPro2" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro2.png" alt="" width="261" height="174" /></a></p>
<p>2. Select the &#8220;Choose Assemblie to Debug&#8230;&#8221; option to select .Net assemblies for which you don&#8217;t have the source code. In this example, I&#8217;m using one of the Blend3&#8242;s assemblies:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro3.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-439" title="ReflectorPro3" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro3.png" alt="" width="437" height="319" /></a><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro4.png" rel="lightbox[436]"></a></p>
<p>3. Once the process is completed, select the &#8220;Explore Decompiled Assemblies&#8221; option:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro4.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-440" title="ReflectorPro4" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro4.png" alt="" width="263" height="177" /></a></p>
<p>4. Browse to your target assembly and select an interesting type:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro5.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-441" title="ReflectorPro5" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro5.png" alt="" width="463" height="326" /></a></p>
<p>5. Put a breakpoint in the code, like you do every day when you debug an app:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro6.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-442" title="ReflectorPro6" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro6.png" alt="" width="859" height="136" /></a></p>
<p>6. Run the executable</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro7.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-443" title="ReflectorPro7" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro7.png" alt="" width="261" height="175" /></a></p>
<p>7. Debug Blend3&#8242;s source code ! Use breakpoints, step into methods, inspect variables&#8230;</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro9.png" rel="lightbox[436]"><img class="alignnone size-full wp-image-444" title="ReflectorPro9" src="http://www.japf.fr/wp-content/uploads/2010/03/ReflectorPro9.png" alt="" width="1071" height="507" /></a></p>
<p>And that&#8217;s it. With Reflector Professional, you can:</p>
<ul>
<li>Decompile third-party assemblies       from within Visual Studio</li>
<li>Step through decompiled assemblies and use all the debugging techniques  you would use on your own code. This is incredibly powerful as we saw by debugging Blend3&#8243;s source code !</li>
</ul>
<p>Reflector Professional is available for about 195$ on <a href="http://www.red-gate.com/products/reflector/">RedGate website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2010/03/debug-any-app-in-visual-studio-without-the-original-sources/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PDC09 : How VS2010 was built with WPF ?</title>
		<link>http://www.japf.fr/2009/11/pdc09-how-vs2010-was-built-with-wpf/</link>
		<comments>http://www.japf.fr/2009/11/pdc09-how-vs2010-was-built-with-wpf/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 11:24:01 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[pdc]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=362</guid>
		<description><![CDATA[In my last blog post, I did a review of a PDC09 Session &#8220;Advanced performance tuning with WPF&#8221;. Today, I&#8217;m doing a review for another very interesting session &#8220;How VS2010 was built with WPF ?&#8221;. The video is available here. Why did Microsoft choose WPF for VS2010 ? Technological: prove the capabilities of WPF4 Architectural [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.japf.fr/wp-content/uploads/2009/08/PDC09.jpg" rel="lightbox[362]"><img class="alignnone size-full wp-image-245" title="PDC09" src="http://www.japf.fr/wp-content/uploads/2009/08/PDC09.jpg" alt="PDC09" width="79" height="109" /></a></p>
<p>In my <a href="http://www.japf.fr/2009/11/pdc09-wpf-application-performance-tuning/">last blog post</a>, I did a review of a PDC09 Session &#8220;Advanced performance tuning with WPF&#8221;. Today, I&#8217;m doing a review for another very interesting session &#8220;<strong>How VS2010 was built with WPF</strong> ?&#8221;. The video is available <a href="http://microsoftpdc.com/Sessions/CL09">here</a>.</p>
<p style="text-align: center;"><a href="http://www.japf.fr/wp-content/uploads/2009/11/vs2008tovs2010.png" rel="lightbox[362]"><img class="size-large wp-image-365 aligncenter" title="vs2008tovs2010" src="http://www.japf.fr/wp-content/uploads/2009/11/vs2008tovs2010-1024x361.png" alt="vs2008tovs2010" width="543" height="191" /></a></p>
<p>Why did Microsoft choose WPF for VS2010 ?</p>
<ul>
<li>Technological: prove the capabilities of WPF4</li>
<li>Architectural
<ul>
<li>Separated presentation</li>
<li>Support for long range road map (+10 years)</li>
</ul>
</li>
<li>Key VS2010 features need it: Editor, Architecture Editor, Parallel tools debugging</li>
<li>Take an opportunity to give feedback for WPF4: when VS2010 development started, .Net 3.5 SP1 was just shipped and it was the right time to give feedback for the new features and fixes for WPF4.</li>
</ul>
<p>It is worth noting that VS2010 is a project that is being watched carefully inside Microsoft. We can expect that more Microsoft applications will move to WPF in the next coming years.</p>
<p>What WPF features are used ?</p>
<ul>
<li>Declarative UI using XAML</li>
<li>Databinding</li>
<li>Styles and templates</li>
<li>Application Resources</li>
<li>Interop Win32 (because they did not have the time to rewrite everything using WPF or because features doest not need to use WPF for example de WinForms designer&#8230;)</li>
<li>Integration with the message loop (to deal with particular focus issues)</li>
<li>New text stack (part of WPF4) based on DirectWrite</li>
</ul>
<p>Staged approach</p>
<ul>
<li>Define data models: a huge diagramming and architectural exercice</li>
<li>Replace the main window with WPF (only the window not its content !) to start the mix approach (managed/unmanaged, WPF/Hwnds)</li>
<li>Write new managed components: Window manager, command bar presentation</li>
<li>Scout with other VS teams</li>
<li>Test, Test, Test&#8230;</li>
</ul>
<p>What were the challenges ?</p>
<ul>
<li>Mixed mode application: native and managed code; WPF and HWNDs (Win32 or WinForms)</li>
<li>Keep existing extensions working and allow new extensions to take advantage of WPF</li>
<li>Don&#8217;t &#8220;stop the train&#8221; other teams were working at the same time on the product to add new functionalities</li>
<li>Text clarity</li>
<li>Performance</li>
<li>Focus management</li>
</ul>
<p>You can watch the session <a href="http://microsoftpdc.com/Sessions/CL09">here</a> if you want more detail and demos of what I mention in this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/11/pdc09-how-vs2010-was-built-with-wpf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Snoop to take a look at VS2010 !</title>
		<link>http://www.japf.fr/2009/11/using-snoop-with-vs2010/</link>
		<comments>http://www.japf.fr/2009/11/using-snoop-with-vs2010/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 15:34:28 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[snoop]]></category>
		<category><![CDATA[vs2010]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=332</guid>
		<description><![CDATA[Update 18th january 2011: as Cory pointed out, the latest version of Snoop is now available on CodePlex. If like me you&#8217;re curious about how big WPF applications are made, you probably tried to use Snoop to inspect the visual tree of Visual Studio 2010 Beta2. And you probably had a problem because Snoop wasn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 18th january 2011</strong>: as Cory pointed out, the latest version of Snoop <a href="http://snoopwpf.codeplex.com/">is now available on CodePlex</a>.</p>
<p>If like me you&#8217;re curious about how big WPF applications are made, you probably tried to use <a href="http://blois.us/Snoop/">Snoop</a> to inspect the visual tree of Visual Studio 2010 Beta2. And you probably had a problem because Snoop wasn&#8217;t able to detect the devenv process of VS2010:</p>
<p>I wasn&#8217;t sure about the cause of this problem, but I grab the source of Snoop and took a look at the code that list the available window:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p332code7'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3327"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p332code7"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Refresh<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span>IntPtr windowHandle <span style="color: #0600FF; font-weight: bold;">in</span> NativeMethods<span style="color: #008000;">.</span><span style="color: #0000FF;">ToplevelWindows</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		WindowInfo window <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> WindowInfo<span style="color: #008000;">&#40;</span>windowHandle, <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>window<span style="color: #008000;">.</span><span style="color: #0000FF;">IsValidProcess</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> <span style="color: #008000;">!</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasProcess</span><span style="color: #008000;">&#40;</span>window<span style="color: #008000;">.</span><span style="color: #0000FF;">OwningProcess</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
			<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>window<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Count</span> <span style="color: #008000;">&amp;</span>gt<span style="color: #008000;">;</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">&#41;</span>
		<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windowsView</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MoveCurrentTo</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>I setup a breakpoint to find out what was wrong and discover that the window.IsValidProcess failed with the VS2010 process. Because I just wanted to check if it was the only reason why Snoop wasn&#8217;t able to inspect it, I hack the code to remove this test:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p332code8'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3328"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p332code8"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Refresh<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Clear</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span>IntPtr windowHandle <span style="color: #0600FF; font-weight: bold;">in</span> NativeMethods<span style="color: #008000;">.</span><span style="color: #0000FF;">ToplevelWindows</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		WindowInfo window <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> WindowInfo<span style="color: #008000;">&#40;</span>windowHandle, <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008080; font-style: italic;">/*window.IsValidProcess &amp;amp;&amp;amp;*/</span> <span style="color: #008000;">!</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasProcess</span><span style="color: #008000;">&#40;</span>window<span style="color: #008000;">.</span><span style="color: #0000FF;">OwningProcess</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
			<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>window<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Count</span> <span style="color: #008000;">&amp;</span>gt<span style="color: #008000;">;</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">&#41;</span>
		<span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windowsView</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MoveCurrentTo</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">windows</span><span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>And it&#8217;s working:</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2009/11/vs2010-snoop.png" rel="lightbox[332]"><img class="alignnone size-full wp-image-333" title="vs2010-snoop" src="http://www.japf.fr/wp-content/uploads/2009/11/vs2010-snoop.png" alt="vs2010-snoop" width="312" height="257" /></a></p>
<p>Happy exploration with Snoop <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/11/using-snoop-with-vs2010/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>VS2010 Beta 2 coming today !</title>
		<link>http://www.japf.fr/2009/10/vs2010-beta-2-coming-today/</link>
		<comments>http://www.japf.fr/2009/10/vs2010-beta-2-coming-today/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 07:12:19 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=321</guid>
		<description><![CDATA[In case you don&#8217;t have the info yet, VS2010 Beta2 is coming today October 19th for MSDN subscribers. It will be released to public on Wednesday (source). Also, Visual Studio 2010 RTM will officially launch on March 22, 2010 I&#8217;ll try to give some feedback as soon as I&#8217;ll be able to grab my copy [...]]]></description>
			<content:encoded><![CDATA[<p>In case you don&#8217;t have the info yet, <strong>VS2010 Beta2 is coming today October 19th</strong> for MSDN subscribers. It will be released to public on Wednesday (<a href="http://www.theregister.co.uk/2009/10/19/visual_studio_2010_second_beta_packaging/">source</a>).</p>
<p>Also, Visual Studio 2010 RTM will officially launch on March 22, 2010</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2009/10/vs2010.png" rel="lightbox[321]"><img class="alignnone size-medium wp-image-322" title="vs2010" src="http://www.japf.fr/wp-content/uploads/2009/10/vs2010-262x300.png" alt="vs2010" width="262" height="300" /></a></p>
<p>I&#8217;ll try to give some feedback as soon as I&#8217;ll be able to grab my copy and install it on ma workstation !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/10/vs2010-beta-2-coming-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.Net4, WPF4 and VS2010 interesting links</title>
		<link>http://www.japf.fr/2009/05/net4-wpf4-and-vs2010-interesting-links/</link>
		<comments>http://www.japf.fr/2009/05/net4-wpf4-and-vs2010-interesting-links/#comments</comments>
		<pubDate>Thu, 28 May 2009 14:43:30 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=224</guid>
		<description><![CDATA[Since the release of VS2010 last week a lot of cool blog posts had been written. The thing is more than VS2010 itself, the Beta1 comes with .Net4 and WPF4 too, and that&#8217;s exciting too ! Because I didn&#8217;t have time yet to write my own feedback, I&#8217;m sharing some links I found the last [...]]]></description>
			<content:encoded><![CDATA[<p>Since the release of VS2010 last week a lot of cool blog posts had been written. The thing is more than VS2010 itself, the Beta1 comes with .Net4 and WPF4 too, and that&#8217;s exciting too !</p>
<p>Because I didn&#8217;t have time yet to write my own feedback, I&#8217;m sharing some links I found the last couple of days.</p>
<p><strong>Download</strong></p>
<ul>
<li>A full list of what is available to download (VS2010, .Net framework&#8230;) can be found <a href="http://blogs.msdn.com/wpfsdk/archive/2009/05/20/visual-studio-10-beta-1-bits-are-now-publically-available.aspx">here</a>.</li>
</ul>
<p><strong>MSDN Documentations</strong></p>
<ul>
<li>.Net Framework4 Beta1: <a href="http://msdn.microsoft.com/en-us/library/w0x726c2(VS.100).aspx">here</a></li>
<li>What&#8217;s new in .Net Framework4 Beta1: <a href="http://msdn.microsoft.com/en-us/library/dd409230(VS.100).aspx">here</a></li>
<li>WPF4 Beta1: <a href="http://msdn.microsoft.com/en-us/library/ms754130(VS.100).aspx">here</a></li>
<li>What&#8217;s new in WPF4 Beta1: <a href="http://msdn.microsoft.com/en-us/library/bb613588(VS.100).aspx">here</a></li>
<li>VS2010 Beta1: <a href="http://msdn.microsoft.com/en-us/library/dd831853(VS.100).aspx">here</a></li>
<li>What&#8217;s new in VS2010 Beta1: <a href="http://msdn.microsoft.com/en-us/library/bb386063(VS.100).aspx">here</a></li>
</ul>
<p><strong>From Beta1 to Beta1 and RTM</strong></p>
<ul>
<li>Jaime Rodriguez wrote a <a href="http://blogs.msdn.com/jaimer/archive/2009/05/27/wpf-4-and-net-framework-4-beta-1-list-of-features-totrack.aspx">very nice article today</a> and share his &#8220;insider view&#8221; of what&#8217;s on the road to RTM.</li>
<li>Karl Shifflet <a href="http://karlshifflett.wordpress.com/2009/05/27/wpf-4-0-data-binding-change-great-feature/">explained on his blog</a> what&#8217;s going to change in the DataBinding pipeline (no more dummy converter !)</li>
</ul>
<p><strong>Channel9</strong></p>
<ul>
<li><a href="http://channel9.msdn.com/shows/Continuum/WPF4Beta1/">Interviews</a> of WPF and Silverlight program managers.</li>
<li>Rob Releya <a href="http://channel9.msdn.com/shows/Continuum/XAMLinNET4/">is also talking</a> on the new XAML stack available in the framework. More information can be found on <a href="http://blogs.windowsclient.net/rob_relyea/">his blog</a>.</li>
</ul>
<p><strong>Other bloggers</strong></p>
<ul>
<li>Patrick Smacchia gave us <a href="http://codebetter.com/blogs/patricksmacchia/archive/2009/05/21/a-quick-analyze-of-the-net-fx-v4-0-beta1.aspx">an inside look of the changes</a> from .Net 3.5SP1 to .Net 4 Beta1 using NDepend.</li>
</ul>
<p><strong>And also, Blend3</strong></p>
<ul>
<li>Unni&#8217;s wrote <a href="http://blogs.msdn.com/unnir/archive/2009/05/25/connect-and-blend-3.aspx">an article</a> about updates that had been made to Blend regarding user feedback on Connect.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/05/net4-wpf4-and-vs2010-interesting-links/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2010: Beta1 available with .Net4 and WPF4 included</title>
		<link>http://www.japf.fr/2009/05/visual-studio-2010-beta1-available-with-net4-and-wpf4-included/</link>
		<comments>http://www.japf.fr/2009/05/visual-studio-2010-beta1-available-with-net4-and-wpf4-included/#comments</comments>
		<pubDate>Tue, 19 May 2009 07:26:16 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[vs2010]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=221</guid>
		<description><![CDATA[In case you missed it, Beta1 of Visual Studio 2010 has been announced yesterday. Since monday it is available to all MSDN subscribers, and will be avaible to the rest of the world on wednesday. Documentation has also been updated to show the new features of this release. The download is on its way and [...]]]></description>
			<content:encoded><![CDATA[<p>In case you missed it, Beta1 of Visual Studio 2010 <a href="http://blogs.msdn.com/dannawi/archive/2009/05/15/visual-studio-2010-beta-1-available-for-the-msdn-subscribers-on-monday-may-18th.aspx">has been announced</a> yesterday.</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2009/05/vs2010.png" rel="lightbox[221]"><img class="alignnone size-medium wp-image-222" title="vs2010" src="http://www.japf.fr/wp-content/uploads/2009/05/vs2010-300x171.png" alt="vs2010" width="300" height="171" /></a></p>
<p>Since monday it is available to <a href="http://www.microsoft.com/australia/visualstudio/products/2010/default.mspx">all MSDN subscribers</a>, and will be avaible to the rest of the world on wednesday. <a href="http://blogs.msdn.com/wpfsdk/archive/2009/05/18/net-framework-4-and-vs-beta1-docs-are-posted.aspx">Documentation</a> has also been updated to show the new features of this release.</p>
<p>The download is on its way and I&#8217;ll try to post feedback as soon as I can, stay tuned !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/05/visual-studio-2010-beta1-available-with-net4-and-wpf4-included/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Browse your codebase like a pro with ReSharper</title>
		<link>http://www.japf.fr/2009/05/browse-your-codebase-like-a-pro-with-resharper/</link>
		<comments>http://www.japf.fr/2009/05/browse-your-codebase-like-a-pro-with-resharper/#comments</comments>
		<pubDate>Mon, 18 May 2009 11:27:03 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Visual Stutio]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.japf.fr/?p=211</guid>
		<description><![CDATA[I&#8217;ve already blogged about R# a couple of times. There is no doubt: it&#8217;s a must have for any serious .Net developper. A few weeks ago I learned and setup new shortcuts to improve my navigation skills in Visual Studio. Here are the results&#8230; If I want: to find a Type I hit Ctrl+T to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve already blogged about R# a couple of times. There is no doubt: it&#8217;s a must have for any serious .Net developper. A few weeks ago I learned and setup new shortcuts to improve my navigation skills in Visual Studio.</p>
<p>Here are the results&#8230; If I want:</p>
<ul>
<li>to find a <strong>Type</strong> I hit <strong>Ctrl+T</strong></li>
<li>to find a <strong>File</strong> I hit <strong>Ctrl+Shift+T</strong></li>
<li>to find a <strong>Member</strong> (in a file) I hit <strong>Ctrl+Alt+T</strong> (Note: I setup this one on my own using Tools/Options/Keyboard)</li>
</ul>
<p>A search box opens and I can start searching instantaneously.</p>
<p><a href="http://www.japf.fr/wp-content/uploads/2009/05/resharpernavigation1.png" rel="lightbox[211]"><img class="alignnone size-medium wp-image-217" title="resharpernavigation1" src="http://www.japf.fr/wp-content/uploads/2009/05/resharpernavigation1-300x92.png" alt="resharpernavigation1" width="300" height="92" /></a></p>
<p>Here are the basic scenarios :</p>
<ul>
<li>I want to open the <strong>ViewModelBase</strong> class, I hit <strong>Ctrl+T</strong> and then <strong>VMB</strong> (R# is able to search using capital letters)</li>
<li>I want to go to the <strong>OnPropertyChanged</strong>, I hit <strong>Ctrl+Alt+T</strong> and then <strong>OPC</strong> (same as previous example)</li>
<li>Finally, to open the file in the Solution Explorer I hit <strong>Shift+Alt+L</strong></li>
</ul>
<p>It&#8217;s simply amazing the time we can save using those simple shorcuts. Of course, you need to be quite familiar with your codebase (if you just arrive on a project it will be harder :p)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.japf.fr/2009/05/browse-your-codebase-like-a-pro-with-resharper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

