packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
/// <summary>
/// Controls the visibility of the explorer borwser panes
/// </summary>
/// <param name="explorerPane">a guid identifying the pane</param>
/// <param name="peps">the pane state desired</param>
/// <returns></returns>
Controls the visibility of the explorer borwser panes
Controls the visibility of the explorer borwser panes
HResult IExplorerPaneVisibility.GetPaneState(ref Guid explorerPane, out ExplorerPaneState peps)
        {
            switch (explorerPane.ToString())
            {
                case ExplorerBrowserViewPanes.AdvancedQuery:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.AdvancedQuery);
                    break;
                case ExplorerBrowserViewPanes.Commands:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Commands);
                    break;
                case ExplorerBrowserViewPanes.CommandsOrganize:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsOrganize);
                    break;
                case ExplorerBrowserViewPanes.CommandsView:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.CommandsView);
                    break;
                case ExplorerBrowserViewPanes.Details:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Details);
                    break;
                case ExplorerBrowserViewPanes.Navigation:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Navigation);
                    break;
                case ExplorerBrowserViewPanes.Preview:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Preview);
                    break;
                case ExplorerBrowserViewPanes.Query:
                    peps = VisibilityToPaneState(NavigationOptions.PaneVisibility.Query);
                    break;
                default:
#if LOG_UNKNOWN_PANES
                    System.Diagnostics.Debugger.Log( 4, "ExplorerBrowser", "unknown pane view state. id=" + explorerPane.ToString( ) );
#endif
                    peps = VisibilityToPaneState(PaneVisibilityState.Show);
                    break;
            }
            return HResult.Ok;
        }
HResult IExplorerPaneVisibility . GetPaneState ( ref Guid explorerPane , out ExplorerPaneState peps ) { switch ( explorerPane . ToString ( ) ) { case ExplorerBrowserViewPanes . AdvancedQuery : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . AdvancedQuery ) ; break ; case ExplorerBrowserViewPanes . Commands : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . Commands ) ; break ; case ExplorerBrowserViewPanes . CommandsOrganize : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . CommandsOrganize ) ; break ; case ExplorerBrowserViewPanes . CommandsView : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . CommandsView ) ; break ; case ExplorerBrowserViewPanes . Details : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . Details ) ; break ; case ExplorerBrowserViewPanes . Navigation : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . Navigation ) ; break ; case ExplorerBrowserViewPanes . Preview : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . Preview ) ; break ; case ExplorerBrowserViewPanes . Query : peps = VisibilityToPaneState ( NavigationOptions . PaneVisibility . Query ) ; break ; default : if LOG_UNKNOWN_PANES System . Diagnostics . Debugger . Log ( 4 , " " , " " + explorerPane . ToString ( ) ) ; endif peps = VisibilityToPaneState ( PaneVisibilityState . Show ) ; break ; } return HResult . Ok ; }
Controls the visibility of the explorer borwser panes
Controls the visibility of the explorer borwser panes
None
Guid
ref
ExplorerPaneState
out
explorerPane
a guid identifying the pane
a guid identifying the pane
peps
the pane state desired
the pane state desired