コード例 #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;
                }
            }
        }
コード例 #3
0
        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);
        }