<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WPF, .NET &#38; Other stuff</title>
	<atom:link href="https://sharpinsights.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://sharpinsights.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 13 May 2008 07:09:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sharpinsights.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>WPF, .NET &#038; Other stuff</title>
		<link>https://sharpinsights.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://sharpinsights.wordpress.com/osd.xml" title="WPF, .NET &#38; Other stuff" />
	<atom:link rel='hub' href='https://sharpinsights.wordpress.com/?pushpress=hub'/>
	<item>
		<title>.NET 3.5 SP1 Beta &#038; VS2008 SP1 Beta</title>
		<link>https://sharpinsights.wordpress.com/2008/05/13/net-35-sp1-beta-vs2008-sp1-beta/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Tue, 13 May 2008 07:09:21 +0000</pubDate>
				<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.NET 3.5 SP1]]></category>
		<category><![CDATA[Pixa]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[VS2008 SP1]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2008/05/13/net-35-sp1-beta-vs2008-sp1-beta/</guid>

					<description><![CDATA[SP1 Beta for the .NET Framework 3.5 and the SP1 Beta for Visual Studio 2008 have been released. You can read about the new stuff on ScottGu&#8217;s Blog. There are two thing on the new release of .NET that interest me above others the GPU-based effects and the new WriteableBitmap class that I plan to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>SP1 <strong>Beta</strong> for the .NET Framework 3.5 and the SP1 <strong>Beta</strong> for Visual Studio 2008 have been released. You can read about the new stuff on <a href="http://weblogs.asp.net/scottgu/archive/2008/05/12/visual-studio-2008-and-net-framework-3-5-service-pack-1-beta.aspx">ScottGu&#8217;s Blog</a>.</p>
<p>There are two thing on the new release of .NET that interest me above others the GPU-based effects and the new WriteableBitmap class that I plan to use in future Pixa&#8217;s features and I will cover them in future posts. </p>
<p>If you want to learn more on GPU-based Effects for WPF, keep an eye on <a href="http://blogs.msdn.com/greg_schechter/archive/2008/05/12/a-series-on-gpu-based-effects-for-wpf.aspx">Greg Schechter&#8217;s Blog</a>.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Pixa Color &#038; Brush panels</title>
		<link>https://sharpinsights.wordpress.com/2008/04/09/pixa-color-brush-panels/</link>
					<comments>https://sharpinsights.wordpress.com/2008/04/09/pixa-color-brush-panels/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Wed, 09 Apr 2008 10:37:41 +0000</pubDate>
				<category><![CDATA[Pixa]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Painting]]></category>
		<category><![CDATA[WPF]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2008/04/09/pixa-color-brush-panels/</guid>

					<description><![CDATA[This is a brief introduction to Pixa&#8217;s Color &#38; Brush Panels. Color Panel The color panel allows you to select the current drawing color by clicking on the selecting area. &#160; You pick a color from anywhere in the application window with the picker tool and double click on the desired color.&#160; To select a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This is a brief introduction to Pixa&#8217;s Color &amp; Brush Panels.</p>
<h3>
<p>Color Panel</p>
</h3>
<ol>
<li>The color panel allows you to select the current drawing color by clicking on the selecting area.
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorselctor.png"><img style="border-width:0;" height="65" alt="colorSelctor" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorselctor-thumb.png?w=244&#038;h=65" width="244" border="0"></a><br />&nbsp; </p>
<li>You pick a color from anywhere in the application window with the picker tool <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/picker.png"><img style="border-width:0;" height="16" alt="picker" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/picker-thumb.png?w=16&#038;h=16" width="16" border="0"></a> and double click on the desired color.<br />&nbsp;
<li>To select a color manually press on the button <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolor.png"><img style="border-width:0;" height="18" alt="mcolor" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolor-thumb.png?w=16&#038;h=18" width="16" border="0"></a> to open the manual color selection panel.
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolorp.png"><img style="border-width:0;" height="174" alt="mcolorp" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolorp-thumb.png?w=244&#038;h=174" width="244" border="0"></a>  </p>
<li>Pixa has an option to save working palettes with different styles. The current palette style is the color list on the bottom of the panel.
<p>You have two viewing options for the palette style list, one as a list and one as grid, to switch between them click on the view mode button <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/grid.png"><img style="border-width:0;" height="16" alt="grid" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/grid-thumb.png?w=16&#038;h=16" width="16" border="0"></a>.</p>
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel3.png"><img style="border-width:0;" height="244" alt="colorpanel3" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel3-thumb.png?w=185&#038;h=244" width="185" border="0"></a> <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel2.png"><img style="border-width:0;" height="244" alt="colorpanel2" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel2-thumb.png?w=185&#038;h=244" width="185" border="0"></a> </li>
</ol>
<h3>Brush Panel</h3>
<p> </p>
<ol>
<li>The brush panel let you select, add and edit custom made drawing and erasing brushes.
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel1.png"><img style="border-width:0;" height="129" alt="brushpanel1" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel1-thumb.png?w=240&#038;h=129" width="240" border="0"></a>  </p>
<li>To add new brushes to the list just press on the <strong>Add</strong> button and a new brush will be added to the list.<br /> 
<li>To remove a brush, first select it and then press the <strong>Remove</strong> button.<br /> 
<li>To edit a brush press on the <strong>Edit</strong> button, an option panel will be open; to save the changes and to close the panel, press the <strong>Edit</strong> button again.
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel2.png"><img style="border-width:0;" height="542" alt="brushpanel2" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel2-thumb.png?w=248&#038;h=542" width="248" border="0"></a>&nbsp;</li>
</ol>
<p>And thanks to <a href="http://www.famfamfam.com/lab/icons/silk/" target="_blank">famfamfam</a> for the free icons used in Pixa.</p>
<p>&nbsp;</p>
<p>Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2008/04/09/pixa-color-brush-panels/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorselctor-thumb.png" medium="image">
			<media:title type="html">colorSelctor</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/picker-thumb.png" medium="image">
			<media:title type="html">picker</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolor-thumb.png" medium="image">
			<media:title type="html">mcolor</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/mcolorp-thumb.png" medium="image">
			<media:title type="html">mcolorp</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/grid-thumb.png" medium="image">
			<media:title type="html">grid</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel3-thumb.png" medium="image">
			<media:title type="html">colorpanel3</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/colorpanel2-thumb.png" medium="image">
			<media:title type="html">colorpanel2</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel1-thumb.png" medium="image">
			<media:title type="html">brushpanel1</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/brushpanel2-thumb.png" medium="image">
			<media:title type="html">brushpanel2</media:title>
		</media:content>
	</item>
		<item>
		<title>Pixa &#8211; the drawing tool</title>
		<link>https://sharpinsights.wordpress.com/2008/04/06/pixa-the-drawing-tool/</link>
					<comments>https://sharpinsights.wordpress.com/2008/04/06/pixa-the-drawing-tool/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Sun, 06 Apr 2008 14:22:35 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Pixa]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[Painting]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/?p=42</guid>

					<description><![CDATA[I&#8217;m happy to introduce you to Pixa! Pixa is a drawing program that takes full advantage of WPF. While it looks like a typical raster editor it is actually a vector editor, every stroke you paint on Pixa is actually a Geometry object, this allows you to zoom and resize without affecting the drawing quality. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m happy to introduce you to Pixa!</p>
<p>Pixa is a drawing program that takes full advantage of WPF. While it looks like a typical raster editor it is actually a vector editor, every stroke you paint on Pixa is actually a Geometry object, this allows you to zoom and resize without affecting the drawing quality.</p>
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/pixa3.png"><img style="border-width:0;" src="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/pixa3-thumb.png?w=412&#038;h=302" border="0" alt="pixa3" width="412" height="302" /></a></p>
<p>I have launched a <a href="http://www.codeplex.com/pixa" target="_blank">CodePlex</a> project for Pixa, so you can download and play with it or contribute if you wish.</p>
<p><strong>Please take into consideration that Pixa is a &#8220;PRE-ALPHA&#8221; version and is a long way from</strong> <strong>stable</strong>, I&#8217;m releasing it now so I can get feedback and share it with you (if you are interested in the code or your have an artistic soul <span style="font-size:x-small;"><img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </span>).</p>
<p>I will talk in following posts about Pixa’s roadmap, features and explain how I implemented some of the main features.</p>
<p>I will be happy to know what you think.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2008/04/06/pixa-the-drawing-tool/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2008/04/pixa3-thumb.png" medium="image">
			<media:title type="html">pixa3</media:title>
		</media:content>
	</item>
		<item>
		<title>WPF Enhancements</title>
		<link>https://sharpinsights.wordpress.com/2008/02/21/wpf-enhancements/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 21 Feb 2008 07:29:07 +0000</pubDate>
				<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[WPF]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2008/02/21/wpf-enhancements/</guid>

					<description><![CDATA[Scott Guthrie blogged about the .NET 3.5 client product roadmap. Check out the post for full detail, and here&#8217;s a short list of the things to expect: DropShadow and Blur Bitmap effects will be hardware accelerated. Improvements on Text. Media and Video Performance. New WriteableBitmap API will enable real time bitmap manipulation. New Controls like [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Scott Guthrie <a href="http://weblogs.asp.net/scottgu/archive/2008/02/19/net-3-5-client-product-roadmap.aspx">blogged about the .NET 3.5 client product roadmap</a>. Check out the post for full detail, and here&#8217;s a short list of the things to expect: </p>
<ol>
<li>DropShadow<em> </em>and<em> </em>Blur Bitmap effects will be hardware accelerated.</li>
<li>Improvements on Text.</li>
<li>Media and Video Performance.</li>
<li>New WriteableBitmap API will enable real time bitmap manipulation.</li>
<li>New Controls like DataGrid, Ribbon and Calendar/DatePicker.</li>
<li>Improvements on the VS 2008 WPF Designer.</li>
</ol>
<p>And one more thing you do not need to recompile your applications to befit from the new features!!! As long as you have the latest updates installed.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to custom designers</title>
		<link>https://sharpinsights.wordpress.com/2008/01/17/introduction-to-custom-designers/</link>
					<comments>https://sharpinsights.wordpress.com/2008/01/17/introduction-to-custom-designers/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 17 Jan 2008 09:53:57 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2008/01/17/introduction-to-custom-designers/</guid>

					<description><![CDATA[Yogev Cohen is writing a series about creating your own custom designers, which is useful if your create control libraries or you are just intrigued about how this things work. Create your own Designer or Introduction To Custom Designers &#8211; Part 1- Designer Create your own Designer or Introduction To Custom Designers &#8211; Part 2- [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://blogs.microsoft.co.il/blogs/yogev/">Yogev Cohen</a> is writing a series about creating your own custom designers, which is useful if your create control libraries or you are just intrigued about how this things work.</p>
<ol>
<li><a href="http://blogs.microsoft.co.il/blogs/yogev/archive/2008/01/01/create-your-own-designer-or-introduction-to-custom-designers-part-1-designer.aspx" title="Create your own Designer or Introduction To Custom Designers - Part 1- Designer">Create your own Designer or Introduction To Custom Designers &#8211; Part 1- Designer</a></li>
<li><a href="http://blogs.microsoft.co.il/blogs/yogev/archive/2008/01/17/create-your-own-designer-or-introduction-to-custom-designers-part-2-ui-glyphs.aspx" title="Create your own Designer or Introduction To Custom Designers - Part 2- UI, Glyphs">Create your own Designer or Introduction To Custom Designers &#8211; Part 2- UI, Glyphs</a></li>
</ol>
<p>And he had promise me to post about custom designer for WPF controls in the future!!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2008/01/17/introduction-to-custom-designers/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Debugging .NET Framework Source Code</title>
		<link>https://sharpinsights.wordpress.com/2008/01/17/debugging-net-framework-source-code/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 17 Jan 2008 08:27:11 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.NET Source Code]]></category>
		<category><![CDATA[Debugging]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2008/01/17/debugging-net-framework-source-code/</guid>

					<description><![CDATA[On October last year Scott Guthrie blogged about Microsoft plans to release the .NET Framework Source Code to enable debugging support with Visual Studio 2008, well the moment is come and now you can browse and debug the source code of the following libraries: .NET Base Class Libraries:System, System.CodeDom, System.CollectionsSystem.ComponentModel, System.DiagnosticsSystem.Drawing, System.Globalization, System.IOSystem.Net, System.Reflection, System.RuntimeSystem.Security, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>On October last year <a href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx">Scott Guthrie</a> blogged about Microsoft plans to release the .NET Framework Source Code to enable debugging support with Visual Studio 2008, well the moment is come and now you can browse and debug the source code of the following libraries:</p>
<blockquote>
<p>.NET Base Class Libraries:<br /><em>System</em>, <em>System.CodeDom</em>, <em>System.Collections</em><br /><em>System.ComponentModel</em>, <em>System.Diagnostics</em><br /><em>System.Drawing</em>, <em>System.Globalization</em>, <em>System.IO</em><br /><em>System.Net</em>, <em>System.Reflection</em>, <em>System.Runtime</em><br /><em>System.Security</em>, <em>System.Text</em>, <em>System.Threading</em>, etc.</p>
<p>ASP.NET (<em>System.Web</em>, <em>System.Web.Extensions</em>) <br />Windows Forms (<em>System.Windows.Forms</em>) <br />Windows Presentation Foundation (<em>System.Windows</em>) <br />ADO.NET and XML (<em>System.Data</em> and <em>System.Xml</em>) </p>
</blockquote>
<p>And soon the LINQ, WCF and the Workflow Foundation will be added. </p>
<p>You can find a <a href="http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx">detailed post</a> by Shawn Burke that explains the exact steps on how to enable this.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Merged Resource Dictionaries inside Themes/generic.xaml</title>
		<link>https://sharpinsights.wordpress.com/2007/12/20/using-merged-resource-dictionaries-inside-themesgenericxaml/</link>
					<comments>https://sharpinsights.wordpress.com/2007/12/20/using-merged-resource-dictionaries-inside-themesgenericxaml/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 20 Dec 2007 12:37:18 +0000</pubDate>
				<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[generic.xaml]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/12/20/using-merged-resource-dictionaries-inside-themesgenericxaml/</guid>

					<description><![CDATA[For some reason including a ResourceDictionary into the Themes/generic.xaml does not behave the same as including a ResourceDictionary into App.xaml. If you include a ResouceDictionary into Themes/generic.xaml you will receive an exception telling you that the dictionary cannot be assigned to property &#8216;Source&#8217; of object, yada, yada, yada, very informative. Exception:&#8217;MyDictionary.xaml&#8217; value cannot be assigned [&#8230;]]]></description>
										<content:encoded><![CDATA[</p>
<p>For some reason including a <em>ResourceDictionary</em> into the <em>Themes/generic.xaml</em> does not behave the same as including a <em>ResourceDictionary</em> into <em>App.xaml</em>.</p>
<p>If you include a <em>ResouceDictionary</em> into <em>Themes/generic.xaml</em> you will receive an exception telling you that the dictionary cannot be assigned to property &#8216;Source&#8217; of object, yada, yada, yada, very informative.</p>
<blockquote>
<p>Exception:&#8217;MyDictionary.xaml&#8217; value cannot be assigned to property &#8216;Source&#8217; of object &#8216;System.Windows.ResourceDictionary&#8217;. Cannot loc<br />ate resource &#8216;mydictionary.xaml&#8217;.&nbsp; Error at object &#8216;System.Windows.ResourceDictionary&#8217;, Line 9 Position 23.</p>
</blockquote>
<p>What the exception is trying to tell you is that the included <em>ResourceDictionary</em> file was not found on the output folder, (meaning that it was expected to be an external resource).</p>
<p>What to do then, instead of:</p>
<div style="font-size:10pt;background:white;overflow:scroll;width:400px;color:black;max-height:350px;font-family:consolas;white-space:nowrap;padding:5px;">
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:blue;">&lt;</span><span style="color:#a31515;">ResourceDictionary.MergedDictionaries</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:#a31515;">&nbsp;&nbsp;&nbsp; </span><span style="color:blue;">&lt;</span><span style="color:#a31515;">ResourceDictionary</span><span style="color:red;"> Source</span><span style="color:blue;">=&#8221;MyDictionary.xaml&#8221; /&gt;</span></p>
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:blue;">&lt;/</span><span style="color:#a31515;">ResourceDictionary.MergedDictionaries</span><span style="color:blue;">&gt;</span></p>
</div>
<p>You should write it like this (specifying that the included resource is embedded into the assembly):</p>
<div style="font-size:10pt;background:white;overflow:scroll;width:400px;color:black;max-height:350px;font-family:consolas;white-space:nowrap;padding:5px;">
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:blue;">&lt;</span><span style="color:#a31515;">ResourceDictionary.MergedDictionaries</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:#a31515;">&nbsp;&nbsp;&nbsp; </span><span style="color:blue;">&lt;</span><span style="color:#a31515;">ResourceDictionary</span><span style="color:red;"> Source</span><span style="color:blue;">=&#8221;/My.Controls;component/themes/MyDictionary.xaml&#8221; /&gt;</span></p>
<p style="font-size:8pt;background:none transparent scroll repeat 0 0;margin:0;padding:0;"><span style="color:blue;">&lt;/</span><span style="color:#a31515;">ResourceDictionary.MergedDictionaries</span><span style="color:blue;">&gt;</span></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/12/20/using-merged-resource-dictionaries-inside-themesgenericxaml/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Expression Blend 2 December Preview is Here</title>
		<link>https://sharpinsights.wordpress.com/2007/12/08/microsoft-expression-blend-2-december-preview-is-here/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Sat, 08 Dec 2007 19:50:02 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Expression Blend]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/12/08/microsoft-expression-blend-2-december-preview-is-here/</guid>

					<description><![CDATA[The Microsoft Expression Blend 2 December Preview is here. Some of the new features are: Support for VS2008, Path Editing and Animation, Adding Multiple Projects to a single solution and etc. Enjoy.]]></description>
										<content:encoded><![CDATA[<p>The <a href="http://www.microsoft.com/expression/products/download.aspx?key=blend2preview" target="_blank">Microsoft Expression Blend 2 December Preview is here</a>. Some of the new features are: Support for VS2008, Path Editing and Animation, Adding Multiple Projects to a single solution and etc.</p>
<p>Enjoy.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Source CD/DVD burning tool.</title>
		<link>https://sharpinsights.wordpress.com/2007/12/06/open-source-cddvd-burning-tool/</link>
					<comments>https://sharpinsights.wordpress.com/2007/12/06/open-source-cddvd-burning-tool/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 06 Dec 2007 16:19:00 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[CD/DVD Burning]]></category>
		<category><![CDATA[InfraRecorder]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/12/06/open-source-cddvd-burning-tool/</guid>

					<description><![CDATA[A week ago I came across InfraRecorder, an open source CD/DVD burning tool. After being disappointed from the burning features of Windows Vista, I was very happy from what I found. It works very well under Windows Vista. It doesn&#8217;t require installation and its only 8MB in size, what&#8217;s make it suitable for running it [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>A week ago I came across <a href="http://infrarecorder.sourceforge.net/">InfraRecorder</a>, an open source CD/DVD burning tool. </p>
<p>After being disappointed from the burning features of Windows Vista, I was very happy from what I found.  </p>
<p>It works very well under Windows Vista. It doesn&#8217;t require installation and its only 8MB in size, what&#8217;s make it suitable for running it from a DiskOnKey. </p>
<p>You can download it from <a href="http://infrarecorder.sourceforge.net/?page_id=5">here</a>. </p>
<p>Enjoy.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/12/06/open-source-cddvd-burning-tool/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>RadioButton IsChecked Binding Problem in .NET 3.5 RTM</title>
		<link>https://sharpinsights.wordpress.com/2007/11/22/radiobutton-ischecked-binding-problem-in-net-35-rtm/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 22 Nov 2007 12:30:10 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[RadioButton]]></category>
		<category><![CDATA[WPF Bugs]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/22/radiobutton-ischecked-binding-problem-in-net-35-rtm/</guid>

					<description><![CDATA[I have written two posts in the past about a bug in WPF&#8217;s RadioButton IsChecked property change notification. On my first post I described the problem and in second post I proposed and demonstrated a workaround to the problem. Now after the release of the .NET Frameworks 3.5, I checked it again and hoping that [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I have written two posts in the past about a bug in WPF&#8217;s RadioButton IsChecked property change notification.</p>
<p>On my <a href="https://sharpinsights.wordpress.com/2007/09/23/radiobutton-ischecked-binding-not-working/">first</a> post I described the problem and in <a href="https://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/">second</a> post I proposed and demonstrated a workaround to the problem.</p>
<p>Now after the release of the .NET Frameworks 3.5, I checked it again and hoping that it was fixed, but unfortunately <strong>it wasn&#8217;t fixed </strong><font size="2"><img src="https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1f62f.png" alt="😯" class="wp-smiley" style="height: 1em; max-height: 1em;" /></font>. But the same workarounds that I described in my previous <a href="https://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/">post</a> in this issue still do the jobs.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Studio 2008 RTM is available for MSDN subscribers</title>
		<link>https://sharpinsights.wordpress.com/2007/11/19/visual-studio-2008-rtm-is-available-for-msdn-subscribers/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Mon, 19 Nov 2007 16:35:15 +0000</pubDate>
				<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/19/visual-studio-2008-rtm-is-available-for-msdn-subscribers/</guid>

					<description><![CDATA[The Visual Studio 2008 RTM is ready and available to download for MSDN subscribers. Update: if you are not a MSDN subscribers then you have the following alternatives: A 90-day free trial edition of VS2008 Team Suite (here). Visual Studio 2008 Express which is completely free (here). or just the .NET Framework 3.5 runtime (here)]]></description>
										<content:encoded><![CDATA[<p>The Visual Studio 2008 RTM is ready and available to download for <a href="http://msdn2.microsoft.com/subscriptions/">MSDN subscribers</a>.</p>
<p><strong>Update:</strong></p>
<p>if you are not a MSDN subscribers then you have the following alternatives:</p>
<ol>
<li>A 90-day free trial edition of VS2008 Team Suite (<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=D95598D7-AA6E-4F24-82E3-81570C5384CB&amp;displaylang=en" target="_blank">here</a>).</li>
<li>Visual Studio 2008 Express which is completely free (<a href="http://www.microsoft.com/express/download/" target="_blank">here</a>).</li>
<li>or just the .NET Framework 3.5 runtime (<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=333325FD-AE52-4E35-B531-508D977D32A6&amp;displaylang=en" target="_blank">here</a>)</li>
</ol>
<ul>
<li></li>
</ul>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Pistachio</title>
		<link>https://sharpinsights.wordpress.com/2007/11/12/pistachio/</link>
					<comments>https://sharpinsights.wordpress.com/2007/11/12/pistachio/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Mon, 12 Nov 2007 15:01:40 +0000</pubDate>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[Pistachio]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/12/pistachio/</guid>

					<description><![CDATA[Grant Hinkson from Infragistics created Pistachio, a resource visualizer utility, which identifies all resources defined within the project and show you which resources are used and where they are used. It&#8217;s a helpful tool to clean up unused resources and to understand the current resource structure, especially when working with large WPF projects where resources [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://www.granthinkson.com">Grant Hinkson</a> from Infragistics created <a href="http://www.granthinkson.com/2007/11/08/announcing-pistachio-wpf-resource-visualizer/">Pistachio</a>, a resource visualizer utility, which identifies all resources defined within the project and show you which resources are used and where they are used.</p>
<p>It&#8217;s a helpful tool to clean up unused resources and to understand the current resource structure, especially when working with large WPF projects where resources are extensible use.</p>
<p>It&#8217;s free to <a href="http://www.granthinkson.com/wp-content/uploads/2007/11/pistachio.zip">download </a>at the moment and worth to try it!</p>
<p>                            <img width="183" src="https://i0.wp.com/www.granthinkson.com/wp-content/uploads/2007/11/pistachioscreenshot.thumbnail.png" height="130" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/11/12/pistachio/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="http://www.granthinkson.com/wp-content/uploads/2007/11/pistachioscreenshot.thumbnail.png" medium="image" />
	</item>
		<item>
		<title>Microsoft Surface SDK</title>
		<link>https://sharpinsights.wordpress.com/2007/11/11/microsoft-surface-sdk/</link>
					<comments>https://sharpinsights.wordpress.com/2007/11/11/microsoft-surface-sdk/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Sun, 11 Nov 2007 10:21:17 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[Microsoft Surface]]></category>
		<category><![CDATA[Microsoft Surface SDK]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/11/microsoft-surface-sdk/</guid>

					<description><![CDATA[If you were wondering about how you can develop software for the Microsoft Surface…. Matt Davey pointed on his blog to the Surface team blog. The place, you may what to follow and catch up on the new developments of the Surface SDK. From what I have read the SDK is divided in two layers, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you were wondering about how you can develop software for the <em>Microsoft Surface</em>….</p>
<p><a href="http://mdavey.wordpress.com/">Matt Davey</a> pointed on his blog to the <a href="http://blogs.msdn.com/surface/">Surface team blog</a>. The place, you may what to follow and catch up on the new developments of the Surface SDK.</p>
<p>From what I have read the SDK is divided in two layers, core and WPF. The core layer supports any .NET UI Framework that provides an hwnd and its XNA oriented, the WPF layer supports all the functionality of the core layer but it remains consistent with WPF’s methodology.</p>
<p>Also don’t miss to cool Hello world <a href="http://video.msn.com/video.aspx?mkt=en-us&amp;vid=6acfce98-17d3-416f-b2c0-679356c5ce79">demo video</a>!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/11/11/microsoft-surface-sdk/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Studio 2008 and Framework 3.5 to RTM in November</title>
		<link>https://sharpinsights.wordpress.com/2007/11/05/visual-studio-2008-and-framework-35-to-rtm-in-november/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Mon, 05 Nov 2007 14:58:48 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/05/visual-studio-2008-and-framework-35-to-rtm-in-november/</guid>

					<description><![CDATA[At last for all of you that were waiting&#8230; the Visual Studio 2008 and the .Net Framework 3.5 are going to be released by the end of November 2007. Read the press release for more info here.]]></description>
										<content:encoded><![CDATA[<p>At last for all of you that were waiting&#8230; the Visual Studio 2008 and the .Net Framework 3.5 are going to be released by the end of November 2007.</p>
<p>Read the press release for more info <a href="http://www.microsoft.com/presspass/press/2007/nov07/11-05TechEdDevelopersPR.mspx">here</a>.</p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET Framework 3.5 Types and Namespaces</title>
		<link>https://sharpinsights.wordpress.com/2007/11/05/net-framework-35-types-and-namespaces/</link>
					<comments>https://sharpinsights.wordpress.com/2007/11/05/net-framework-35-types-and-namespaces/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Mon, 05 Nov 2007 07:11:34 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.5]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/05/net-framework-35-types-and-namespaces/</guid>

					<description><![CDATA[Paul Andrew has posted an updated poster of the Commonly Used Types and Namespaces in .Net Framework 3.5, you can download it from here Enjoy!]]></description>
										<content:encoded><![CDATA[<p><a href="http://blogs.msdn.com/pandrew/">Paul Andrew</a> has posted an updated poster of the Commonly Used Types and Namespaces in .Net Framework 3.5, you can download it from <a href="http://download.microsoft.com/download/4/a/3/4a3c7c55-84ab-4588-84a4-f96424a7d82d/NET35_Namespaces_Poster_LORES.pdf">here</a></p>
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/11/net35poster.jpg"><img border="0" width="404" src="https://sharpinsights.wordpress.com/wp-content/uploads/2007/11/net35poster-thumb.jpg?w=404&#038;h=315" alt="NET35Poster" height="315" style="border:0;" /></a></p>
<p>Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/11/05/net-framework-35-types-and-namespaces/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2007/11/net35poster-thumb.jpg" medium="image">
			<media:title type="html">NET35Poster</media:title>
		</media:content>
	</item>
		<item>
		<title>ScrollViewer Frustrations Moments</title>
		<link>https://sharpinsights.wordpress.com/2007/11/01/scrollviewer-frustrations-moments/</link>
					<comments>https://sharpinsights.wordpress.com/2007/11/01/scrollviewer-frustrations-moments/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Thu, 01 Nov 2007 08:51:48 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/11/01/scrollviewer-frustrations-moments/</guid>

					<description><![CDATA[Let say that you have a custom control that uses the command ApplicationCommands.Copy, and you expects that when you press Ctrl+C the command is executed, so far so good. Now you want to wrap your control with ScrollViewer, that&#8217;s ok. And you expect that the Ctrl+C will be handled, yes? Well… NOOOOO! Why! Because ScrollViewer overrides the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Let say that you have a custom control that uses the command ApplicationCommands.Copy, and you expects that when you press Ctrl+C the command is executed, so far so good.</p>
<p>Now you want to wrap your control with ScrollViewer, that&#8217;s ok.</p>
<p>And you expect that the Ctrl+C will be handled, yes?</p>
<p>Well… NOOOOO!</p>
<p>Why! Because ScrollViewer overrides the OnKeyDown method and it’s preventing it to bubble any further.</p>
<p>Not an expected behavior in my opinion.</p>
<p>What to do? Set the Focusable property of the ScrollViewer to false, and it’s done.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/11/01/scrollviewer-frustrations-moments/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>Embedding Bitmaps inside XAML</title>
		<link>https://sharpinsights.wordpress.com/2007/10/08/embedding-bitmaps-inside-xaml/</link>
					<comments>https://sharpinsights.wordpress.com/2007/10/08/embedding-bitmaps-inside-xaml/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Mon, 08 Oct 2007 10:27:07 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<category><![CDATA[BitmapSource]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/10/08/embedding-bitmaps-inside-xaml/</guid>

					<description><![CDATA[I needed a type of BitmapSource that allows me to embed an image inside a XAML file. WPF has a number of derived BitmapSource classes, each one for its specialized task, one specific, BitmapImage, allows you to load images using XAML, but BitmapImage refer to external images in XAML files and does not embed images [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I needed a type of <em>BitmapSource</em> that allows me to embed an image inside a XAML file. WPF has a number of derived <em>BitmapSource</em> classes, each one for its specialized task, one specific, <em>BitmapImage</em>, allows you to load images using XAML, but <em>BitmapImage</em> refer to external images in XAML files and does not embed images in a XAML file.</p>
<p>So I decided to create my own class to achieve the task.</p>
<p>What did I do?</p>
<ol>
<li>A <em>BitmapSource </em>derived class that expose a property with the bitmap info and can act as a reference to another <em>BitmapSource</em>.</li>
<li>A container struct, <em>BitmapInfo</em>, to hold all the information needed to reconstruct the image, pixel array, size, format, etc.</li>
<li>A <em>TypeConverter</em> that convert <em>BitmapInfo</em> to a serialized byte64 string and vice versa.</li>
</ol>
<p><!--EndFragment--></p>
<p>Using the <em>EmbeddedBitmapSource </em>is seamless as using any other derived <em>BitmapSource</em> class. For example:</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:#2b91af;">Image</span> myImage = <span style="color:blue;">new</span> <span style="color:#2b91af;">Image</span>();</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:#2b91af;">BitmapImage</span> bmpImage = <span style="color:blue;">new</span> <span style="color:#2b91af;">BitmapImage</span>( <span style="color:blue;">new</span> <span style="color:#2b91af;">Uri</span>( <span style="color:#a31515;">&#8220;someimage.jpg&#8221;</span> ) );</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;">myImage.Source = <span style="color:blue;">new</span> <span style="color:#2b91af;">EmbeddedBitmapSource</span>( bmpImage );</p>
<p><!--EndFragment--></p>
<p>I included the sources with a sample application that let you save the image into a XAML file (the XAML file can be found after saving where the assembly is) and later to load it.</p>
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/embeddedsample.jpg"><img border="0" width="404" src="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/embeddedsample-thumb.jpg?w=404&#038;h=321" alt="EmbeddedSample" height="321" style="border-width:0;" /></a></p>
<p>On the upper right side is the original image and on the lower part of the window is the embedded image that was loaded from the XAML file.</p>
<p>Source code (VS2008 project) can be downloaded from <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/embeddedbitmapsample.doc" title="here">here</a> (Remember to change the <strong>.DOC</strong> extension to <strong>.ZIP</strong>)</p>
<p>By the way, I took the picture some year ago in Chile near Puerto Tranquilo. In Lake General Carrera are marble caves formations, called the Capilla de marmol and Catedral de marmol that were carved by water over time. One of those from a specific angle a dog’s head can be seen.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/10/08/embedding-bitmaps-inside-xaml/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/embeddedsample-thumb.jpg" medium="image">
			<media:title type="html">EmbeddedSample</media:title>
		</media:content>
	</item>
		<item>
		<title>Huge News!! Microsoft is releasing part of the .NET Framework source code</title>
		<link>https://sharpinsights.wordpress.com/2007/10/03/hugh-news-microsoft-is-releasing-part-of-the-net-framework-source-code/</link>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Wed, 03 Oct 2007 18:14:22 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/10/03/hugh-news-microsoft-is-releasing-part-of-the-net-framework-source-code/</guid>

					<description><![CDATA[Huge news!! Microsoft is releasing the Source Code for the .NET Framework Libraries, which includes ASP.NET, Windows Forms, WPF and much more.]]></description>
										<content:encoded><![CDATA[<p>Huge news!! <a target="_blank" href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx">Microsoft is releasing the Source Code for the .NET Framework Libraries</a>, which includes ASP.NET, Windows Forms, WPF and much more.</p>
<h2 class="pageTitle"></h2>
<p><strike></strike></p>
]]></content:encoded>
					
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
		<item>
		<title>RadioButton IsChecked Binding Problem &#8211; Conclusions</title>
		<link>https://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/</link>
					<comments>https://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Tue, 02 Oct 2007 10:57:07 +0000</pubDate>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[XAML]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[WPF Bugs]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/</guid>

					<description><![CDATA[After I posted my previous post on this subject, I done some research on this issue and I found the following: The binding between the IsChecked property and a property in the &#8220;code behind&#8221; works in only if the binding is declared inside a Control Template, see code below. When binding between xaml elements the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>After I posted my previous <a href="https://sharpinsights.wordpress.com/2007/09/23/radiobutton-ischecked-binding-not-working/">post</a> on this subject, I done some research on this issue and I found the following:</p>
<ol>
<li>The binding between the <em>IsChecked</em> property and a property in the &#8220;code behind&#8221; works <strike>in</strike> only if the binding is declared inside a Control Template, see code below.</li>
<li>When binding between xaml elements the problem does not occur.</li>
</ol>
<p style="font-size:10pt;background:white;overflow:scroll;width:450px;color:black;max-height:350px;font-family:consolas;white-space:nowrap;padding:5px;">
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">&lt;</span><span style="color:#a31515;">UserControl</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    </span><span style="color:red;">xmlns</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;"><a href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" rel="nofollow">http://schemas.microsoft.com/winfx/2006/xaml/presentation</a></span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    </span><span style="color:red;">xmlns:x</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;"><a href="http://schemas.microsoft.com/winfx/2006/xaml" rel="nofollow">http://schemas.microsoft.com/winfx/2006/xaml</a></span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    </span><span style="color:red;">x:Class</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">RadioButtonTest.TemplatedControl</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    </span><span style="color:red;">Height</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">300</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Width</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">300</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Template</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{DynamicResource UserControlControlTemplate1}</span>&#8220;<span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">  &lt;</span><span style="color:#a31515;">UserControl.Resources</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    &lt;</span><span style="color:#a31515;">BooleanToVisibilityConverter</span><span style="color:blue;"> </span><span style="color:red;">x:Key</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">BooleanToVisibilityConverter</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    &lt;</span><span style="color:#a31515;">ControlTemplate</span><span style="color:blue;"> </span><span style="color:red;">x:Key</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">UserControlControlTemplate1</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">TargetType</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{x:Type UserControl}</span>&#8220;<span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">      &lt;</span><span style="color:#a31515;">Grid</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">        &lt;</span><span style="color:#a31515;">StackPanel</span><span style="color:blue;"> </span><span style="color:red;">VerticalAlignment</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Top</span>&#8220;<span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">StackPanel</span><span style="color:blue;"> </span><span style="color:red;">VerticalAlignment</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Top</span>&#8220;<span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;">&nbsp;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">            &lt;</span><span style="color:#a31515;">RadioButton</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Height</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">16</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">HorizontalAlignment</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Left</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">isEllipse</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;">&nbsp;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">IsChecked</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{Binding Path=IsEllipse, </span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                                        RelativeSource={RelativeSource TemplatedParent}, </span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                                        Mode=TwoWay, </span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                                        UpdateSourceTrigger=PropertyChanged}</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Content</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Ellipse</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;">&nbsp;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">            &lt;</span><span style="color:#a31515;">RadioButton</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Height</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">16</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">HorizontalAlignment</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Left</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Name</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">isRectangle</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                </span><span style="color:red;">Content</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Rectangle</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;">&nbsp;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;/</span><span style="color:#a31515;">StackPanel</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">TextBlock</span><span style="color:blue;"> </span><span style="color:red;">Text</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Binding Visibilty to Radio Button IsChecked </span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">TextBlock</span><span style="color:blue;"> </span><span style="color:red;">Text</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">property with BooleanToVisibilityConverter:</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">Ellipse</span><span style="color:blue;"> </span><span style="color:red;">x:Name</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">EllipseTip</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Fill</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">#FF000000</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                  </span><span style="color:red;">Width</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">30</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Height</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">30</span>&#8220;<span style="color:blue;">  </span><span style="color:red;">StrokeThickness</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">1</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                  </span><span style="color:red;">Visibility</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{Binding Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=isEllipse, Mode=Default}</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">Rectangle</span><span style="color:blue;"> </span><span style="color:red;">x:Name</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">RectangleTip</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Fill</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">#FF000000</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                    </span><span style="color:red;">Width</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">30</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">Height</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">30</span>&#8220;<span style="color:blue;"> </span><span style="color:red;">StrokeThickness</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">1</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">                      </span><span style="color:red;">Visibility</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{Binding Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, ElementName=isRectangle, Mode=Default}</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">TextBlock</span><span style="color:blue;"> </span><span style="color:red;">Text</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">Binding to SelectionText Property </span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">TextBlock</span><span style="color:blue;"> </span><span style="color:red;">Text</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">and IsEnabled to rectangle radio button:</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          &lt;</span><span style="color:#a31515;">TextBox</span><span style="color:blue;"> </span><span style="color:red;">Text</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{Binding Path=SelectionText, RelativeSource={RelativeSource TemplatedParent}, Mode=Default}</span>&#8220;</p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">          </span><span style="color:red;">IsEnabled</span><span style="color:blue;">=</span>&#8220;<span style="color:blue;">{Binding Path=IsChecked, ElementName=isRectangle, Mode=Default}</span>&#8220;<span style="color:blue;">/&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">        &lt;/</span><span style="color:#a31515;">StackPanel</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">      &lt;/</span><span style="color:#a31515;">Grid</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">    &lt;/</span><span style="color:#a31515;">ControlTemplate</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">  &lt;/</span><span style="color:#a31515;">UserControl.Resources</span><span style="color:blue;">&gt;</span></p>
<p style="font-size:8pt;background:0 0;margin:0;padding:0;"><span style="color:blue;">&lt;/</span><span style="color:#a31515;">UserControl</span><span style="color:blue;">&gt;</span></p>
<p>I did a sample which uses two similar controls with the difference that one uses a control template and the other do not, and demonstrates the differences while binding to properties on the UserControls (<em>TemplatedControl</em> and <em>NoTemplateControl</em>).</p>
<p><a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/radiobtntest.jpg"><img border="0" width="244" src="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/radiobtntest-thumb.jpg?w=244&#038;h=225" alt="radioBtnTest" height="225" style="border-width:0;" /></a></p>
<p>You can download a sample code (VS2008 Beta2 project) <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/radiobuttontest.doc" title="here">here</a>, Remember to change the <strong>.DOC</strong> extension to <strong>.ZIP</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/10/02/readiobutton-ischecked-binding-problem-conclusions/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>

		<media:content url="https://sharpinsights.wordpress.com/wp-content/uploads/2007/10/radiobtntest-thumb.jpg" medium="image">
			<media:title type="html">radioBtnTest</media:title>
		</media:content>
	</item>
		<item>
		<title>Numeric TextBox Control Similar to MS Expression Blend</title>
		<link>https://sharpinsights.wordpress.com/2007/09/28/numeric-value-editor-control-similar-to-ms-expression-blend/</link>
					<comments>https://sharpinsights.wordpress.com/2007/09/28/numeric-value-editor-control-similar-to-ms-expression-blend/#comments</comments>
		
		<dc:creator><![CDATA[andresd]]></dc:creator>
		<pubDate>Fri, 28 Sep 2007 18:24:12 +0000</pubDate>
				<category><![CDATA[Controls]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[.Net 3.0]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[XAML]]></category>
		<guid isPermaLink="false">http://sharpinsights.wordpress.com/2007/09/28/numeric-value-editor-control-similar-to-ms-expression-blend/</guid>

					<description><![CDATA[I wanted to create a control like the Numeric Value Editor found in Microsoft Expression Blend which allows you to change the value by dragging the mouse. You can download the source code here (note: change the .doc extension to .zip before extracting the source) I found that is quite easy, first you need to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I wanted to create a control like the Numeric Value Editor found in Microsoft Expression Blend which allows you to change the value by dragging the mouse. You can download the source code <a href="https://sharpinsights.wordpress.com/wp-content/uploads/2007/09/valueeditorsample.doc" title="here">here</a> (<strong>note</strong>: change the <strong>.doc</strong> extension to <strong>.zip </strong>before extracting the source)</p>
<p>I found that is quite easy, first you need to create a custom control that contains all the increment parameters, described below, the actual value and code to handle the mouse events.</p>
<p>The control exposes the following properties:</p>
<ol>
<li><em>Value</em> &#8211; The actual value.</li>
<li><font size="2"><em>SmallChange</em> &#8211; Small change increments done by dragging the mouse and pressing the CTRL key.</font></li>
<li><font size="2"><em>DefaultChange </em>&#8211; Default change increments done by just dragging the mouse.</font></li>
<li><font size="2"><em>LargeChange</em> &#8211; Large change increments done by dragging the mouse and pressing the Shift key.</font></li>
<li><font size="2"><em>Minimum </em>&#8211; Lower bound of the value.</font></li>
<li><font size="2"><em>Maximum </em>&#8211; Upper bound of the value.</font></li>
<li><font size="2"><em>MaxPrecision </em>&#8211; Number of digits after the decimal point.</font></li>
</ol>
<p>For the control appearance you need to create a Template Style. Below there is an example of a template that contains a <em>TextBox</em>, a <em>Rectangle</em> for the dragging area and a property triggers to change the cursor to notify the user that dragging is available.</p>
<p style="overflow:auto;width:400px;height:300px;">
<table cellPadding="0" cellSpacing="0" style="width:600px;">
<tr>
<td><span style="color:#0000ff;"><font size="3" color="#0000ff"></p>
<pre><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Style</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Key</span><span style="color:#0000ff;">="NumricEditorStyle"</span><span style="color:#ff0000;"> TargetType</span><span style="color:#0000ff;">="{</span><span style="color:#a31515;">x</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">Type</span><span style="color:#ff0000;"> ValueEditorSample</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">ValueEditor</span><span style="color:#0000ff;">}"&gt; 
 </span><span style="color:#a31515;">    </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Setter</span><span style="color:#ff0000;"> Property</span><span style="color:#0000ff;">="Template"&gt; 
 </span><span style="color:#a31515;">        </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Setter.Value</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">            </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ControlTemplate</span><span style="color:#ff0000;"> TargetType</span><span style="color:#0000ff;">="{</span><span style="color:#a31515;">x</span><span style="color:#0000ff;">:</span><span style="color:#a31515;">Type</span><span style="color:#ff0000;"> ValueEditorSample</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">ValueEditor</span><span style="color:#0000ff;">}"&gt; 
 </span><span style="color:#a31515;">                </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Grid</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Grid.ColumnDefinitions</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                        </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ColumnDefinition</span><span style="color:#ff0000;"> Width</span><span style="color:#0000ff;">="0.5*"/&gt; 
 </span><span style="color:#a31515;">                        </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ColumnDefinition</span><span style="color:#0000ff;"> /&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Grid.ColumnDefinitions</span><span style="color:#0000ff;">&gt; </span><span style="color:#a31515;">                     </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">TextBox</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Name</span><span style="color:#0000ff;">="PART_EDITOR"</span><span style="color:#ff0000;"> Text</span><span style="color:#0000ff;">="{</span><span style="color:#a31515;">Binding</span><span style="color:#ff0000;"> Path</span><span style="color:#0000ff;">=Value,</span><span style="color:#ff0000;"> Mode</span><span style="color:#0000ff;">=TwoWay,</span><span style="color:#ff0000;"> RelativeSource</span><span style="color:#0000ff;">={</span><span style="color:#a31515;">RelativeSource</span><span style="color:#ff0000;"> TemplatedParent</span><span style="color:#0000ff;">}}"</span><span style="color:#ff0000;"> Grid.ColumnSpan</span><span style="color:#0000ff;">="2"/&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Rectangle</span><span style="color:#ff0000;"> x</span><span style="color:#0000ff;">:</span><span style="color:#ff0000;">Name</span><span style="color:#0000ff;">="PART_DRAGGER"</span> <span style="color:#ff0000;"> Stroke</span><span style="color:#0000ff;">="Transparent"</span><span style="color:#ff0000;"> Fill</span><span style="color:#0000ff;">="Transparent" /&gt; 
 </span><span style="color:#a31515;">                </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Grid</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">ControlTemplate.Triggers</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Trigger</span><span style="color:#ff0000;"> Property</span><span style="color:#0000ff;">="IsMouseOver"</span><span style="color:#ff0000;"> Value</span><span style="color:#0000ff;">="True"</span><span style="color:#ff0000;"> SourceName</span><span style="color:#0000ff;">="PART_DRAGGER"&gt; 
 </span><span style="color:#a31515;">                        </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Setter</span><span style="color:#ff0000;"> Property</span><span style="color:#0000ff;">="Cursor"</span><span style="color:#ff0000;"> Value</span><span style="color:#0000ff;">="SizeAll"/&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Trigger</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Trigger</span><span style="color:#ff0000;"> Property</span><span style="color:#0000ff;">="IsDragging"</span><span style="color:#ff0000;"> Value</span><span style="color:#0000ff;">="True"&gt; 
 </span><span style="color:#a31515;">                        </span><span style="color:#0000ff;">&lt;</span><span style="color:#a31515;">Setter</span><span style="color:#ff0000;"> Property</span><span style="color:#0000ff;">="Cursor"</span><span style="color:#ff0000;"> Value</span><span style="color:#0000ff;">="SizeAll"/&gt; 
 </span><span style="color:#a31515;">                    </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Trigger</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">                </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">ControlTemplate.Triggers</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">            </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">ControlTemplate</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">        </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Setter.Value</span><span style="color:#0000ff;">&gt; 
 </span><span style="color:#a31515;">    </span><span style="color:#0000ff;">&lt;/</span><span style="color:#a31515;">Setter</span><span style="color:#0000ff;">&gt; 
 &lt;/</span><span style="color:#a31515;">Style</span><span style="color:#0000ff;">&gt; </span></pre>
<p></font></span></td>
</tr>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://sharpinsights.wordpress.com/2007/09/28/numeric-value-editor-control-similar-to-ms-expression-blend/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b4e4ef09a96d249d7fd46e1019d1bf921710a533e761418239ac51dbe02218a9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">andresd</media:title>
		</media:content>
	</item>
	</channel>
</rss>
