Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Resource washing vs re-templating the controls for look and feel
posted

Hi,

I have a question regarding styling of Infragistics controls. I think we can achieve styling by resource washing and also by customizing the templte from the default styles.

However i think that through resource washing we can only style the control up to some level but in case of re-templating we have full control over the look and feel and behavior of the controls.

My question is can resource washing technique is able to change the fundamental properties of the control or this only can give a new color to controls.

Also is resource washing better than customizing the controls in terms of memory usage and performance.

Can someone guide?

Thanks,

Ashish

Parents
No Data
Reply
  • 54937
    Offline posted

    ashishkt said:

    My question is can resource washing technique is able to change the fundamental properties of the control or this only can give a new color to controls.

     Resource washing is a way to change the brushes used by a theme without having to retemplate the elements. If you need to change other aspects of the visuals used in the default templates then you would need to re-template. When re-templating you have complete control over the look of the elements.

     

    ashishkt said:
    Also is resource washing better than customizing the controls in terms of memory usage and performance.

    There is no simple answer on this. Resource washing is just creating new brushes that are then referenced via dynamic resources so there isn't a lot of overhead to that by itself. If you re-template you could switch to using static resources and you also tailor the template to meet your needs possibly removing elements, animations, etc. that you don't need so you could likely make it more performant but then there are also maintenance considerations. For example if as part of a new feature we need to add/modify the template for an element, if you re-template and you wanted to use that feature after upgrading to the new version you would need to update your template accordingly.

Children