I am porting .NET Framework component to .NET Compact Framework. Component has ImageList in it. This component implements custom CodeDomSerializer. The constructor of the custom CodeDomSerializer contains following code for ImageList code serialization.
TypeDescriptor.AddAttributes(typeof(ImageList), new DesignerSerializerAttribute(typeof(MyComponentCodeDomSerializer), typeof(CodeDomSerializer)));
But due to some reason, .NET Compact Framework doesn't use custom ImageList CodeDomSerializer (It works in .NET Framework.) It uses default CodeDomSerializer. Any ideas how can I attach ImageList custom CodeDomSerializer?