WPF – Spell checking

I investigates last week to add spellchecking on the localize view of CBR to help us in translation…A quick search on internet tells me that, with net 4, I need the language packs (fr+en+de). Note that it’s not the same with NET3.5.

To download them : http://www.microsoft.com/en-us/download/details.aspx?id=3324

Then I had to bind my text boxes to the current language I already had in my view model as string…

<TextBox Text=”{Binding Path=Translated}” HorizontalAlignment=”Stretch” SpellCheck.IsEnabled=”True” Language=”{Binding DataContext.ActualCode, RelativeSource={RelativeSource AncestorType=ListView}}”

PAF ! Exception !

Binding for property ‘Language’ cannot use the target element’s Language for conversion; if a culture is required, ConverterCulture must be explicitly specified on the Binding.

A second and more longer search brings me to the fact that “Language” property in xaml require a special converter that need also a special “parameter”

The solution is : Add the namespace

xmlns:glob=”clr-namespace:System.Globalization;assembly=mscorlib”

Language=”{Binding DataContext.ActualCode, RelativeSource={RelativeSource AncestorType=ListView}, ConverterCulture={x:Static glob:CultureInfo.InvariantCulture}}”

C.B.R. News

The release of the version 0.7 is on is way…but i had trouble after visual studio 2012 migration that does not support setup project (so back to 2010, perhaps CBR will migrate to vs 2012 and NET 4.5 later) and AvalonDock tabs has got an issue (tab are destroying there content when switching) so i have to make my own version or find a solution…

Visual Studio 2012 – No more setup projects !

I was happy to install the new Visual Studio 2012, the last week, when, after converting my project … I discovered that the installation projects are no longer supported!

It must go through the activation of a module InstallShield Lite, download, activate and then find it does not have the expected features such as 64 bit support.

In the past, Microsoft has already flirts with InstallShield, then add the setup project, and now abandoned.

I’m being a fan of Studio, WPF and C sharp, I started to get tired of doing and undoing my work sandstone moods MS.

Put ’em back!