Memory leaks were, are and always will be a concern in an application. One of it’s classical origin is unsubscribed events handler. The weak event pattern is here to the rescue but it is quite…
Monthly Archives For September 2011
WPF 4.5 – Part 1 : Asynchronous data validation
Here is the first post of a serie about the new features of WPF 4.5. Validation of data is often if not always necessary in modern applications. From a long time, WPF provided the IDataErrorInfo…
Windows 8 : the sharing contract in Metro / WinRT applications
Metro applications introduce the use of contracts in your applications. You can think of them as “system interfaces” telling Windows: “my app is able to perform this operation“. One of them, and I think the…
Windows 8 : display an image stored in the sharing data.
Just a quick snippet to remember it someday 🙂 ! It gets the bytes of a screenshot from a sharing operation and display it in an image control named “image”. [csharp]var bitmapStream = args.ShareOperation.Data.GetBitmap(); if…
Windows 8 : how to detect the orientation and the layout state of a metro app ?
Metro applications and windows 8 is designed to be runned on a PC. This is even better if this PC is a tablet 🙂 (but an eeepc is too small)! If the tablet has the…
Windows 8 tips: fast access to an app.
Today I was talking with my friend Etienne Margraff – also know as Emmanuel – (blog and twitter)and I told him how boring and time-consuming it was to press Win+F to access the search screen…
Windows 8 : Metro’s Grid Application – what, how and when ? – EDITED
Windows 8 is here and Visual Studio 2011 comes with it hand in hand. As you may already have read/seen/watch, there is a new set of applications coming named as ‘metro’. Visual Studio 2011 then…
WPF’s DataGridCheckBoxColumn ElementStyle uses a wrong default value
Today I found out a strange behavior in the DataGridCheckBoxColumn: it was not using the default template I set in the resources for the CheckBoxes and uses the default WPF’s one instead. This happens always…
Convert in code as in XAML: how to get the XAML processor’s converter ?
Sometimes you need to set property on controls from the code and then you realize that this is not like in XAML: these are not strings? No, they are not! This is because the XAML…