Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Datagrid Column header AccessKeys enabled after upgrading to .NET Framework 4.5

$
0
0

I have WPF solution build using Visual Studio C# 2010 and .NET Framework 4.0.
For labels I replaced '_' with '__' to disable the mnemonic keys
The datagrid column header didn't need any change as it showed the original column name with underscores (no mnemonics), for example if column header was 'A_B_C' the displayed column header value was the same

After I upgraded .NET Framework to 4.5, the same Visual Studio C# 2010 solution was now showing datagrid column header with access keys enabled, the displayed column header is now 'AB_C'.

I can use OnGeneratingColumns event to replace '_' with '__', but then this solution will show double underscores when deployed on machines with .net framework 4.0.

Note that I only installed .net 4.5 and I was still using Visual Studio C# 2010 to target .net 4.0, the behavior however has changed

Now, I uninstalled .net 4.5 which removes 4.0 too (since 4.5 is an inplace upgrade to 4.0) and then visual C# 2010 would throw 'cannot create window' so had to reinstall this one too

Didn't anyone else notice the access/mnemonic keys behaviour change after upgrading to .net 4.5?


sri


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>