<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Microsoft.DwayneNeed</title><link>http://microsoftdwayneneed.codeplex.com/project/feeds/rss</link><description>Samples and reusable code for accomplishing interesting scenarios in WPF.  In depth discussions of these topics can be found on my blog, at &amp;#91;url&amp;#58;http&amp;#58;&amp;#47;&amp;#47;blogs.msdn.com&amp;#47;DwayneNeed&amp;#93;.</description><item><title>New Post: Thank you</title><link>http://microsoftdwayneneed.codeplex.com/discussions/444460</link><description>&lt;div style="line-height: normal;"&gt;Awesome, sounds like a great use of this technique.&lt;br /&gt;
&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Tue, 21 May 2013 16:51:09 GMT</pubDate><guid isPermaLink="false">New Post: Thank you 20130521045109P</guid></item><item><title>New Post: Thank you</title><link>http://microsoftdwayneneed.codeplex.com/discussions/444460</link><description>&lt;div style="line-height: normal;"&gt;Dwayne,&lt;br /&gt;
&lt;br /&gt;
I know the original post on multi UI threads is six years old, but it really saved me some headaches when I needed to show a busy indicator while a third-party control had the main UI thread tied-up in a way I couldn't offload to a background worker.&lt;br /&gt;
&lt;br /&gt;
Just wanted to say thanks for a very useful piece of code.&lt;br /&gt;
&lt;/div&gt;</description><author>cwford</author><pubDate>Tue, 21 May 2013 16:38:40 GMT</pubDate><guid isPermaLink="false">New Post: Thank you 20130521043840P</guid></item><item><title>New Post: Running background video</title><link>http://microsoftdwayneneed.codeplex.com/discussions/438882</link><description>&lt;div style="line-height: normal;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Audio_Video_Interleave" rel="nofollow"&gt;AVI&lt;/a&gt; is just a container format.  The video stream inside of it can be in virtually any format, including Full Frame (Uncompressed), Intel Real Time (Indeo), Cinepak, Motion JPEG, Editable MPEG, VDOWave, ClearVideo / RealVideo, QPEG, and MPEG-4 Video.&lt;br /&gt;
&lt;br /&gt;
I'm not certain the codec is the problem.  It might simply be that the video is too large, or that the WPF app is using software rendering for some reason.&lt;br /&gt;
&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Thu, 04 Apr 2013 19:43:52 GMT</pubDate><guid isPermaLink="false">New Post: Running background video 20130404074352P</guid></item><item><title>New Post: Running background video</title><link>http://microsoftdwayneneed.codeplex.com/discussions/438882</link><description>&lt;div style="line-height: normal;"&gt;Hi thanks for the reply.&lt;br /&gt;
&lt;br /&gt;
The video I am running is at HD 1920 by 1080 resolution, in Avi format and it's 12.2MB.  I will try different codecs.  But how do i know what codec is it running in wpf?&lt;br /&gt;
&lt;br /&gt;
Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>icube</author><pubDate>Thu, 04 Apr 2013 06:39:34 GMT</pubDate><guid isPermaLink="false">New Post: Running background video 20130404063934A</guid></item><item><title>New Post: Running background video</title><link>http://microsoftdwayneneed.codeplex.com/discussions/438882</link><description>&lt;div style="line-height: normal;"&gt;WPF already decodes video on separate threads, so that is why you did not see any advantage.&lt;br /&gt;
&lt;br /&gt;
Is the video running at full resolution?  That might be pretty heavy regardless.  Try using a lower-resolution video if it is just for background effects.&lt;br /&gt;
&lt;br /&gt;
Try different codecs.  The degree of GPU acceleration differs depending on the codec.&lt;br /&gt;
&lt;br /&gt;
Is your app using layered windows (semi-transparent)?  If so, we have to read the video memory into system memory which is pretty expensive.&lt;br /&gt;
&lt;br /&gt;
Are you using software rendering?  That can be very expensive.  WPF can render in hardware (GPU assist) and it also supports in rendering on the CPU.  The CPU us much more expensive.  Perhaps your app is rendering in software?  You can force software rendering, but you cannot force hardware rendering.  WPF uses hardware rendering if it thinks the GPU is supported (and it has not been forced to use software).&lt;br /&gt;
&lt;br /&gt;
Good luck!&lt;br /&gt;
&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Wed, 03 Apr 2013 19:19:58 GMT</pubDate><guid isPermaLink="false">New Post: Running background video 20130403071958P</guid></item><item><title>New Post: Running background video</title><link>http://microsoftdwayneneed.codeplex.com/discussions/438882</link><description>&lt;div style="line-height: normal;"&gt;Hi, I've a touch screen application built using WPF running at HD resolution (1920 x 1080) and i have a looping background video that is also in HD. The background video runs as long as the lifetime of the app. The UI is placed &amp;quot;above&amp;quot; (in z order). However the UI's rendering seems jerky and laggy and I want to improve this performance. I tried using the VisualWrapper in my app to run the video in the wish to run the video in another thread however, the result is still the same, i still face jerkiness and lagging. When i run the app without the video running, my UI runs smoother as expected. Can you suggest a way to improve my UI responsiveness? &lt;br /&gt;
&lt;br /&gt;
THANKS!&lt;br /&gt;
&lt;/div&gt;</description><author>icube</author><pubDate>Wed, 03 Apr 2013 04:54:16 GMT</pubDate><guid isPermaLink="false">New Post: Running background video 20130403045416A</guid></item><item><title>Updated Wiki: Home</title><link>http://microsoftdwayneneed.codeplex.com/wikipage?version=11</link><description>&lt;div class="wikidoc"&gt;This project contains samples and reusable code for accomplishing interesting scenarios in WPF.  All of the samples will (eventually) be included in the single DemoApp click-once download.  &lt;br /&gt;&lt;br /&gt;Currently, this project demonstrates&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Rendering UI on multiple threads.&lt;/li&gt;
&lt;li&gt;Snapping bitmaps to the pixel grid.&lt;/li&gt;
&lt;li&gt;Writing a customize bitmap source.&lt;/li&gt;
&lt;li&gt;Decoding IEEE floating point numbers.&lt;/li&gt;
&lt;li&gt;Mitigating &amp;quot;airspace&amp;quot; issues in WPF applications.&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;In depth discussions of these topics can be found on my blog, at &lt;a href="http://blogs.msdn.com/DwayneNeed"&gt;http://blogs.msdn.com/DwayneNeed&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 05:24:06 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20130228052406A</guid></item><item><title>Updated Release: DemoApp (Feb 27, 2013)</title><link>http://microsoftdwayneneed.codeplex.com/releases/view/102650</link><description>&lt;div class="wikidoc"&gt;The DemoApp is a single application that contains multiple demonstrations based on blogs posted to http://blogs.msdn.com/DwayneNeed.  Currently, it contains demos for:
&lt;ul&gt;&lt;li&gt;Airspace Mitigations&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 05:20:09 GMT</pubDate><guid isPermaLink="false">Updated Release: DemoApp (Feb 27, 2013) 20130228052009A</guid></item><item><title>Released: DemoApp (Feb 27, 2013)</title><link>http://microsoftdwayneneed.codeplex.com/releases/view/102650</link><description>
&lt;div class="wikidoc"&gt;The DemoApp is a single application that contains multiple demonstrations based on blogs posted to http://blogs.msdn.com/DwayneNeed. Currently, it contains demos for:
&lt;ul&gt;
&lt;li&gt;Airspace Mitigations&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
</description><author></author><pubDate>Thu, 28 Feb 2013 05:20:09 GMT</pubDate><guid isPermaLink="false">Released: DemoApp (Feb 27, 2013) 20130228052009A</guid></item><item><title>Source code checked in, #72052</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/72052</link><description>updates to match blog</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 05:17:22 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72052 20130228051722A</guid></item><item><title>Source code checked in, #72051</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/72051</link><description>click once publishing</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 05:10:46 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72051 20130228051046A</guid></item><item><title>Created Release: DemoApp (Feb 27, 2013)</title><link>http://microsoftdwayneneed.codeplex.com/releases?ReleaseId=102650</link><description>&lt;div class="wikidoc"&gt;The DemoApp is a single application that contains multiple demonstrations based on blogs posted to http://blogs.msdn.com/DwayneNeed.  Currently, it contains demos for:
&lt;ul&gt;&lt;li&gt;Airspace Mitigations&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 04:58:49 GMT</pubDate><guid isPermaLink="false">Created Release: DemoApp (Feb 27, 2013) 20130228045849A</guid></item><item><title>Updated Release: DemoApp 1.0.0.2 (Feb 27, 2013)</title><link>http://microsoftdwayneneed.codeplex.com/releases/view/83078</link><description>&lt;div class="wikidoc"&gt;This version of the DemoApp brings improvements to the airspace demo. I have fleshed out the options configuration for the various settings related to MdiView, MdiWindow, WebBrowserEx, and DWM.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 04:54:43 GMT</pubDate><guid isPermaLink="false">Updated Release: DemoApp 1.0.0.2 (Feb 27, 2013) 20130228045443A</guid></item><item><title>Source code checked in, #72049</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/72049</link><description>misc GDI </description><author>DwayneNeed</author><pubDate>Thu, 28 Feb 2013 04:29:55 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72049 20130228042955A</guid></item><item><title>Updated Wiki: Home</title><link>http://microsoftdwayneneed.codeplex.com/wikipage?version=10</link><description>&lt;div class="wikidoc"&gt;This project contains samples and reusable code for accomplishing interesting scenarios in WPF.  All of the samples will (eventually) be included in the single DemoApp click-once download.  &lt;br /&gt;&lt;br /&gt;There are a number of prerequisites for the code, including:
&lt;ol&gt;&lt;li&gt; &lt;a href="http://www.microsoft.com/download/en/details.aspx?id=27599"&gt;XNA Game Studio 4.0&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;Currently, this project demonstrates&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Rendering UI on multiple threads.&lt;/li&gt;
&lt;li&gt;Snapping bitmaps to the pixel grid.&lt;/li&gt;
&lt;li&gt;Writing a customize bitmap source.&lt;/li&gt;
&lt;li&gt;Decoding IEEE floating point numbers.&lt;/li&gt;
&lt;li&gt;Mitigating &amp;quot;airspace&amp;quot; issues in WPF applications.&lt;/li&gt;&lt;/ol&gt;
&lt;br /&gt;In depth discussions of these topics can be found on my blog, at &lt;a href="http://blogs.msdn.com/DwayneNeed"&gt;http://blogs.msdn.com/DwayneNeed&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>DwayneNeed</author><pubDate>Wed, 27 Feb 2013 03:50:49 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20130227035049A</guid></item><item><title>Source code checked in, #71678</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/71678</link><description>Win32&amp;#58; checkpoint</description><author>DwayneNeed</author><pubDate>Wed, 23 Jan 2013 05:53:08 GMT</pubDate><guid isPermaLink="false">Source code checked in, #71678 20130123055308A</guid></item><item><title>Source code checked in, #71593</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/71593</link><description>Win32 restructuring</description><author>DwayneNeed</author><pubDate>Thu, 17 Jan 2013 07:42:02 GMT</pubDate><guid isPermaLink="false">Source code checked in, #71593 20130117074202A</guid></item><item><title>Source code checked in, #71581</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/71581</link><description>Win32&amp;#58; checkpoint</description><author>DwayneNeed</author><pubDate>Wed, 16 Jan 2013 07:28:42 GMT</pubDate><guid isPermaLink="false">Source code checked in, #71581 20130116072842A</guid></item><item><title>Source code checked in, #71557</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/71557</link><description>changed my mind on how to organize the win32 interop code... more to come.</description><author>DwayneNeed</author><pubDate>Mon, 14 Jan 2013 06:33:44 GMT</pubDate><guid isPermaLink="false">Source code checked in, #71557 20130114063344A</guid></item><item><title>Source code checked in, #71551</title><link>http://microsoftdwayneneed.codeplex.com/SourceControl/changeset/changes/71551</link><description>more GDI stuff</description><author>DwayneNeed</author><pubDate>Sat, 12 Jan 2013 01:49:30 GMT</pubDate><guid isPermaLink="false">Source code checked in, #71551 20130112014930A</guid></item></channel></rss>