This is something new
        Posted  
        
            by shmoolca
        on Geeks with Blogs
        
        See other posts from Geeks with Blogs
        
            or by shmoolca
        
        
        
        Published on Wed, 14 Apr 2010 14:44:04 GMT
        Indexed on 
            2010/04/14
            15:03 UTC
        
        
        Read the original article
        Hit count: 342
        
I have created GUI with lots of my own controls. This control has style as a resource inside control resources. My performance profiler shows that InitializeComponent of this control is 7.5 times longer than control that has defined style in resources of application. It occurs because constructor is loading whole BAML each time constructor is called. Sounds logical for me :)
© Geeks with Blogs or respective owner