Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit ceaa02d

Browse files
authored
Add files via upload
1 parent 8d6870a commit ceaa02d

7 files changed

Lines changed: 344 additions & 146 deletions

FileExplorerControl.xaml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
xmlns:theme="clr-namespace:YukkuriMovieMaker.Theme;assembly=YukkuriMovieMaker.Plugin"
88
xmlns:c="clr-namespace:YukkuriMovieMaker.Controls;assembly=YukkuriMovieMaker.Controls"
99
mc:Ignorable="d"
10-
d:DesignHeight="450" d:DesignWidth="800">
10+
d:DesignHeight="450" d:DesignWidth="800"
11+
PreviewMouseDown="FileExplorerControl_PreviewMouseDown">
1112

1213
<UserControl.Resources>
1314
<Style x:Key="GridViewColumnHeaderGripper"
@@ -28,7 +29,7 @@
2829
</UserControl.Resources>
2930

3031
<Grid PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown">
31-
<Grid.RowDefinitions>
32+
<Grid.RowDefinitions>
3233
<RowDefinition Height="Auto"/>
3334
<RowDefinition Height="*"/>
3435
</Grid.RowDefinitions>
@@ -37,10 +38,27 @@
3738
<ColumnDefinition Width="*"/>
3839
</Grid.ColumnDefinitions>
3940

40-
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" Margin="0,5,5,5" VerticalAlignment="Center">
41-
<TextBox x:Name="SearchTextBox" Width="200" VerticalAlignment="Center" Margin="0,0,5,0" KeyDown="SearchTextBox_KeyDown" />
42-
<Button x:Name="SearchButton" Content="検索" Click="SearchButton_Click" />
43-
<CheckBox x:Name="SearchSubdirectoriesCheckBox" Content="サブフォルダも検索" VerticalAlignment="Center" Margin="10,0,0,0" IsChecked="True" />
41+
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" Margin="5,5,5,5" VerticalAlignment="Center">
42+
<Button x:Name="BackButton" Click="BackButton_Click" Margin="0,0,2,0" IsEnabled="False" Width="26" Height="20" Padding="4">
43+
<Path Data="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"
44+
Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}"
45+
Stretch="Uniform" />
46+
</Button>
47+
48+
<Button x:Name="ForwardButton" Click="ForwardButton_Click" Margin="0,0,10,0" IsEnabled="False" Width="26" Height="20" Padding="4">
49+
<Path Data="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"
50+
Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}"
51+
Stretch="Uniform" />
52+
</Button>
53+
54+
<Button x:Name="ReloadButton" Click="ReloadButton_Click" Margin="0,0,10,0" Width="26" Height="20" Padding="4">
55+
<Path Data="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"
56+
Fill="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}"
57+
Stretch="Uniform" />
58+
</Button>
59+
60+
<TextBox x:Name="SearchTextBox" Width="200" VerticalAlignment="Center" Margin="0,0,5,0" KeyDown="SearchTextBox_KeyDown" TextChanged="SearchTextBox_TextChanged" />
61+
<CheckBox x:Name="SearchSubdirectoriesCheckBox" Content="サブフォルダも検索" VerticalAlignment="Center" Margin="10,0,0,0" IsChecked="True" />
4462
</StackPanel>
4563

4664
<TreeView Name="DirectoryTree"
@@ -190,7 +208,7 @@
190208
AllowsTransparency="True"
191209
PopupAnimation="Fade"
192210
StaysOpen="False">
193-
<Border Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static theme:YMM4Colors.IconBrushKey}}" BorderThickness="1" Padding="10" CornerRadius="8" Width="300" MaxHeight="400">
211+
<Border x:Name="PreviewBorder" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static theme:YMM4Colors.IconBrushKey}}" BorderThickness="1" Padding="10" CornerRadius="8" Width="300" MaxHeight="400">
194212
<ContentPresenter x:Name="PreviewContent"/>
195213
</Border>
196214
</Popup>

0 commit comments

Comments
 (0)