<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - The Sandbox - Coding4Fun SudokuFX Article Update - Get Around The Instance Creation Problem Inside Expression Blen</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - The Sandbox - Coding4Fun SudokuFX Article Update - Get Around The Instance Creation Problem Inside Expression Blen</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 07:57:04 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 07:57:04 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>1</c9:totalResults>
	<c9:pageCount>-1</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>The Sandbox - Coding4Fun SudokuFX Article Update - Get Around The Instance Creation Problem Inside Expression Blen</title>
		<description><![CDATA[<p>This is a small contribution to the excellent Coding4Fun SudokuFX series of articles, which are about WPF.
<br>
<br>
Those who are interested in WPF and haven't already read it, please do so now. <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-5.gif' alt='Wink' /><br>
<br>
<a target="_blank" href="http://msdn.microsoft.com/coding4fun/gaming/puzzle/article.aspx?articleid=999502&amp;title=Building&#43;a&#43;WPF&#43;Sudoku&#43;Game%2c&#43;Part&#43;1%3a&#43;Introduction&#43;to&#43;WPF&#43;and&#43;XAML">Link to the First Article</a>
<br>
<br>
Since I am new to the world of WPF I try to fiddle with any examples I find on the net. So I loaded the sample project at the expression blend beta 2, and saw the error that is displayed in the attached picture. It should be noted that once run, the application
 displays without a problem, so I guess it is a problem of Blend<br>
<br>
After a little experimentation I found the root of this problem. Blend does not see the application resources when we add the custom control in our window, so a LinearGradientBrush that is used for the background of the usercontrol and is defined in the Application.Resources
 is the source of the error. <br>
<br>
My workaround was to embed a copy of this resource inside the Usercontrol.Resources and put that as a background. Be carefull though; the usercontrol cannot take this resource and use it as a background, so I set it as a background in the
<br>
&lt;ItemsControl&nbsp; ...&nbsp; x:Name =&quot;MainList&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;ItemsControl.ItemsPanel&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;ItemsPanelTemplate&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;UniformGrid Columns =&quot;1&quot; Background=&quot;{StaticResource BoardBackground}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/ItemsPanelTemplate&gt; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/ItemsControl.ItemsPanel&gt; <br>
&nbsp;&nbsp;&nbsp; &lt;/ItemsControl&gt; &nbsp;&nbsp; &nbsp;&nbsp; <br>
<br>
Attached you will find the updated SudokuFX samples for the articles 2-5. <br>
<br>
<br>
This is my first Article so I start with something simple <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-4.gif' alt='Tongue Out' />. I hope you find it usefull</p>]]></description>
		<link>http://channel9.msdn.com/Forums/Sandbox/252296-Coding4Fun-SudokuFX-Article-Update-Get-Around-The-Instance-Creation-Problem-Inside-Expression-/252296#252296</link>
		<pubDate>Tue, 13 Feb 2007 00:56:24 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/Sandbox/252296-Coding4Fun-SudokuFX-Article-Update-Get-Around-The-Instance-Creation-Problem-Inside-Expression-/252296#252296</guid>
		<dc:creator>tasosval</dc:creator>
		<slash:comments>1</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/tasosval/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>