SelectDirectoryService

The ISelectDirectoryService allows a developer to let the user choose a directory from inside a view model.

Selecting a directory

To select a directory, it is required to set the right properties of the service and then make a call to the DetermineDirectory method:

var dependencyResolver = this.GetDependencyResolver();
var selectDirectoryService = dependencyResolver.Resolve<ISelectDirectoryService>();
if (selectDirectoryService.DetermineDirectory())
{
    // User selected a directory
}

Contributions

We would like to thank the following contributors:

Want to contribute to the documentation? We have a guide for that!


Questions

Have a question about Catel? Use StackOverflow with the Catel tag!