The SaveFileService allows a developer to let the user to choose a file to open.

Available for
WPF / Silverlight / WP7 / WP7 Mango

Test/Emulation service available: yes

Choosing a file
To select a file to save to, it is required to set the right properties of the service and then make a call to the DetermineFile method:

var saveFileService = GetService<ISaveFileService>();
saveFileService.Filter = "C# File|*.cs";
if (saveFileService.DetermineFile())
    // User selected a file

Last edited Jul 10, 2011 at 12:52 PM by GeertvanHorrik, version 3


No comments yet.