Creating an automatic save for ResourceBlender Express was actually a lot easier than I thought it would be but I’ll post the source here for anyone else wondering how to do it.
My .xaml.cs file has four class variables to make it work, and the save method executes in a separate thread to prevent it locking the UI during saving (actually a BackgroundWorker).
BackgroundWorker worker;
DispatcherTimer timer;
int autoSaveInterval = 3000;
DateTime lastSave;
The DispatcherTimer times the save at a specified interval and the BackgroundWorker executes the operation. In the class constructor I setup the DispatchTimer:
Read more »

Ever needed to give a user the option to enter some details and generate a path which could be a file or directory depending on what they enter, then change the path when they change their minds?
ResourceBlender uses the dialog to the right to update a filename when either of two sets of radio buttons change, or the user decides the want to output to a zip file instead of a directory.
This static method will go through each path to find a valid one. Once it’s found one, it determines whether the first path provided is a file or directory (it only uses the extension of the file, which worked for me. If you need more accurate checking you’ll need p/invoke). The file and base directory names are combined then the result returned. If the filename (the first parameter), the backup filename is used instead.
Read more »