How to open save dialog with custom file view

I have a save file dialog in my C # application that opens the user's desktop by default:

SaveFileDialog saveFileAddress = new SaveFileDialog
     {
        FileName = "MyXml",
        CheckPathExists = true,
        InitialDirectory =  Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
        OverwritePrompt = true,
        Title = "Saveyour XML",
        AddExtension = true,
        ValidateNames = true,
        Filter = "XML Document | *.xml"
     };

      

As you can see, I have configured a lot of my options, but the one I cannot figure out is how to set the default file for it (thumbnail, snippet, etc.).

Is this possible programmatically?

+3


source to share





All Articles