- fixed issue BE-432 (resolve issue: resolution=RESOLVED status=Fixed)...
fa9e0bce
Dimitar Tsenev
committed
13 changed files
generic.xaml
/BExplorer/BetterExplorer/themes/generic.xaml+184
/BExplorer/BetterExplorer/themes/generic.xaml
Add comment 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Add comment 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Add comment 4 xmlns:local="clr-namespace:BetterExplorer"
Add comment 5 Plus   xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
Add comment 5 6 >
Add comment 6 7
Add comment 8 Plus   <ControlTemplate x:Key="HorizontalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
Add comment 9 Plus   <Grid x:Name="Bg"
Add comment 10 Plus   Background="Transparent"
Add comment 11 Plus   SnapsToDevicePixels="True">
Add comment 12 Plus   <Grid.ColumnDefinitions>
Add comment 13 Plus   <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
Add comment 14 Plus   <ColumnDefinition Width="1E-05*" />
Add comment 15 Plus   <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
Add comment 16 Plus   </Grid.ColumnDefinitions>
Add comment 17 Plus   <RepeatButton Command="ScrollBar.LineLeftCommand"
Add comment 18 Plus   IsEnabled="{TemplateBinding IsMouseOver}"
Add comment 19 Plus   Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="LeftArrow">
Add comment 20 Plus   <RepeatButton.Style>
Add comment 21 Plus   <Style TargetType="{x:Type RepeatButton}">
Add comment 22 Plus   <Setter Property="OverridesDefaultStyle" Value="True" />
Add comment 23 Plus   <Setter Property="Focusable" Value="False" />
Add comment 24 Plus   <Setter Property="IsTabStop" Value="False" />
Add comment 25 Plus   <Setter Property="Template">
Add comment 26 Plus   <Setter.Value>
Add comment 27 Plus   <ControlTemplate TargetType="{x:Type RepeatButton}">
Add comment 28 Plus   <Border Width="18"
Add comment 29 Plus   Height="18"
Add comment 30 Plus   Background="{x:Null}">
Add comment 31 Plus   <Path Data=" M 8 15 L 8 3 L 2 9 Z" Fill="Black" />
Add comment 32 Plus   </Border>
Add comment 33 Plus   </ControlTemplate>
Add comment 34 Plus   </Setter.Value>
Add comment 35 Plus   </Setter>
Add comment 36 Plus   </Style>
Add comment 37 Plus   </RepeatButton.Style>
Add comment 38 Plus   </RepeatButton>
Add comment 39 Plus   <RepeatButton Grid.Column="2"
Add comment 40 Plus   Command="ScrollBar.LineRightCommand"
Add comment 41 Plus   IsEnabled="{TemplateBinding IsMouseOver}"
Add comment 42 Plus   Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="RightArrow">
Add comment 43 Plus   <RepeatButton.Style>
Add comment 44 Plus   <Style TargetType="{x:Type RepeatButton}">
Add comment 45 Plus   <Setter Property="OverridesDefaultStyle" Value="True" />
Add comment 46 Plus   <Setter Property="Focusable" Value="False" />
Add comment 47 Plus   <Setter Property="IsTabStop" Value="False" />
Add comment 48 Plus   <Setter Property="Template">
Add comment 49 Plus   <Setter.Value>
Add comment 50 Plus   <ControlTemplate TargetType="{x:Type RepeatButton}">
Add comment 51 Plus   <Border Width="18"
Add comment 52 Plus   Height="18"
Add comment 53 Plus   Background="{x:Null}">
Add comment 54 Plus   <Path Data=" M 9 15 L 9 3 L 15 9 Z" Fill="Black" />
Add comment 55 Plus   </Border>
Add comment 56 Plus   </ControlTemplate>
Add comment 57 Plus   </Setter.Value>
Add comment 58 Plus   </Setter>
Add comment 59 Plus   </Style>
Add comment 60 Plus   </RepeatButton.Style>
Add comment 61 Plus   </RepeatButton>
Add comment 62 Plus   </Grid>
Add comment 63 Plus   <ControlTemplate.Triggers>
Add comment 64 Plus   <Trigger Property="IsEnabled" Value="False">
Add comment 65 Plus   <Setter TargetName="Bg" Property="Background" Value="#FFF4F4F4" />
Add comment 66 Plus   </Trigger>
Add comment 67 Plus   </ControlTemplate.Triggers>
Add comment 68 Plus   </ControlTemplate>
Add comment 69 Plus   <ControlTemplate x:Key="ScrollViewerTemplate" TargetType="{x:Type ScrollViewer}">
Add comment 70 Plus   <Grid x:Name="Grid" Background="Transparent">
Add comment 71 Plus   <Grid.ColumnDefinitions>
Add comment 72 Plus   <ColumnDefinition Width="*" />
Add comment 73 Plus   <ColumnDefinition Width="Auto" />
Add comment 74 Plus   </Grid.ColumnDefinitions>
Add comment 75 Plus   <Grid.RowDefinitions>
Add comment 76 Plus   <RowDefinition Height="*" />
Add comment 77 Plus   <RowDefinition Height="Auto" />
Add comment 78 Plus   </Grid.RowDefinitions>
Add comment 79 Plus   <Rectangle x:Name="Corner"
Add comment 80 Plus   Grid.Row="1"
Add comment 81 Plus   Grid.Column="1"
Add comment 82 Plus   Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
Add comment 83 Plus   <ScrollBar x:Name="PART_HorizontalScrollBar"
Add comment 84 Plus   Grid.Row="0"
Add comment 85 Plus   Grid.Column="0"
Add comment 86 Plus   AutomationProperties.AutomationId="HorizontalScrollBar"
Add comment 87 Plus   Cursor="Arrow"
Add comment 88 Plus   Maximum="{TemplateBinding ScrollableWidth}"
Add comment 89 Plus   Minimum="0"
Add comment 90 Plus   Orientation="Horizontal"
Add comment 91 Plus   Template="{DynamicResource HorizontalScrollBarTemplate}"
Add comment 92 Plus   ViewportSize="{TemplateBinding ViewportWidth}"
Add comment 93 Plus   Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
Add comment 94 Plus   Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
Add comment 95 Plus   <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
Add comment 96 Plus   Grid.Row="0"
Add comment 97 Plus   Grid.Column="0"
Add comment 98 Plus   Margin="0,2,0,0"
Add comment 99 Plus   CanContentScroll="{TemplateBinding CanContentScroll}"
Add comment 100 Plus   CanHorizontallyScroll="False"
Add comment 101 Plus   CanVerticallyScroll="False"
Add comment 102 Plus   Content="{TemplateBinding Content}"
Add comment 103 Plus   ContentTemplate="{TemplateBinding ContentTemplate}" />
Add comment 104 Plus   </Grid>
Add comment 105 Plus   <ControlTemplate.Triggers>
Add comment 106 Plus   <Trigger Property="ComputedHorizontalScrollBarVisibility" Value="Visible">
Add comment 107 Plus   <Setter TargetName="PART_ScrollContentPresenter" Property="Margin" Value="15,2,15,0" />
Add comment 108 Plus   </Trigger>
Add comment 109 Plus   </ControlTemplate.Triggers>
Add comment 110 Plus   </ControlTemplate>
Add comment 111 Plus   <ControlTemplate x:Key="ScrollableTabControlTemplate" TargetType="{x:Type TabControl}">
Add comment 112 Plus   <Grid ClipToBounds="True"
Add comment 113 Plus   KeyboardNavigation.TabNavigation="Local"
Add comment 114 Plus   SnapsToDevicePixels="True">
Add comment 115 Plus   <Grid.ColumnDefinitions>
Add comment 116 Plus   <ColumnDefinition x:Name="ColumnDefinition0" />
Add comment 117 Plus   <ColumnDefinition x:Name="ColumnDefinition1" Width="0" />
Add comment 118 Plus   </Grid.ColumnDefinitions>
Add comment 119 Plus   <Grid.RowDefinitions>
Add comment 120 Plus   <RowDefinition x:Name="RowDefinition0" Height="Auto" />
Add comment 121 Plus   <RowDefinition x:Name="RowDefinition1" Height="*" />
Add comment 122 Plus   </Grid.RowDefinitions>
Add comment 123 Plus  
Add comment 124 Plus   <Border x:Name="ContentPanel"
Add comment 125 Plus   Grid.Row="1"
Add comment 126 Plus   Grid.Column="0"
Add comment 127 Plus   Margin="0,0,0,0"
Add comment 128 Plus   Background="{TemplateBinding Background}"
Add comment 129 Plus   BorderBrush="{TemplateBinding BorderBrush}"
Add comment 130 Plus   BorderThickness="0,1,0,0"
Add comment 131 Plus   KeyboardNavigation.DirectionalNavigation="Contained"
Add comment 132 Plus   KeyboardNavigation.TabIndex="2"
Add comment 133 Plus   KeyboardNavigation.TabNavigation="Local">
Add comment 134 Plus   <ContentPresenter x:Name="PART_SelectedContentHost"
Add comment 135 Plus   Margin="{TemplateBinding Padding}"
Add comment 136 Plus   Content="{TemplateBinding SelectedContent}"
Add comment 137 Plus   ContentSource="SelectedContent"
Add comment 138 Plus   ContentStringFormat="{TemplateBinding SelectedContentStringFormat}"
Add comment 139 Plus   ContentTemplate="{TemplateBinding SelectedContentTemplate}"
Add comment 140 Plus   SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
Add comment 141 Plus   </Border>
Add comment 142 Plus  
Add comment 143 Plus   <ScrollViewer x:Name="svTabBar" Margin="0,0,0,-1"
Add comment 144 Plus   HorizontalScrollBarVisibility="Auto"
Add comment 145 Plus   Template="{DynamicResource ScrollViewerTemplate}"
Add comment 146 Plus   VerticalScrollBarVisibility="Disabled">
Add comment 147 Plus   <TabPanel x:Name="HeaderPanel"
Add comment 148 Plus   Margin="0,2,2,1"
Add comment 149 Plus   IsItemsHost="True"
Add comment 150 Plus   KeyboardNavigation.TabIndex="1" />
Add comment 151 Plus   </ScrollViewer>
Add comment 152 Plus  
Add comment 153 Plus  
Add comment 154 Plus   </Grid>
Add comment 155 Plus   <ControlTemplate.Triggers>
Add comment 156 Plus   <Trigger Property="TabStripPlacement" Value="Bottom">
Add comment 157 Plus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="1" />
Add comment 158 Plus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 159 Plus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 160 Plus   <Setter TargetName="RowDefinition1" Property="Height" Value="Auto" />
Add comment 161 Plus   <Setter TargetName="HeaderPanel" Property="Margin" Value="2,0,2,2" />
Add comment 162 Plus   </Trigger>
Add comment 163 Plus   <Trigger Property="TabStripPlacement" Value="Left">
Add comment 164 Plus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
Add comment 165 Plus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 166 Plus   <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="0" />
Add comment 167 Plus   <Setter TargetName="ContentPanel" Property="Grid.Column" Value="1" />
Add comment 168 Plus   <Setter TargetName="ColumnDefinition0" Property="Width" Value="Auto" />
Add comment 169 Plus   <Setter TargetName="ColumnDefinition1" Property="Width" Value="*" />
Add comment 170 Plus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 171 Plus   <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
Add comment 172 Plus   <Setter TargetName="HeaderPanel" Property="Margin" Value="2,2,0,2" />
Add comment 173 Plus   </Trigger>
Add comment 174 Plus   <Trigger Property="TabStripPlacement" Value="Right">
Add comment 175 Plus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
Add comment 176 Plus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 177 Plus   <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="1" />
Add comment 178 Plus   <Setter TargetName="ContentPanel" Property="Grid.Column" Value="0" />
Add comment 179 Plus   <Setter TargetName="ColumnDefinition0" Property="Width" Value="*" />
Add comment 180 Plus   <Setter TargetName="ColumnDefinition1" Property="Width" Value="Auto" />
Add comment 181 Plus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 182 Plus   <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
Add comment 183 Plus   <Setter TargetName="HeaderPanel" Property="Margin" Value="0,2,2,2" />
Add comment 184 Plus   </Trigger>
Add comment 185 Plus   <Trigger Property="IsEnabled" Value="False">
Add comment 186 Plus   <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
Add comment 187 Plus   </Trigger>
Add comment 188 Plus   </ControlTemplate.Triggers>
Add comment 189 Plus   </ControlTemplate>
Add comment 190 Plus  
Add comment 7 191 <Style x:Key="TabItemFocusVisual">
Add comment 8 192 <Setter Property="Control.Template">
Add comment 9 193 <Setter.Value>
App.xaml.cs
/BExplorer/BetterExplorer/App.xaml.cs+3
/BExplorer/BetterExplorer/App.xaml.cs
Add comment 423 newt.Header = sho.GetDisplayName(DisplayNameType.Default);
Add comment 424 newt.TabIcon = sho.Thumbnail.BitmapSource;
Add comment 425 newt.PreviewMouseMove += newt_PreviewMouseMove;
Add comment 426 Plus   newt.ToolTip = sho.ParsingName;
Add comment 426 427 newt.TabSelected += win.newt_TabSelected;
Add comment 427 428 newt.Path = sho;
Add comment 428 429 win.CloneTab(newt);
Add comment 439 440 newt.Header = sho.GetDisplayName(DisplayNameType.Default);
Add comment 440 441 newt.TabIcon = sho.Thumbnail.BitmapSource;
Add comment 441 442 newt.PreviewMouseMove += newt_PreviewMouseMove;
Add comment 443 Plus   newt.ToolTip = sho.ParsingName;
Add comment 442 444 newt.TabSelected += win.newt_TabSelected;
Add comment 443 445 newt.Path = sho;
Add comment 444 446 win.CloneTab(newt);
Add comment 459 461 newt.Header = sho.GetDisplayName(DisplayNameType.Default);
Add comment 460 462 newt.TabIcon = sho.Thumbnail.BitmapSource;
Add comment 461 463 newt.PreviewMouseMove += newt_PreviewMouseMove;
Add comment 464 Plus   newt.ToolTip = sho.ParsingName;
Add comment 462 465 newt.TabSelected += win.newt_TabSelected;
Add comment 463 466 newt.Path = sho;
Add comment 464 467 win.CloneTab(newt);
BetterExplorer.csproj
/BExplorer/BetterExplorer/BetterExplorer.csproj-3+3
/BExplorer/BetterExplorer/BetterExplorer.csproj
Add comment 217 <Compile Include="Customize\CustomizeQAT.xaml.cs" />
Add comment 218 <Compile Include="Customize\RibbonItemListDisplay.xaml.cs" />
Add comment 219 <Compile Include="HelperClasses\FolderStructForSize.cs" />
Add comment 220 Plus   <Compile Include="HelperClasses\NavigationLog.cs" />
Add comment 220 221 <Compile Include="HelperClasses\PathStringCombiner.cs" />
Add comment 221 222 <Compile Include="MessageReceiver.cs">
Add comment 222 223 <SubType>Form</SubType>
Add comment 293 294 <DependentUpon>ResizeImage.xaml</DependentUpon>
Add comment 294 295 </Compile>
Add comment 295 296 <Compile Include="SystemMenu.cs" />
Add comment 297 Plus   <Compile Include="Tabs\ClosableTabItem.cs" />
Add comment 296 298 <Compile Include="Tabs\SavedTabsListGalleryItem.xaml.cs">
Add comment 297 299 <DependentUpon>SavedTabsListGalleryItem.xaml</DependentUpon>
Add comment 298 300 </Compile>
Add comment 329 331 <Compile Include="ItemPopup.xaml.cs">
Add comment 330 332 <DependentUpon>ItemPopup.xaml</DependentUpon>
Add comment 331 333 </Compile>
Add comment 332 Minus   <Compile Include="HelperClasses\NavigationLog.cs" />
Add comment 333 334 <Compile Include="PreviewMedia.cs">
Add comment 334 335 <SubType>Form</SubType>
Add comment 335 336 </Compile>
Add comment 485 486 <Compile Include="HelperClasses\ClipBoardMonitor.cs">
Add comment 486 487 <SubType>Component</SubType>
Add comment 487 488 </Compile>
Add comment 488 Minus   <Compile Include="Tabs\ClosableTabItem.cs" />
Add comment 489 <Compile Include="MainWindow.xaml.cs">
Add comment 490 <DependentUpon>MainWindow.xaml</DependentUpon>
Add comment 491 <SubType>Code</SubType>
Add comment 1157 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Add comment 1158 <ProjectExtensions>
Add comment 1159 <VisualStudio>
Add comment 1160 Minus   <UserProperties BuildVersion_BuildVersioningStyle="None.None.None.Increment" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" BuildVersion_UseGlobalSettings="True" />
Add comment 1160 Plus   <UserProperties BuildVersion_UseGlobalSettings="True" BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.None.Increment" />
Add comment 1161 </VisualStudio>
Add comment 1162 </ProjectExtensions>
Add comment 1163 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
BetterExplorer.csproj.user
/BExplorer/BetterExplorer/BetterExplorer.csproj.user
/BExplorer/BetterExplorer/BetterExplorer.csproj.user
MainWindow.xaml
/BExplorer/BetterExplorer/MainWindow.xaml-187+4
/BExplorer/BetterExplorer/MainWindow.xaml
Add comment 30 mc:Ignorable="d" SizeChanged="RibbonWindow_SizeChanged" MinWidth="640" MinHeight="480" >
Add comment 31
Add comment 32 <Ribbon:RibbonWindow.Resources>
Add comment 33 Minus   <ResourceDictionary>
Add comment 34 Minus   <ControlTemplate x:Key="HorizontalScrollBarTemplate" TargetType="{x:Type ScrollBar}">
Add comment 35 Minus   <Grid x:Name="Bg"
Add comment 36 Minus   Background="Transparent"
Add comment 37 Minus   SnapsToDevicePixels="True">
Add comment 38 Minus   <Grid.ColumnDefinitions>
Add comment 39 Minus   <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
Add comment 40 Minus   <ColumnDefinition Width="1E-05*" />
Add comment 41 Minus   <ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}" />
Add comment 42 Minus   </Grid.ColumnDefinitions>
Add comment 43 Minus   <RepeatButton Command="ScrollBar.LineLeftCommand"
Add comment 44 Minus   IsEnabled="{TemplateBinding IsMouseOver}"
Add comment 45 Minus   Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="LeftArrow">
Add comment 46 Minus   <RepeatButton.Style>
Add comment 47 Minus   <Style TargetType="{x:Type RepeatButton}">
Add comment 48 Minus   <Setter Property="OverridesDefaultStyle" Value="True" />
Add comment 49 Minus   <Setter Property="Focusable" Value="False" />
Add comment 50 Minus   <Setter Property="IsTabStop" Value="False" />
Add comment 51 Minus   <Setter Property="Template">
Add comment 52 Minus   <Setter.Value>
Add comment 53 Minus   <ControlTemplate TargetType="{x:Type RepeatButton}">
Add comment 54 Minus   <Border Width="18"
Add comment 55 Minus   Height="18"
Add comment 56 Minus   Background="{x:Null}">
Add comment 57 Minus   <Path Data=" M 8 15 L 8 3 L 2 9 Z" Fill="Black" />
Add comment 58 Minus   </Border>
Add comment 59 Minus   </ControlTemplate>
Add comment 60 Minus   </Setter.Value>
Add comment 61 Minus   </Setter>
Add comment 62 Minus   </Style>
Add comment 63 Minus   </RepeatButton.Style>
Add comment 64 Minus   </RepeatButton>
Add comment 65 Minus   <RepeatButton Grid.Column="2"
Add comment 66 Minus   Command="ScrollBar.LineRightCommand"
Add comment 67 Minus   IsEnabled="{TemplateBinding IsMouseOver}"
Add comment 68 Minus   Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="RightArrow">
Add comment 69 Minus   <RepeatButton.Style>
Add comment 70 Minus   <Style TargetType="{x:Type RepeatButton}">
Add comment 71 Minus   <Setter Property="OverridesDefaultStyle" Value="True" />
Add comment 72 Minus   <Setter Property="Focusable" Value="False" />
Add comment 73 Minus   <Setter Property="IsTabStop" Value="False" />
Add comment 74 Minus   <Setter Property="Template">
Add comment 75 Minus   <Setter.Value>
Add comment 76 Minus   <ControlTemplate TargetType="{x:Type RepeatButton}">
Add comment 77 Minus   <Border Width="18"
Add comment 78 Minus   Height="18"
Add comment 79 Minus   Background="{x:Null}">
Add comment 80 Minus   <Path Data=" M 9 15 L 9 3 L 15 9 Z" Fill="Black" />
Add comment 81 Minus   </Border>
Add comment 82 Minus   </ControlTemplate>
Add comment 83 Minus   </Setter.Value>
Add comment 84 Minus   </Setter>
Add comment 85 Minus   </Style>
Add comment 86 Minus   </RepeatButton.Style>
Add comment 87 Minus   </RepeatButton>
Add comment 88 Minus   </Grid>
Add comment 89 Minus   <ControlTemplate.Triggers>
Add comment 90 Minus   <Trigger Property="IsEnabled" Value="False">
Add comment 91 Minus   <Setter TargetName="Bg" Property="Background" Value="#FFF4F4F4" />
Add comment 92 Minus   </Trigger>
Add comment 93 Minus   </ControlTemplate.Triggers>
Add comment 94 Minus   </ControlTemplate>
Add comment 95 Minus   <ControlTemplate x:Key="ScrollViewerTemplate" TargetType="{x:Type ScrollViewer}">
Add comment 96 Minus   <Grid x:Name="Grid" Background="Transparent">
Add comment 97 Minus   <Grid.ColumnDefinitions>
Add comment 98 Minus   <ColumnDefinition Width="*" />
Add comment 99 Minus   <ColumnDefinition Width="Auto" />
Add comment 100 Minus   </Grid.ColumnDefinitions>
Add comment 101 Minus   <Grid.RowDefinitions>
Add comment 102 Minus   <RowDefinition Height="*" />
Add comment 103 Minus   <RowDefinition Height="Auto" />
Add comment 104 Minus   </Grid.RowDefinitions>
Add comment 105 Minus   <Rectangle x:Name="Corner"
Add comment 106 Minus   Grid.Row="1"
Add comment 107 Minus   Grid.Column="1"
Add comment 108 Minus   Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
Add comment 109 Minus   <ScrollBar x:Name="PART_HorizontalScrollBar"
Add comment 110 Minus   Grid.Row="0"
Add comment 111 Minus   Grid.Column="0"
Add comment 112 Minus   AutomationProperties.AutomationId="HorizontalScrollBar"
Add comment 113 Minus   Cursor="Arrow"
Add comment 114 Minus   Maximum="{TemplateBinding ScrollableWidth}"
Add comment 115 Minus   Minimum="0"
Add comment 116 Minus   Orientation="Horizontal"
Add comment 117 Minus   Template="{DynamicResource HorizontalScrollBarTemplate}"
Add comment 118 Minus   ViewportSize="{TemplateBinding ViewportWidth}"
Add comment 119 Minus   Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
Add comment 120 Minus   Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
Add comment 121 Minus   <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
Add comment 122 Minus   Grid.Row="0"
Add comment 123 Minus   Grid.Column="0"
Add comment 124 Minus   Margin="0,2,0,0"
Add comment 125 Minus   CanContentScroll="{TemplateBinding CanContentScroll}"
Add comment 126 Minus   CanHorizontallyScroll="False"
Add comment 127 Minus   CanVerticallyScroll="False"
Add comment 128 Minus   Content="{TemplateBinding Content}"
Add comment 129 Minus   ContentTemplate="{TemplateBinding ContentTemplate}" />
Add comment 130 Minus   </Grid>
Add comment 131 Minus   <ControlTemplate.Triggers>
Add comment 132 Minus   <Trigger Property="ComputedHorizontalScrollBarVisibility" Value="Visible">
Add comment 133 Minus   <Setter TargetName="PART_ScrollContentPresenter" Property="Margin" Value="15,2,15,0" />
Add comment 134 Minus   </Trigger>
Add comment 135 Minus   </ControlTemplate.Triggers>
Add comment 136 Minus   </ControlTemplate>
Add comment 137 Minus   <ControlTemplate x:Key="ScrollableTabControlTemplate" TargetType="{x:Type TabControl}">
Add comment 138 Minus   <Grid ClipToBounds="True"
Add comment 139 Minus   KeyboardNavigation.TabNavigation="Local"
Add comment 140 Minus   SnapsToDevicePixels="True">
Add comment 141 Minus   <Grid.ColumnDefinitions>
Add comment 142 Minus   <ColumnDefinition x:Name="ColumnDefinition0" />
Add comment 143 Minus   <ColumnDefinition x:Name="ColumnDefinition1" Width="0" />
Add comment 144 Minus   </Grid.ColumnDefinitions>
Add comment 145 Minus   <Grid.RowDefinitions>
Add comment 146 Minus   <RowDefinition x:Name="RowDefinition0" Height="Auto" />
Add comment 147 Minus   <RowDefinition x:Name="RowDefinition1" Height="*" />
Add comment 148 Minus   </Grid.RowDefinitions>
Add comment 149 Minus  
Add comment 150 Minus   <Border x:Name="ContentPanel"
Add comment 151 Minus   Grid.Row="1"
Add comment 152 Minus   Grid.Column="0"
Add comment 153 Minus   Margin="0,0,0,0"
Add comment 154 Minus   Background="{TemplateBinding Background}"
Add comment 155 Minus   BorderBrush="{TemplateBinding BorderBrush}"
Add comment 156 Minus   BorderThickness="0,1,0,0"
Add comment 157 Minus   KeyboardNavigation.DirectionalNavigation="Contained"
Add comment 158 Minus   KeyboardNavigation.TabIndex="2"
Add comment 159 Minus   KeyboardNavigation.TabNavigation="Local">
Add comment 160 Minus   <ContentPresenter x:Name="PART_SelectedContentHost"
Add comment 161 Minus   Margin="{TemplateBinding Padding}"
Add comment 162 Minus   Content="{TemplateBinding SelectedContent}"
Add comment 163 Minus   ContentSource="SelectedContent"
Add comment 164 Minus   ContentStringFormat="{TemplateBinding SelectedContentStringFormat}"
Add comment 165 Minus   ContentTemplate="{TemplateBinding SelectedContentTemplate}"
Add comment 166 Minus   SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
Add comment 167 Minus   </Border>
Add comment 168 Minus  
Add comment 169 Minus   <ScrollViewer x:Name="svTabBar" Margin="0,0,0,-1"
Add comment 170 Minus   HorizontalScrollBarVisibility="Auto"
Add comment 171 Minus   PreviewMouseWheel="ScrollViewer_PreviewMouseWheel"
Add comment 172 Minus   Template="{DynamicResource ScrollViewerTemplate}"
Add comment 173 Minus   VerticalScrollBarVisibility="Disabled">
Add comment 174 Minus   <TabPanel x:Name="HeaderPanel"
Add comment 175 Minus   Margin="0,2,2,1"
Add comment 176 Minus   IsItemsHost="True"
Add comment 177 Minus   KeyboardNavigation.TabIndex="1" />
Add comment 178 Minus   </ScrollViewer>
Add comment 179 Minus  
Add comment 180 Minus  
Add comment 181 Minus   </Grid>
Add comment 182 Minus   <ControlTemplate.Triggers>
Add comment 183 Minus   <Trigger Property="TabStripPlacement" Value="Bottom">
Add comment 184 Minus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="1" />
Add comment 185 Minus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 186 Minus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 187 Minus   <Setter TargetName="RowDefinition1" Property="Height" Value="Auto" />
Add comment 188 Minus   <Setter TargetName="HeaderPanel" Property="Margin" Value="2,0,2,2" />
Add comment 189 Minus   </Trigger>
Add comment 190 Minus   <Trigger Property="TabStripPlacement" Value="Left">
Add comment 191 Minus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
Add comment 192 Minus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 193 Minus   <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="0" />
Add comment 194 Minus   <Setter TargetName="ContentPanel" Property="Grid.Column" Value="1" />
Add comment 195 Minus   <Setter TargetName="ColumnDefinition0" Property="Width" Value="Auto" />
Add comment 196 Minus   <Setter TargetName="ColumnDefinition1" Property="Width" Value="*" />
Add comment 197 Minus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 198 Minus   <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
Add comment 199 Minus   <Setter TargetName="HeaderPanel" Property="Margin" Value="2,2,0,2" />
Add comment 200 Minus   </Trigger>
Add comment 201 Minus   <Trigger Property="TabStripPlacement" Value="Right">
Add comment 202 Minus   <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
Add comment 203 Minus   <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
Add comment 204 Minus   <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="1" />
Add comment 205 Minus   <Setter TargetName="ContentPanel" Property="Grid.Column" Value="0" />
Add comment 206 Minus   <Setter TargetName="ColumnDefinition0" Property="Width" Value="*" />
Add comment 207 Minus   <Setter TargetName="ColumnDefinition1" Property="Width" Value="Auto" />
Add comment 208 Minus   <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
Add comment 209 Minus   <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
Add comment 210 Minus   <Setter TargetName="HeaderPanel" Property="Margin" Value="0,2,2,2" />
Add comment 211 Minus   </Trigger>
Add comment 212 Minus   <Trigger Property="IsEnabled" Value="False">
Add comment 213 Minus   <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
Add comment 214 Minus   </Trigger>
Add comment 215 Minus   </ControlTemplate.Triggers>
Add comment 216 Minus   </ControlTemplate>
Add comment 217 Minus   </ResourceDictionary>
Add comment 33 Plus   <ResourceDictionary Source="Themes\generic.xaml" />
Add comment 218 34 </Ribbon:RibbonWindow.Resources>
Add comment 219 35
Add comment 220 36 <Grid x:Name="grid1">
Add comment 1220 1036 BorderBrush="Magenta"
Add comment 1221 1037 Header="{DynamicResource ctbLibrariesCP}"
Add comment 1222 1038 Visibility="Collapsed"
Add comment 1223 Minus   MinWidth="100"/>
Add comment 1039 Plus   MinWidth="120"/>
Add comment 1224 1040 <Ribbon:RibbonContextualTabGroup x:Name="ctgDrive"
Add comment 1225 1041 Background="LightBlue"
Add comment 1226 1042 BorderBrush="Blue"
Add comment 3115 2931 SelectedIndex="0"
Add comment 3116 2932 SnapsToDevicePixels="True"
Add comment 3117 2933 SelectionChanged="tabControl1_SelectionChanged"
Add comment 3118 Minus   Template="{DynamicResource ScrollableTabControlTemplate}" PreviewMouseWheel="tabControl1_PreviewMouseWheel_1">
Add comment 2934 Plus   Template="{StaticResource ScrollableTabControlTemplate}"
Add comment 2935 Plus   >
Add comment 3119 2936 <TabControl.ItemsPanel>
Add comment 3120 2937 <ItemsPanelTemplate>
Add comment 3121 2938 <StackPanel IsItemsHost="True" Orientation="Horizontal" />
MainWindow.xaml.cs
/BExplorer/BetterExplorer/MainWindow.xaml.cs-54+26
/BExplorer/BetterExplorer/MainWindow.xaml.cs
Add comment 850 Dispatcher.BeginInvoke(DispatcherPriority.Background, (ThreadStart)(() =>
Add comment 851 {
Add comment 852
Add comment 853 Plus   try
Add comment 854 Plus   {
Add comment 853 855 IShellView isv = Explorer.GetShellView();
Add comment 854 856 Collumns[] AllAvailColls = Explorer.AvailableColumns(true);
Add comment 855 857
Add comment 856 858 SetupColumnsButton(AllAvailColls);
Add comment 857 859
Add comment 858 860 SetSortingAndGroupingButtons();
Add comment 861 Plus   }
Add comment 862 Plus   catch (Exception)
Add comment 863 Plus   {
Add comment 859 864
Add comment 865 Plus   }
Add comment 860 866
Add comment 867 Plus  
Add comment 861 868 }));
Add comment 862 869
Add comment 863 870 IsViewSelection = false;
Add comment 2956 2963 if ((Explorer.NavigationLog.CurrentLocation.IsFolder || Explorer.NavigationLog.CurrentLocation.IsDrive)
Add comment 2957 2964 && Explorer.NavigationLog.CurrentLocation.IsFileSystemObject)
Add comment 2958 2965 {
Add comment 2959 Minus   FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName);
Add comment 2960 Minus   fsw.Owner = this;
Add comment 2966 Plus   FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName) { Owner = this };
Add comment 2961 2967 fsw.Show();
Add comment 2962 2968 }
Add comment 2963 2969 }
Add comment 2966 2972
Add comment 2967 2973 private void btnSizeChart_Click(object sender, RoutedEventArgs e)
Add comment 2968 2974 {
Add comment 2969 Minus   FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName);
Add comment 2970 Minus   fsw.Owner = this;
Add comment 2975 Plus   FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName) { Owner = this };
Add comment 2971 2976 fsw.Show();
Add comment 2972 2977 }
Add comment 2973 2978
Add comment 3479 3484 }
Add comment 3480 3485 else
Add comment 3481 3486 {
Add comment 3482 Minus   Thread CopyThread = new Thread(new ParameterizedThreadStart(Explorer.DoDelete));
Add comment 3487 Plus   Thread CopyThread = new Thread(ExplorerBrowser.DoDelete);
Add comment 3483 3488 CopyThread.SetApartmentState(ApartmentState.STA);
Add comment 3484 3489 CopyThread.Start(Explorer.SelectedItems);
Add comment 3485 3490 }
Add comment 3939 3944
Add comment 3940 3945 private void btnRunAsAdmin_Click(object sender, RoutedEventArgs e)
Add comment 3941 3946 {
Add comment 3942 Minus   Explorer.RunExeAsAdmin(Explorer.SelectedItems[0].ParsingName);
Add comment 3947 Plus   ExplorerBrowser.RunExeAsAdmin(Explorer.SelectedItems[0].ParsingName);
Add comment 3943 3948 }
Add comment 3944 3949
Add comment 3945 3950 private void btnPin_Click(object sender, RoutedEventArgs e)
Add comment 4518 4523 }
Add comment 4519 4524 private void InitializeExplorerControl()
Add comment 4520 4525 {
Add comment 4526 Plus   Explorer.LVItemsColorCodes = this.LVItemsColor;
Add comment 4521 4527 Explorer.SelectionChanged += ExplorerBrowserControl_SelectionChanged;
Add comment 4522 4528 Explorer.NavigationComplete += Explorer_NavigationComplete;
Add comment 4523 4529 Explorer.MouseWheel += Explorer_MouseWheel;
Add comment 5073 5079 var scroll = (ScrollViewer)tabControl1.Template.FindName("svTabBar", tabControl1);
Add comment 5074 5080 scroll.ScrollToHorizontalOffset(scroll.HorizontalOffset - e.Delta);
Add comment 5075 5081 }
Add comment 5076 Minus   //else
Add comment 5077 Minus   //{
Add comment 5078 Minus   // Explorer.SetExplorerFocus();
Add comment 5079 Minus   // Explorer.SetActiveShell();
Add comment 5080 Minus   //}
Add comment 5081 5082 }
Add comment 5082 5083
Add comment 5083 5084 void r_OnMessageReceived(object sender, EventArgs e)
Add comment 7069 7070 /// </summary>
Add comment 7070 7071 /// <param name="PaneForChange">The pane for change (0x1 - Details, 0x2 - Preview, 0x3 - Navigation)</param>
Add comment 7071 7072 /// <param name="IsShow"></param>
Add comment 7072 Minus   private void ChangePaneVisibility(uint PaneForChange, bool IsShow)
Add comment 7073 Plus   private async void ChangePaneVisibility(uint PaneForChange, bool IsShow)
Add comment 7073 7074 {
Add comment 7074 7075
Add comment 7075 7076 ShellObject lastLoc = Explorer.NavigationLog.CurrentLocation;
Add comment 7077 Plus   await Task.Run(() =>
Add comment 7078 Plus   {
Add comment 7079 Plus   Dispatcher.Invoke(DispatcherPriority.Render, (ThreadStart)(() =>
Add comment 7080 Plus   {
Add comment 7081 Plus   Explorer.DestroyBrowser();
Add comment 7076 7082
Add comment 7077 7083
Add comment 7078 7084
Add comment 7079 Minus   Explorer = null;
Add comment 7080 Minus  
Add comment 7081 Minus   Explorer = new ExplorerBrowser();
Add comment 7082 Minus  
Add comment 7083 7085 switch (PaneForChange)
Add comment 7084 7086 {
Add comment 7085 7087 case 0x1:
Add comment 7153 7155 break;
Add comment 7154 7156 }
Add comment 7155 7157
Add comment 7158 Plus   Explorer.InitBrowser();
Add comment 7159 Plus   }));
Add comment 7160 Plus   });
Add comment 7156 7161
Add comment 7157 Minus   Explorer.LVItemsColorCodes = this.LVItemsColor;
Add comment 7158 Minus   Explorer.SelectionChanged += new EventHandler(ExplorerBrowserControl_SelectionChanged);
Add comment 7159 Minus   Explorer.NavigationComplete += new EventHandler<NavigationCompleteEventArgs>(Explorer_NavigationComplete);
Add comment 7160 Minus   Explorer.MouseWheel += Explorer_MouseWheel;
Add comment 7161 Minus   Explorer.ViewEnumerationComplete += new EventHandler(Explorer_ViewEnumerationComplete);
Add comment 7162 Minus   Explorer.NavigationPending += new EventHandler<NavigationPendingEventArgs>(Explorer_NavigationPending);
Add comment 7163 Minus   Explorer.GotFocus += new EventHandler(Explorer_GotFocus);
Add comment 7164 Minus   Explorer.ExplorerGotFocus += new EventHandler(Explorer_ExplorerGotFocus);
Add comment 7165 Minus   Explorer.RenameFinished += new EventHandler(Explorer_RenameFinished);
Add comment 7166 Minus   Explorer.KeyUP += new EventHandler<ExplorerKeyUPEventArgs>(Explorer_KeyUP);
Add comment 7167 Minus   Explorer.LostFocus += new EventHandler(Explorer_LostFocus);
Add comment 7168 Minus   Explorer.NavigationOptions.PaneVisibility.Commands = PaneVisibilityState.Hide;
Add comment 7169 Minus   Explorer.NavigationOptions.PaneVisibility.CommandsOrganize = PaneVisibilityState.Hide;
Add comment 7170 Minus   Explorer.NavigationOptions.PaneVisibility.CommandsView = PaneVisibilityState.Hide;
Add comment 7171 Minus   Explorer.ItemsChanged += new EventHandler(Explorer_ItemsChanged);
Add comment 7172 Minus   Explorer.ContentOptions.FullRowSelect = true;
Add comment 7173 Minus   Explorer.ClientSizeChanged += new EventHandler(ExplorerBrowserControl_ClientSizeChanged);
Add comment 7174 Minus   Explorer.Paint += new System.Windows.Forms.PaintEventHandler(ExplorerBrowserControl_Paint);
Add comment 7175 Minus   //Explorer.ViewChanged += new EventHandler<ViewChangedEventArgs>(Explorer_ViewChanged);
Add comment 7176 Minus   Explorer.ItemHot += Explorer_ItemHot;
Add comment 7177 Minus   Explorer.ItemMouseMiddleClick += Explorer_ItemMouseMiddleClick;
Add comment 7178 Minus   Explorer.ExplorerBrowserMouseLeave += new EventHandler(Explorer_ExplorerBrowserMouseLeave);
Add comment 7179 Minus   Explorer.DragDrop += new System.Windows.Forms.DragEventHandler(Explorer_DragDrop);
Add comment 7162 Plus   //InitializeExplorerControl();
Add comment 7180 7163
Add comment 7181 7164
Add comment 7182 7165 isGoingBackOrForward = true;
Add comment 7183 7166
Add comment 7184 Minus   Explorer.Width = (int)ShellVView.Width;
Add comment 7185 Minus   Explorer.Height = (int)ShellVView.Height;
Add comment 7167 Plus   //Explorer.Width = (int)ShellVView.Width;
Add comment 7168 Plus   //Explorer.Height = (int)ShellVView.Height;
Add comment 7169 Plus  
Add comment 7186 7170 Explorer.Navigate(lastLoc);
Add comment 7187 Minus   ShellVView.Child = Explorer;
Add comment 7171 Plus   //ShellVView.Child = Explorer;
Add comment 7188 7172 }
Add comment 7189 7173
Add comment 7190 7174 void Explorer_ItemMouseMiddleClick(object sender, ExplorerMouseEventArgs e) {
Add comment 9601 9585 {
Add comment 9602 9586 (tabControl1.SelectedItem as ClosableTabItem).BringIntoView();
Add comment 9603 9587 }
Add comment 9604 Minus   }
Add comment 9605 Minus  
Add comment 9606 Minus   private void tabControl1_MouseWheel(object sender, MouseWheelEventArgs e)
Add comment 9607 Minus   {
Add comment 9608 Minus   var scroll = (ScrollViewer)tabControl1.Template.FindName("svTabBar", tabControl1);
Add comment 9609 Minus   }
Add comment 9610 Minus  
Add comment 9611 Minus   private void tabControl1_PreviewMouseWheel_1(object sender, MouseWheelEventArgs e)
Add comment 9612 Minus   {
Add comment 9613 Minus  
Add comment 9614 Minus   var scroll = (ScrollViewer)tabControl1.Template.FindName("svTabBar", tabControl1);
Add comment 9615 9588 }
Add comment 9616 Minus  
Add comment 9617 9589 #endregion
Add comment 9618 9590
Add comment 9619 9591 #region Customize Quick Access Toolbar
XamlCombine.exe
/fluent_72f5e3ec252b/Fluent/Fluent/Themes/XamlCombine.exe
/fluent_72f5e3ec252b/Fluent/Fluent/Themes/XamlCombine.exe
System.Windows.Interactivity.dll
/fluent_72f5e3ec252b/Fluent/System.Windows.Interactivity.dll
/fluent_72f5e3ec252b/Fluent/System.Windows.Interactivity.dll
Newtonsoft.Json.Net40.dll
/SharpBox/Resources/Newtonsoft.Json.Net40.dll
/SharpBox/Resources/Newtonsoft.Json.Net40.dll
ExplorerBrowser.cs
/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/ExplorerBrowser/ExplorerBrowser.cs
WindowsAPI.cs
/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/WindowsAPI.cs
/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/WindowsAPI.cs
.gitignore
/.gitignore
/.gitignore
BExplorer.sln
/BExplorer.sln
/BExplorer.sln