Order in Chaos: Handling unhandled exceptions in a WPF application

August 28, 2011

Introduction So you want to handle somehow all the unhandled exceptions in your application. Usually you want to accomplish one of the following: Log the exception for later diagnostics Present the user an unhandled exception UI, nicer than the default You heard there’s an event you should register, or maybe you find one by mistake, but is it the correct one? Did you know there are four (!) different events for handling unhandled exceptions in the .NET framework? So what is the...

Silverlight Tutorial Published [HEB]

August 21, 2011

After publishing a Windows Phone tutorial, the next logical step is a Silverlight tutorial. So here it is, a 40 chapters tutorial in Hebrew completely adapted to Silverlight web development and using relevant source code and screenshots. The tutorial is hosted on the great Hebrew developers community site: WebMaster.org.il   The tutorial is based on Silverlight 4 and it teaches Silverlight web development from the first step, using Visual Web Developer 2010 Express, provided freely by Microsoft. Following is the index for all chapters: Introduction &...
no comments

New C# Forum for the Israeli Developers Community

August 17, 2011

Following are some blog news: New Israeli C# Forum I'm proud to present a new MSDN forum in Hebrew for the C# developers community in Israel, managed by yours truly. The forum is available on the following link: http://social.msdn.microsoft.com/Forums/he-il/VisualCsharpil To all those nice developers who keep asking me C# related questions by mail, I strongly urge you to post your C# related questions on this forum. NOT because I don't enjoy it! On contrary, I love to help you and would even more enjoy it if even more people...
no comments

Using Windows Phone As Windows 7 Accelerometer Sensor

August 13, 2011

I just had a cool idea! (actually I had it like 6 month ago, but bear with me). My idea involves mixing some of the features in Windows 7 with some of the features in Windows Phone 7, to create a glorious mix!   Windows 7 One of the new features in Windows 7 is the Sensor API which provides a standard interface for accessing sensors of various types, like accelerometer, etc.. I wrote in the past about how you can consume this API from a C# application using Windows API Code...

WPF: Dictionary Value Converter

August 10, 2011

What’s the story? You want to convert an enum value to a bitmap image. That’s easy, here’s a solution Usually you would simply create a new value converter which has some custom code (e.g. a switch –case statement) to convert from the enum value to the relevant image. Is there a better solution? How many times have you written this kind of converter, the kind that takes a value and maps it to another value? Well, no more! I present to you: DictionaryValueConverter. A Converter that lets you define a collection...
no comments

Windows Phone Tutorial Published [HEB]

August 4, 2011

I've recently published a 41 chapters tutorial in Hebrew about developing application using Windows Phone. The tutorial is hosted on the great Hebrew developers community site: WebMaster.org.il The tutorial is based on Windows Phone Mango and it teaches Windows Phone development from the first step, using Visual Studio 2010 Express, provided freely by Microsoft. Following is the index for all chapters: Introduction & Working Environment First Application XAML Language Setting Properties in XAML ...