There is a custom control in my Silverlight application, which is put on the canvas about one thousand times. I’m concerned about the size of a XAP file of this app.
Will XAP file contain explicitely the names of this control in the same quantity? Will I reduce the size of the XAP file by changing the name of the custom control from, say, 10 letters to only 2 letters. How I can calculate the impact of the length of the class names on the final size of the XAP file?
Simple answer: you could test it. Build your XAP file, rename the class, rebuild the XAP file, and see what the size difference is, if any.
I’d expect the name of the class to only occur once in the metadata, but if you’re giving long names to the instances in the XAML, that may make a difference.