Greetings.

In the process of creating a "custom application" I have found a problem with the installation of it, is that when you install and uninstall the CSS are automatically eliminated all graphic theme images that are referenced from the stylesheet.

The process for installation / uninstallation is as follows:

Install:

using UIApi = Telligent.Evolution.Extensibility.UI.Version1;

...

using (var stream = InternalApi.EmbeddedResources.GetStream("MyApplication.Links.Resources.Css.links-" + themeName + ".css"))

    {

       UIApi.ThemeFiles.AddUpdateFactoryDefault(theme, UIApi.ThemeProperties.CssFiles, "links.css", stream, (int)stream.Length);

       stream.Seek(0, System.IO.SeekOrigin.Begin);

       UIApi.ThemeFiles.AddUpdate(theme, UIApi.ThemeContexts.Site, UIApi.ThemeProperties.CssFiles, "links.css", stream, (int)stream.Length);

    }

...

Unistall:

...

foreach (var theme in UIApi.Themes.List(UIApi.ThemeTypes.Site))

 {

               if (theme.IsConfigurationBased)

               {

                   UIApi.ThemeFiles.Remove(theme, UIApi.ThemeContexts.Site, UIApi.ThemeProperties.CssFiles, "links.css");

                   UIApi.ThemeFiles.RemoveFactoryDefault(theme, UIApi.ThemeProperties.CssFiles, "links.css");

               }

           }

...

I appreciate any help on this

Thanks