private static void OnOpenTypePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { FolderPicker s = (FolderPicker)sender; FolderOpenType value = (FolderOpenType)e.NewValue; }