views:

177

answers:

2

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?

A: 

The Compact Framework does not support the CodeDomSerializer class, so therefore your code is not working. What are you trying to achieve with the custom CodeDomSerializer?

tomlog
I am trying to use CodeDomSerializer class for .NET Compact Framework component designer. My component contains multiple image lists. When you add a component to .NET Compact Framework form, it gives an option to select image list. I want to change the default code serialization on form for an image list. Do you think it is possible in .NET Compact Framework?
rxm0203
A: 

I found out that there is so many differences between CF and WF designers, that it is impossible to save the same form on both designers. Most funny thing is, that if a form is not opened using a platform designer, it can be build anyway. So I have 2 projects,one for win, one for CE, default project is win and forms are designed using CE designer. Strange, but it works...

FrenkR