Пример #1
0
 public IEnumerable <ShellObject> GetSelectedItems()
 {
     using (var folderView = FolderView.CreateInternal(this))
     {
         return(folderView.GetSelectedItems());
     }
 }
Пример #2
0
        private static void OnThumbnailSizePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var control = d as ExplorerBrowser;

            if (control != null)
            {
                using (var folderView = FolderView.CreateInternal(control))
                {
                    folderView.IconSize = (int)e.NewValue;
                }
            }
        }
        HRESULT IExplorerBrowserEvents.OnNavigationComplete(IntPtr pidlFolder)
        {
            using (var folderView = FolderView.Create(this))
            {
                this.FolderSettings.ViewMode = folderView.ViewMode;
            }

            var newLocation = ShellFactory.FromShellItem(ShellItem.FromPIDL((PIDL)pidlFolder));
            var args        = new NavigationCompletedEventArgs(newLocation);

            OnNavigationCompleted(args);

            return(COMErrorCodes.S_OK);
        }