packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.WPF.xaml.cs
/// <summary>
/// Map changes to the CLR flags to the dependency properties
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
Map changes to the CLR flags to the dependency properties
Map changes to the CLR flags to the dependency properties
void UpdateDependencyPropertiesFromCLRPRoperties(object sender, EventArgs e)
        {
            AlignLeft = ExplorerBrowserControl.ContentOptions.AlignLeft;
            AutoArrange = ExplorerBrowserControl.ContentOptions.AutoArrange;
            CheckSelect = ExplorerBrowserControl.ContentOptions.CheckSelect;
            ExtendedTiles = ExplorerBrowserControl.ContentOptions.ExtendedTiles;
            FullRowSelect = ExplorerBrowserControl.ContentOptions.FullRowSelect;
            HideFileNames = ExplorerBrowserControl.ContentOptions.HideFileNames;
            NoBrowserViewState = ExplorerBrowserControl.ContentOptions.NoBrowserViewState;
            NoColumnHeader = ExplorerBrowserControl.ContentOptions.NoColumnHeader;
            NoHeaderInAllViews = ExplorerBrowserControl.ContentOptions.NoHeaderInAllViews;
            NoIcons = ExplorerBrowserControl.ContentOptions.NoIcons;
            NoSubfolders = ExplorerBrowserControl.ContentOptions.NoSubfolders;
            SingleClickActivate = ExplorerBrowserControl.ContentOptions.SingleClickActivate;
            SingleSelection = ExplorerBrowserControl.ContentOptions.SingleSelection;
            ThumbnailSize = ExplorerBrowserControl.ContentOptions.ThumbnailSize;
            ViewMode = ExplorerBrowserControl.ContentOptions.ViewMode;
            AlwaysNavigate = ExplorerBrowserControl.NavigationOptions.AlwaysNavigate;
            NavigateOnce = ExplorerBrowserControl.NavigationOptions.NavigateOnce;
            AdvancedQueryPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.AdvancedQuery;
            CommandsPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Commands;
            CommandsOrganizePane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsOrganize;
            CommandsViewPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.CommandsView;
            DetailsPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Details;
            NavigationPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Navigation;
            PreviewPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Preview;
            QueryPane = ExplorerBrowserControl.NavigationOptions.PaneVisibility.Query;
            NavigationLogIndex = ExplorerBrowserControl.NavigationLog.CurrentLocationIndex;
            if (itemsChanged.WaitOne(1, false))
            {
                items.Clear();
                foreach (ShellObject obj in ExplorerBrowserControl.Items)
                {
                    items.Add(obj);
                }
            }
            if (selectionChanged.WaitOne(1, false))
            {
                selectionChangeWaitCount = 4;
            }
            else if (selectionChangeWaitCount > 0)
            {
                selectionChangeWaitCount--;
                if (selectionChangeWaitCount == 0)
                {
                    selectedItems.Clear();
                    foreach (ShellObject obj in ExplorerBrowserControl.SelectedItems)
                    {
                        selectedItems.Add(obj);
                    }
                }
            }
        }
void UpdateDependencyPropertiesFromCLRPRoperties ( object sender , EventArgs e ) { AlignLeft = ExplorerBrowserControl . ContentOptions . AlignLeft ; AutoArrange = ExplorerBrowserControl . ContentOptions . AutoArrange ; CheckSelect = ExplorerBrowserControl . ContentOptions . CheckSelect ; ExtendedTiles = ExplorerBrowserControl . ContentOptions . ExtendedTiles ; FullRowSelect = ExplorerBrowserControl . ContentOptions . FullRowSelect ; HideFileNames = ExplorerBrowserControl . ContentOptions . HideFileNames ; NoBrowserViewState = ExplorerBrowserControl . ContentOptions . NoBrowserViewState ; NoColumnHeader = ExplorerBrowserControl . ContentOptions . NoColumnHeader ; NoHeaderInAllViews = ExplorerBrowserControl . ContentOptions . NoHeaderInAllViews ; NoIcons = ExplorerBrowserControl . ContentOptions . NoIcons ; NoSubfolders = ExplorerBrowserControl . ContentOptions . NoSubfolders ; SingleClickActivate = ExplorerBrowserControl . ContentOptions . SingleClickActivate ; SingleSelection = ExplorerBrowserControl . ContentOptions . SingleSelection ; ThumbnailSize = ExplorerBrowserControl . ContentOptions . ThumbnailSize ; ViewMode = ExplorerBrowserControl . ContentOptions . ViewMode ; AlwaysNavigate = ExplorerBrowserControl . NavigationOptions . AlwaysNavigate ; NavigateOnce = ExplorerBrowserControl . NavigationOptions . NavigateOnce ; AdvancedQueryPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . AdvancedQuery ; CommandsPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . Commands ; CommandsOrganizePane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . CommandsOrganize ; CommandsViewPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . CommandsView ; DetailsPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . Details ; NavigationPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . Navigation ; PreviewPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . Preview ; QueryPane = ExplorerBrowserControl . NavigationOptions . PaneVisibility . Query ; NavigationLogIndex = ExplorerBrowserControl . NavigationLog . CurrentLocationIndex ; if ( itemsChanged . WaitOne ( 1 , false ) ) { items . Clear ( ) ; foreach ( ShellObject obj in ExplorerBrowserControl . Items ) { items . Add ( obj ) ; } } if ( selectionChanged . WaitOne ( 1 , false ) ) { selectionChangeWaitCount = 4 ; } else if ( selectionChangeWaitCount > 0 ) { selectionChangeWaitCount -- ; if ( selectionChangeWaitCount == 0 ) { selectedItems . Clear ( ) ; foreach ( ShellObject obj in ExplorerBrowserControl . SelectedItems ) { selectedItems . Add ( obj ) ; } } } }
Map changes to the CLR flags to the dependency properties
Map changes to the CLR flags to the dependency properties
sender
object
None
e
EventArgs
None