Developer Support

Advocacy and Innovation

Workaround for XmlSerializer T[] and List bug

The XmlSerializer in NetCF 2.0 has a bug where if a single serialization requires reflecting into types that use a mixture of Collection<T>-like types for the same T the XmlSerializer will throw an exception.  Here an example where CF 2.0 would crash: This type would fail to serialize under NetCF 2.0 because T = string would ...

Power Toys for .NET Compact Framework 3.5 CTP released

The .NET Compact Framework team just released the Consumer Technology Preview (CTP) of the Power Toys for .NET Compact Framework 3.5.  These Power Toys are tools to help you build, debug and optimizie your NetCF 3.5 applications.  My personal favorite is the NetCF ServiceModel Metadata Tool (NetCFSvcUtil.exe) which allows NetCF ...

Where are the InfoCard sites?

InfoCard is the greatest invention since the web browser!  In my opinion anyway.  If you don't agree or you haven't heard of InfoCard, please read from the www.identityblog.com, and in particular the post on the Laws of Identity.  It's really quite impressive what engineering problems InfoCard has been able to solve. I'm just...

How to find the focused ListBoxItem in WPF

One would expect that the WPF ListBox control would have some kind of FocusedIndex property to find out which item has the keyboard focus (and that dashed border around it) -- but it's not there.  It seems the workaround requires a few lines of code, which I present here. ListBox.SelectionMode = Single In a ListBox's default mode ...

The WCF subset supported by NetCF

[Updated: 21Nov07 to clarify that custom headers are supported, but not in NetCFSvcUtil proxy generation] [Updated: 27Aug07 to correct Gzip sample, and clarify on transports & extensibility] [Updated: 23Aug07 to add SecurityAlgorithmSuite enumerable]Many people have been asking about what subset of .NET 3.0's Windows Communication ...