Contents tagged with Tips
-
The "Error creating window handle" exception and the Desktop Heap
When a big Windows Forms application I'm working on for a client is used actively, users often get "Error creating window handle" exceptions.
-
Fix for Visual Studio 2008 crash with XAML files
Does your Visual Studio 2008 SP1 crash when you open some XAML files? It started to happen to me, for some unknown reason.
-
LINQ Deep Dive: great LINQ tips
Zeeshan Hirani who already offered us a 500-page Entity Framework learning guide, now publishes great LINQ tips in the first part of his LINQ Deep Dive articles. These tips are not the usual introductions to LINQ features you can find elsewhere. You can tell that they come from someone who lives in the trenches. I learnt very interesting features and best practices I didn't know about.
-
UI design patterns libraries
Over the time, I've collected a set of UI design patterns libraries. Some of them present patterns with descriptions and advices, others collect screenshots of UI designs. With all the available sites, you have a lot of patterns to tap into for your sites and applications!
-
Null Object design pattern instead of returning null
This is just a quick post to make a plug for the Null Object design pattern. I don't think that it's used a lot, but it's useful to avoid a lot of issues.
-
Converting LINQ queries from query syntax to method/operator syntax
Yesterday a reader of the LINQ in Action book posted an interesting challenge on the book's forum. It's interesting enough to be reposted it here.
-
Life changing XAML tip for Visual Studio
If you've worked with XAML in Visual Studio 2008 (SP1), either for WPF or Silverlight work, you know how painful it is.
-
Using the Select LINQ query operator with indexes
Yesterday, Fred asked me if I could help him to convert C# code to LINQ. The solution may not obvious to find unless you know LINQ well. I will reproduce here the solution I gave Fred. Whether the LINQ version of the code is easier to read than the original one is arguable. The purpose here is more to show LINQ's Select query operator in action.
-
XAML markup formatting in Visual Studio
I'm using WPF these days, and so reading and writing a lot of XAML markup. As with any code or text, reading and navigation are made easier with a clean format. In my XAML files, I've been putting the XML attributes aligned vertically, below their XML element. It looks like this:
-
7 tricks to simplify your programs with LINQ
Despite what a lot of people still believe, LINQ is not all about SQL and databases. I guess it will take time before everybody gets used to it.