|
14 | 14 |
|
15 | 15 | <UserControl.Resources> |
16 | 16 | <!-- 詳細ListView --> |
| 17 | + <ContextMenu x:Key="ItemContextMenu"> |
| 18 | + <MenuItem Header="大きく表示" Click="ShowLargePreview_Click"/> |
| 19 | + </ContextMenu> |
| 20 | + |
17 | 21 | <Style x:Key="DetailsViewItemContainerStyle" TargetType="ListViewItem"> |
| 22 | + <Setter Property="ContextMenu" Value="{StaticResource ItemContextMenu}"/> |
18 | 23 | <Setter Property="Template"> |
19 | 24 | <Setter.Value> |
20 | 25 | <ControlTemplate TargetType="ListViewItem"> |
|
40 | 45 | </Style> |
41 | 46 |
|
42 | 47 | <Style x:Key="IconViewItemContainerStyle" TargetType="ListViewItem"> |
| 48 | + <Setter Property="ContextMenu" Value="{StaticResource ItemContextMenu}"/> |
43 | 49 | <Setter Property="VerticalContentAlignment" Value="Center"/> |
44 | 50 | </Style> |
45 | 51 |
|
|
158 | 164 | <ColumnDefinition Width="250"/> |
159 | 165 | <ColumnDefinition Width="Auto"/> |
160 | 166 | <ColumnDefinition Width="*"/> |
| 167 | + <ColumnDefinition x:Name="PreviewColumnSplitter" Width="Auto"/> |
| 168 | + <ColumnDefinition x:Name="PreviewColumn" Width="Auto"/> |
161 | 169 | </Grid.ColumnDefinitions> |
162 | 170 |
|
163 | 171 |
|
|
204 | 212 | </c:DropDownButton> |
205 | 213 | </Grid> |
206 | 214 |
|
207 | | - <DockPanel Grid.Row="1" Grid.Column="0"> |
208 | | - <c:CommonComboBox x:Name="FavoritesComboBox" |
209 | | - DockPanel.Dock="Top" |
210 | | - Margin="0,0,0,5" |
211 | | - ItemsSource="{Binding Source={x:Static settins:FileExplorerSettings.Default}, Path=Favorites}" |
212 | | - DisplayMemberPath="Name" |
213 | | - SelectedValuePath="FullPath" |
214 | | - ValueChanged="FavoritesComboBox_ValueChanged"/> |
215 | | - |
216 | | - <TreeView x:Name="DirectoryTree" |
217 | | - SelectedItemChanged="DirectoryTree_SelectedItemChanged" |
218 | | - ContextMenuOpening="DirectoryTree_ContextMenuOpening" |
219 | | - MouseDoubleClick="DirectoryTree_MouseDoubleClick"> |
220 | | - <TreeView.ContextMenu> |
221 | | - <ContextMenu> |
222 | | - <MenuItem x:Name="AddFavoriteMenuItem" |
223 | | - Header="お気に入りに追加" |
224 | | - Click="AddFavorite_Click"/> |
225 | | - <MenuItem x:Name="RemoveFavoriteMenuItem" |
226 | | - Header="お気に入りから削除" |
227 | | - Click="RemoveFavorite_Click"/> |
228 | | - </ContextMenu> |
229 | | - </TreeView.ContextMenu> |
230 | | - </TreeView> |
| 215 | + <DockPanel Grid.Row="1" Grid.Column="0"> |
| 216 | + <c:CommonComboBox x:Name="FavoritesComboBox" |
| 217 | + DockPanel.Dock="Top" |
| 218 | + Margin="0,0,0,5" |
| 219 | + ItemsSource="{Binding Source={x:Static settins:FileExplorerSettings.Default}, Path=Favorites}" |
| 220 | + DisplayMemberPath="Name" |
| 221 | + SelectedValuePath="FullPath" |
| 222 | + ValueChanged="FavoritesComboBox_ValueChanged"/> |
| 223 | + |
| 224 | + <TreeView x:Name="DirectoryTree" |
| 225 | + SelectedItemChanged="DirectoryTree_SelectedItemChanged" |
| 226 | + ContextMenuOpening="DirectoryTree_ContextMenuOpening" |
| 227 | + MouseDoubleClick="DirectoryTree_MouseDoubleClick"> |
| 228 | + <TreeView.ContextMenu> |
| 229 | + <ContextMenu> |
| 230 | + <MenuItem x:Name="AddFavoriteMenuItem" |
| 231 | + Header="お気に入りに追加" |
| 232 | + Click="AddFavorite_Click"/> |
| 233 | + <MenuItem x:Name="RemoveFavoriteMenuItem" |
| 234 | + Header="お気に入りから削除" |
| 235 | + Click="RemoveFavorite_Click"/> |
| 236 | + </ContextMenu> |
| 237 | + </TreeView.ContextMenu> |
| 238 | + </TreeView> |
231 | 239 | </DockPanel> |
232 | 240 |
|
233 | 241 | <GridSplitter Grid.Row="1" Grid.Column="1" |
|
265 | 273 | </ListView> |
266 | 274 | </Grid> |
267 | 275 |
|
| 276 | + <GridSplitter x:Name="LargePreviewSplitter" |
| 277 | + Grid.Row="1" Grid.Column="3" |
| 278 | + HorizontalAlignment="Center" |
| 279 | + VerticalAlignment="Stretch" |
| 280 | + Width="5" |
| 281 | + Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" |
| 282 | + Visibility="Collapsed"/> |
| 283 | + |
| 284 | + <DockPanel x:Name="LargePreviewPane" |
| 285 | + Grid.Row="1" Grid.Column="4" |
| 286 | + MinWidth="200" |
| 287 | + Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" |
| 288 | + Visibility="Collapsed"> |
| 289 | + <Border BorderBrush="{DynamicResource {x:Static theme:YMM4Colors.IconBrushKey}}" BorderThickness="0.5" Margin="5,0,5,5"> |
| 290 | + <Grid> |
| 291 | + <Grid.RowDefinitions> |
| 292 | + <RowDefinition Height="Auto"/> |
| 293 | + <RowDefinition Height="*"/> |
| 294 | + <RowDefinition Height="Auto"/> |
| 295 | + </Grid.RowDefinitions> |
| 296 | + <Grid Grid.Row="0" Margin="5,5,5,0"> |
| 297 | + <Grid.ColumnDefinitions> |
| 298 | + <ColumnDefinition Width="*" /> |
| 299 | + <ColumnDefinition Width="Auto" /> |
| 300 | + </Grid.ColumnDefinitions> |
| 301 | + <TextBlock x:Name="PreviewName" Grid.Column="0" FontWeight="Bold" TextWrapping="Wrap" VerticalAlignment="Top"/> |
| 302 | + <Button Content="✕" Click="ClosePreview_Click" Grid.Column="1" Padding="5,2" ToolTip="閉じる" VerticalAlignment="Top"/> |
| 303 | + </Grid> |
| 304 | + |
| 305 | + <ContentControl x:Name="PreviewContentHost" Grid.Row="1" /> |
| 306 | + |
| 307 | + <Grid x:Name="MediaControlsPanel" Grid.Row="2" Margin="5,0,5,5" Visibility="Collapsed" > |
| 308 | + <Grid.ColumnDefinitions> |
| 309 | + <ColumnDefinition Width="Auto" /> |
| 310 | + <ColumnDefinition Width="*" /> |
| 311 | + </Grid.ColumnDefinitions> |
| 312 | + |
| 313 | + <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center"> |
| 314 | + <Button x:Name="PlayButton" Content="▶" Click="PlayButton_Click" Width="40" ToolTip="再生" /> |
| 315 | + <Button x:Name="PauseButton" Content="■" Click="PauseButton_Click" Width="40" ToolTip="一時停止" Visibility="Collapsed" /> |
| 316 | + </StackPanel> |
| 317 | + |
| 318 | + </Grid> |
| 319 | + </Grid> |
| 320 | + </Border> |
| 321 | + </DockPanel> |
| 322 | + |
268 | 323 |
|
269 | 324 | <Popup x:Name="PreviewPopup" |
270 | 325 | Placement="Mouse" |
|
0 commit comments