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…
Posts By Jonathan ANTOINE
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…
Update the WPF UI now: how to wait for the rendering to finish ?
WPF is really awesome to build reactive applications and data binding is here to push useful information inside of the User Interface. All is done magically and it’s wonderfully simple to create an application without…
Do you want a faster File.Exists / FileInfo.Exists / Directory.Exists ? I do !
Sometimes you need to check the existence of a file. Nothing is easier with the .Net framework which provide a property named Exists on FileInfo class. But it can be quite long, especially when the…