fr en

Use Visual Studio debugger in client side partial classes created on WCF proxy

2012-04-24 2 min read .NET Visual Studio 2010 Aymeric
In application using WCF service, it is not uncommon to create partial classes on client side in order to add properties on objects retrieved by the service. Theses properties are needed by the client application (for interface for example) and they have no reason to present on server side. For instance, a class name Product has following properties defined on server side : Price, Name, Stock and has the property IsVisible defined on client side in order to display or not the product on UI. Continue reading

Geek comics : 1st Windows Phone application

2012-03-17 1 min read .NET Windows Phone 7 Aymeric
Here we are, my 1st “real” Windows Phone has just been published to Marketplace. This application allows you to read Geek and Poke and xkcd comics. This 1st version is very basic but it was a good occasion for me to learn more about this domain. If you find a bug or have suggestions for next versions, don’t hesitate to contact me. Download link

Put on attribute per line in XAML files in Silverlight

2011-08-15 1 min read .NET Silverlight Visual Studio 2010 Aymeric
A XAML file can be unreadable when there are a lot of attributes in controls. Lines are often too long to be displayed on screen (horizontal scrollbar is required). Visual Studio 2010 offers an option allowing us to put one attribute per line automatically to facilitate code reading. So, when you have written your code, press Ctrl+K+D to format XAML. To activate this option, go to Tools -> Options, then open Text Editor -> XAML -> Formatting and select Spacing. Continue reading

How to use mouse wheel on Silverlight and Chrome when Windowless is enabled

2011-06-17 4 min read .NET Silverlight Aymeric
In Silverlight, the mouse wheel works very well with every main browser (Internet Explorer, Firefox, Chrome, etc.) but not when Windowless is enabled. When this feature is enabled, NAPI based browsers like Chrome or Firefox don’t allow Silverlight to manage the mouse wheel. This article explains how to get the mouse wheel event using DOM. This article is based on code published on Compiled Experience but I’ve added some modifications to consider elements inherited from ItemsControl. Continue reading