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
}
Have a question about Catel? Use StackOverflow with the Catel tag!