#when I give the selected path it is just highlighting the path but not scrolling down to the selected folder
private void SetPathClick(object sender, RoutedEventArgs e)
{
var directoryDialog = new FolderBrowserDialog();
directoryDialog.SelectedPath = "D:\\Project\\Test1\\Sample";
var path = directoryDialog.SelectedPath;
if (result != DialogResult.OK) return;
}