<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx</link><description>Building Sudoku using Windows Presentation Foundation and XAML, Microsoft's new declarative programming language. This is the 2nd article from a series of 5 articles and focusses on creating the Board UI and validations. Lucas Magder Difficulty: Easy</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#1062671</link><pubDate>Sun, 12 Nov 2006 16:38:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1062671</guid><dc:creator>John Frandolig</dc:creator><description>&lt;p&gt;where can I download this project (thus far) ? - or do I wait until the end ?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#2368067</link><pubDate>Wed, 02 May 2007 07:10:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2368067</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Even with updates for the released build of WCF, this project fails and my project fail to build. &amp;nbsp;The statement : &lt;/p&gt;
&lt;p&gt;xmlns:clr=&amp;quot;clr-namespace:SudokuFX&amp;quot; &lt;/p&gt;
&lt;p&gt;causes issues and adding the statement:&lt;/p&gt;
&lt;p&gt;&amp;lt;clr:SudokuBoard...&amp;gt; causes major issues with the DockPanel. &amp;nbsp;How is anyone supposed to learn from this article when a) in your laziness you did not specify where to put the xmlns:clr statement and what you provide as an example will not build???&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#6115118</link><pubDate>Sun, 11 Nov 2007 23:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6115118</guid><dc:creator>ncoks</dc:creator><description>&lt;p&gt;thanks a lot at least u gave me an idea on what to do&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#6504537</link><pubDate>Sat, 24 Nov 2007 22:22:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6504537</guid><dc:creator>Peregrinati</dc:creator><description>&lt;p&gt;Hey, I'm having trouble running through this tutorial in Visual C# 2008 Express. I can get about half way through it It looks like every time I use a StaticResource in a UserControl and then use that control in a window the window's designer bugs out. It displays a &amp;quot;Could not create instance of [UserControl]&amp;quot; error, even thought the project compiles and runs fine, and the UserControl looks fine in the designer.&lt;/p&gt;
&lt;p&gt;I found it when working through the tutorial and I assigned a LinearGradientBrush called ControlGradient to the App resources, used in in SodukuBoard.xaml, then tried to put the SodukuBoard on Window1 - the designer for Window 1 now throws a &amp;quot;Could not create instance of SodukuBoard&amp;quot; error.&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#6645269</link><pubDate>Mon, 03 Dec 2007 12:41:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6645269</guid><dc:creator>Cyron</dc:creator><description>&lt;p&gt;I've just found this article but I'd like to start from the beginning. Where is the link to part 1?&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#6646809</link><pubDate>Mon, 03 Dec 2007 21:23:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6646809</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;Sudoku challenge:&lt;/p&gt;
&lt;p&gt;Part 1:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/06/999502.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/06/999502.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Part 2:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Part 3:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178193.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178193.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Part 4:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178206.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178206.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Part 5:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178235.aspx"&gt;http://blogs.msdn.com/coding4fun/archive/2006/11/30/1178235.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#7179087</link><pubDate>Mon, 21 Jan 2008 06:06:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7179087</guid><dc:creator>LagDaemon</dc:creator><description>&lt;p&gt;Your code seems to have been chopped off on the right some how leaving many of the entries incomplete. &amp;nbsp;Otherwise this is a very nice introduction to theese ideas in WPF&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#7198756</link><pubDate>Tue, 22 Jan 2008 17:30:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7198756</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@LagDaemon: &amp;nbsp;True, I can go in and fix that. &amp;nbsp;You can also download the source at the top of the page.&lt;/p&gt;
</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#8412620</link><pubDate>Sun, 20 Apr 2008 21:53:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8412620</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;Building this. However, when I click on the context menu, nothing comes up. I am not sure if I am missing something. I tried running your code in VS2008 it works fine. however mine does everthing expect the part where a number should appear in a cell, when you select the context menu. &lt;/p&gt;
&lt;p&gt;i did a comparison, and everything looks intact. I even copied your SudokuBoard.xaml and still did not work.&lt;/p&gt;
&lt;p&gt;I am stumped.&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#8516585</link><pubDate>Sat, 17 May 2008 08:14:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8516585</guid><dc:creator>domnisoaradiane</dc:creator><description>&lt;p&gt;i ran into similar issues when i downloaded the code for part 1. &amp;nbsp;i couldn't even get the project file to load. &amp;nbsp;as far as i can tell, the staticreferrences have been removed since the winfx days, so you can just remove that keyword (and whatever else you have to to get it to compile).&lt;/p&gt;
&lt;p&gt;since i couldn't get the csproj to load, i created an empty project and dropped the xaml and c# code into that project (remember to add existing item so the solution knows about it). &amp;nbsp;you also must add referrences to windowsbase, windowscore, and presentationfoundationcore (vs will tell you which to add in the event that i forgot/misspelled those).&lt;/p&gt;
&lt;p&gt;finally, if you drop the code into a brand new project, vs will complain that you don't have a main method. &amp;nbsp;you must add this to the &amp;quot;secret&amp;quot; .g.cs file. &amp;nbsp;you can get to the file by viewing app.xaml.cs. &amp;nbsp;put your cursor on the name of the class (i.e. App), right click, and select &amp;quot;go to definition&amp;quot;. &amp;nbsp;this should give you two choices, one of which is the .g.cs file. (there might be a better way to do all this, but this is all i could kludge together while watching tv ;) )&lt;/p&gt;
&lt;p&gt;to this file, add something like:&lt;/p&gt;
&lt;p&gt;/// &amp;lt;summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// Application Entry Point.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;/summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[System.STAThreadAttribute()]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[System.Diagnostics.DebuggerNonUserCodeAttribute()]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static void Main() {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SudokuGame.App app = new SudokuGame.App();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;app.InitializeComponent();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;app.Run();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;you may have to rebuild the solution to get it to work. &amp;nbsp;also, i only got it to work with my release executable (run without debug).&lt;/p&gt;
&lt;p&gt;if anyone has anything to add to this, please feel free!&lt;/p&gt;
&lt;p&gt;good luck!&lt;/p&gt;
&lt;p&gt;~domni&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#8647431</link><pubDate>Tue, 24 Jun 2008 17:39:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8647431</guid><dc:creator>Nagaraj</dc:creator><description>&lt;p&gt;The download link at the top is not working.. do we have a dump somewhere else???&lt;/p&gt;</description></item><item><title>re: Building a WPF Sudoku Game, Part 2: The Board UI and Validation</title><link>http://blogs.msdn.com/coding4fun/archive/2006/11/06/999781.aspx#8682618</link><pubDate>Thu, 03 Jul 2008 05:38:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8682618</guid><dc:creator>Coding4Fun</dc:creator><description>&lt;p&gt;@Nagaraj: &amp;nbsp;The Ch9 update broke this. &amp;nbsp;I fixed the link.&lt;/p&gt;
</description></item></channel></rss>