|
7 | 7 | xmlns:theme="clr-namespace:YukkuriMovieMaker.Theme;assembly=YukkuriMovieMaker.Plugin" |
8 | 8 | xmlns:c="clr-namespace:YukkuriMovieMaker.Controls;assembly=YukkuriMovieMaker.Controls" |
9 | 9 | mc:Ignorable="d" |
10 | | - d:DesignHeight="450" d:DesignWidth="800"> |
| 10 | + d:DesignHeight="450" d:DesignWidth="800" |
| 11 | + PreviewMouseDown="FileExplorerControl_PreviewMouseDown"> |
11 | 12 |
|
12 | 13 | <UserControl.Resources> |
13 | 14 | <Style x:Key="GridViewColumnHeaderGripper" |
|
28 | 29 | </UserControl.Resources> |
29 | 30 |
|
30 | 31 | <Grid PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown"> |
31 | | - <Grid.RowDefinitions> |
| 32 | + <Grid.RowDefinitions> |
32 | 33 | <RowDefinition Height="Auto"/> |
33 | 34 | <RowDefinition Height="*"/> |
34 | 35 | </Grid.RowDefinitions> |
|
37 | 38 | <ColumnDefinition Width="*"/> |
38 | 39 | </Grid.ColumnDefinitions> |
39 | 40 |
|
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" /> |
44 | 62 | </StackPanel> |
45 | 63 |
|
46 | 64 | <TreeView Name="DirectoryTree" |
|
190 | 208 | AllowsTransparency="True" |
191 | 209 | PopupAnimation="Fade" |
192 | 210 | 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"> |
194 | 212 | <ContentPresenter x:Name="PreviewContent"/> |
195 | 213 | </Border> |
196 | 214 | </Popup> |
|
0 commit comments