Thursday, June 28, 2012

WPF Menu with Icons

Today I'll show how to build WPF Menu with Icons in XAML. In this example you'll see how to control IsEnabled state of MenuItem from your application. The application looks like this:
WPF Menu with Icons example
Ok, let's see the XAML (MainWindow.xaml):

Thursday, June 21, 2012

WPF TextBox Validation with IDataErrorInfo

There are so many ways for data validation in WPF that sometimes it confuses people. I decided to figure out what's the best way for me to do TextBox validation, which will be enough versatile for different tasks, but also as simple as possible for implementation. I believe a good code must be simple and easy to understand. So today I'll show, for my opinion, the best validation method on TextBox example.

WPF TextBox Validation with IDataErrorInfo

Monday, June 18, 2012

Reversi Game in C# WinForms


Reversi game in C# WinForms

Have you ever played Reversi table game? If not, today you'll play it on your PC!
Check out Reversi game written in C# WinForms using System.Drawing Library.
Today I will not explain the code itself. I don't think it's necessary because the code is pretty simple.
We have a table which is two dimensional array, the rest is logic...
You are welcome to download the source code of this game.