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
400
StyleSet export
posted

Is there a way to import/export StyleSets from a Style Library like you can with resources?

  • 53790
    posted

    Hello johnluke,

    At that moment we have no built-in functionality to import/export a StyleSet from one library to another. You might be able to do this by editing the XML directly. Style Library (isl) files are all just XML documents. So theoretically, you could copy and paste from one to another. But this might be more complicated when you factor in things like Resources, to it might not be feasible to do.

    Another option might be to start with the existing isl file and delete all the StyleSet you don't want, leaving just the one you do. Then you could add new StyleSets to it and set a new Default.

    Still another option would be to load multiple Style Libraries into your application at the same time. The StyleManager.Load method takes an optional name parameter. By default, if you don't specify a name, the Style Library applies to all controls. But if you specify a name, the library applies only to those controls whose StyleLibraryName matches the name you specified.

    Let me know if you have any questions.

    Regards