public MainViewModel() { OpenFileDialogViewModel = ViewModelSource.Create(() => new OpenFileDialogViewModel()); SaveFileDialogViewModel = ViewModelSource.Create(() => new SaveFileDialogViewModel()); #if !SILVERLIGHT FolderBrowserDialogViewModel = ViewModelSource.Create(() => new FolderBrowserDialogViewModel()); #endif }