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
140
AppStylist, reload the selected file
posted

Hi all,

In my application I have used

appStylistssample.ShowRuntimeApplicationStylingEditor(Me, "Change Look and Feel")

to load the appstylist, where in the user can select an existing isl file or create a new one .

I have got a requirment that when the user closes the application and reloads the application, the previously selected style library should be loaded.

I have seen a function called LoadFromStylemanager of the appstylist which takes the file names as input.

Now, my question is, how does the user store the file path of the previously loaded isl?Once the ShowRunTimeapplicationstyling editor is loaded,

i dont find any reference to the loaded appstylist.

Is there a way where the opened file path can be retrieved from the appstylist?

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    I don't think so. If the path is exposed, my guess is that it would be exposed by the AppStylistRunTime component. But I don't think it is. 

    In any case, would you really want to use the path the user chose? It seems to me like that might be a bit dangerous. If the user chooses an isl file, they probably expect the application to maintain the current settings, rather than reading it from a specific file location every time. It seems to me that the thing to do would be to get the currently loaded style library and save it to an isl file specifically used by the application, maybe in the same folder with the exe. 

     

Children