-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
608 lines (553 loc) · 35.6 KB
/
Copy pathMainWindow.xaml
File metadata and controls
608 lines (553 loc) · 35.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
<Window x:Class="OpenD2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:OpenD2"
mc:Ignorable="d"
Title="Watch Dogs 2 Explorer"
Height="1000" Width="1600"
WindowStartupLocation="CenterScreen"
Background="{StaticResource ModernBackgroundBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
FontFamily="Segoe UI"
FontSize="12">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Main Menu -->
<RowDefinition Height="Auto"/> <!-- Modern Toolbar -->
<RowDefinition Height="Auto"/> <!-- Breadcrumb -->
<RowDefinition Height="*"/> <!-- Main Content -->
<RowDefinition Height="Auto"/> <!-- Status Bar -->
</Grid.RowDefinitions>
<!-- ===== MAIN MENU ===== -->
<Menu Grid.Row="0" Background="{StaticResource ModernPanelBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
BorderThickness="0,0,0,1">
<MenuItem Header="File">
<MenuItem Header="Load FileList..." Command="{Binding LoadFileListCommand}" InputGestureText="Ctrl+O"/>
<Separator/>
<MenuItem Header="Exit" Command="{Binding ExitCommand}" InputGestureText="Alt+F4"/>
</MenuItem>
<MenuItem Header="Edit">
<MenuItem Header="Copy Path" Command="{Binding CopyPathCommand}" InputGestureText="Ctrl+C"/>
<MenuItem Header="Copy Name" Command="{Binding CopyNameCommand}" InputGestureText="Ctrl+Shift+C"/>
<Separator/>
<MenuItem Header="Search" Command="{Binding ClearSearchCommand}" InputGestureText="Ctrl+F"/>
</MenuItem>
<MenuItem Header="View">
<MenuItem Header="Refresh" Command="{Binding RefreshCommand}" InputGestureText="F5"/>
<Separator/>
<MenuItem Header="Show Debug Files" IsCheckable="True"
IsChecked="{Binding ShowDebugFiles}"/>
<Separator/>
<MenuItem Header="Program Settings..." Click="OnSettingsClicked"/>
</MenuItem>
<MenuItem Header="Help">
<MenuItem Header="About..." Click="OnAboutClicked"/>
</MenuItem>
</Menu>
<!-- ===== MODERN TOOLBAR ===== -->
<Border Grid.Row="1" Background="{StaticResource ModernPanelBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,0,1">
<Grid Height="48">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/> <!-- Navigation buttons -->
<ColumnDefinition Width="Auto"/> <!-- Separator -->
<ColumnDefinition Width="Auto"/> <!-- Main buttons -->
<ColumnDefinition Width="Auto"/> <!-- Separator -->
<ColumnDefinition Width="*"/> <!-- Search -->
<ColumnDefinition Width="Auto"/> <!-- Additional buttons -->
</Grid.ColumnDefinitions>
<!-- Navigation buttons -->
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="8,0">
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Back" Command="{Binding BackCommand}"
Content="" FontFamily="Segoe MDL2 Assets" FontSize="16"/>
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Forward" Command="{Binding ForwardCommand}"
Content="" FontFamily="Segoe MDL2 Assets" FontSize="16"/>
</StackPanel>
<!-- Separador -->
<Separator Grid.Column="1" Style="{StaticResource ModernSeparator}"/>
<!-- Main buttons -->
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0,0,8,0">
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Load FileList (Ctrl+O)" Command="{Binding LoadFileListCommand}"
Content="" FontFamily="Segoe MDL2 Assets"/>
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Refresh (F5)" Command="{Binding RefreshCommand}"
Content="" FontFamily="Segoe MDL2 Assets"/>
</StackPanel>
<!-- Separador -->
<Separator Grid.Column="3" Style="{StaticResource ModernSeparator}"/>
<!-- Modern search -->
<TextBox Grid.Column="4" x:Name="QuickSearchBox"
Style="{StaticResource ModernSearchTextBox}"
Text="{Binding QuickSearchTerm, UpdateSourceTrigger=PropertyChanged}"
Margin="8,8,8,8"
Width="280"/>
<!-- Additional buttons -->
<StackPanel Grid.Column="5" Orientation="Horizontal" Margin="0,0,8,0">
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Mods"
Click="OnModsClicked">
<Image Source="pack://application:,,,/Resources/script.png" Width="16" Height="16"/>
</Button>
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Run Game"
Command="{Binding RunGameCommand}"
Background="#2E7D32"
BorderBrush="#2E7D32"
Foreground="White"
Content=""
FontFamily="Segoe MDL2 Assets"/>
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Options"
Content="" FontFamily="Segoe MDL2 Assets"
Click="OnSettingsClicked"/>
<Button Style="{StaticResource ModernToolbarButton}"
ToolTip="Clear Search" Command="{Binding ClearSearchCommand}"
Content="" FontFamily="Segoe MDL2 Assets"/>
</StackPanel>
</Grid>
</Border>
<!-- ===== MODERN BREADCRUMB ===== -->
<Border Grid.Row="2" Background="{StaticResource ModernHeaderBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,0,1"
Padding="16,8">
<Grid Height="32">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<!-- Icon and label -->
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="" FontFamily="Segoe MDL2 Assets"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,0,8,0"/>
<TextBlock Text="Current path:" VerticalAlignment="Center"
Foreground="{StaticResource ModernSecondaryBrush}" FontSize="11"/>
</StackPanel>
<!-- Breadcrumb -->
<TextBox Grid.Column="1" Style="{StaticResource ModernBreadcrumb}"
Text="{Binding CurrentPath}"
Margin="8,0"/>
<!-- File counter -->
<Border Grid.Column="2" Background="{StaticResource ModernAccentBrush}"
CornerRadius="12" Padding="8,4" VerticalAlignment="Center">
<TextBlock Text="{Binding CurrentFileCount, StringFormat=' {0} files'}"
Foreground="White" FontSize="10" FontWeight="SemiBold"/>
</Border>
</Grid>
</Border>
<!-- ===== MAIN CONTENT ===== -->
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="280" MinWidth="200" MaxWidth="400"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" MinWidth="400"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="320" MinWidth="250" MaxWidth="500"/>
</Grid.ColumnDefinitions>
<!-- ===== LEFT PANEL: FOLDER TREE ===== -->
<Border Grid.Column="0" Background="{StaticResource ModernPanelBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,1,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Explorer header -->
<Border Grid.Row="0" Background="{StaticResource ModernHeaderBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,0,1"
Padding="16,12">
<StackPanel>
<TextBlock Text="EXPLORER" FontWeight="SemiBold" FontSize="13"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,0,0,4"/>
<TextBlock Text="Virtual FileList" FontSize="11"
Foreground="{StaticResource ModernSecondaryBrush}"/>
</StackPanel>
</Border>
<!-- TreeView Moderno -->
<TreeView x:Name="FolderTreeView" Grid.Row="1" Style="{StaticResource ModernTreeView}"
ItemsSource="{Binding RootFolders}"
SelectedItemChanged="OnFolderSelected"
ItemContainerStyle="{StaticResource ModernTreeViewItem}"
Padding="8,4">
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding SubFolders}">
<StackPanel Orientation="Horizontal" Margin="0,2">
<Image Source="{Binding Attributes, Converter={StaticResource FileTypeToIconConverter}}"
Width="16" Height="16"
Margin="0,0,8,0"
VerticalAlignment="Center"/>
<!-- Folder name -->
<TextBlock Text="{Binding Name}" VerticalAlignment="Center"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="12" FontWeight="SemiBold"/>
<!-- File counter (subtle) -->
<TextBlock Foreground="{StaticResource ModernSecondaryBrush}"
Margin="8,0,0,0" FontSize="10" VerticalAlignment="Center">
<TextBlock.Text>
<Binding Path="FileCount" StringFormat="({0})"/>
</TextBlock.Text>
</TextBlock>
</StackPanel>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
</TreeView>
</Grid>
</Border>
<!-- GridSplitter Moderno -->
<GridSplitter Grid.Column="1" Style="{StaticResource ModernGridSplitter}"
Width="8" VerticalAlignment="Stretch"/>
<!-- ===== PANEL CENTRAL: LISTA DE ARCHIVOS ===== -->
<Grid Grid.Column="2" Background="{StaticResource ModernBackgroundBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- View options bar -->
<Border Grid.Row="0" Background="{StaticResource ModernPanelBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,0,1">
<StackPanel Orientation="Horizontal" Height="44" Margin="16,0">
<TextBlock Text="View:" VerticalAlignment="Center" Margin="0,0,12,0"
Foreground="{StaticResource ModernSecondaryBrush}" FontSize="12"/>
<!-- View buttons -->
<ToggleButton Content="Details" Padding="12,6" Margin="0,0,4,0"
Background="{StaticResource ModernAccentBrush}" Foreground="White"
FontSize="11" FontWeight="Medium"/>
<ToggleButton Content="Icons" Padding="12,6" Margin="0,0,4,0"
Background="Transparent" Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11"/>
<ToggleButton Content="List" Padding="12,6"
Background="Transparent" Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11"/>
<!-- Separator -->
<Separator Style="{StaticResource ModernSeparator}" Margin="12,0"/>
<!-- Debug filter -->
<CheckBox Content="Debug Files" Margin="8,0,0,0" VerticalAlignment="Center"
IsChecked="{Binding FilterDebugFiles}"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11"/>
</StackPanel>
</Border>
<!-- DataGrid Moderno -->
<DataGrid Grid.Row="1" Style="{StaticResource ModernDataGrid}"
ItemsSource="{Binding CurrentItems}"
SelectedItem="{Binding SelectedFile, Mode=TwoWay}"
SelectionMode="Extended"
MouseDoubleClick="OnExplorerItemDoubleClick"
ColumnHeaderStyle="{StaticResource ModernDataGridColumnHeader}"
CellStyle="{StaticResource ModernDataGridCell}"
Margin="0,4,0,0">
<DataGrid.Resources>
<ContextMenu x:Key="FileRowContextMenu">
<MenuItem Header="Open With">
<MenuItem Header="Hex Reader"
IsEnabled="{Binding CanOpenWithHexReader}"
Click="OnOpenWithHexReaderClicked"/>
<MenuItem Header="XML Reader"
IsEnabled="{Binding CanOpenWithXmlReader}"
Click="OnOpenWithXmlReaderClicked"/>
</MenuItem>
</ContextMenu>
</DataGrid.Resources>
<DataGrid.RowStyle>
<Style TargetType="DataGridRow" BasedOn="{StaticResource ModernDataGridRow}">
<Setter Property="ContextMenu">
<Setter.Value>
<StaticResource ResourceKey="FileRowContextMenu"/>
</Setter.Value>
</Setter>
</Style>
</DataGrid.RowStyle>
<DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>
<Border Background="{StaticResource ModernHeaderBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
BorderThickness="0,0,0,1"
Padding="10,6"
Margin="0,8,0,4">
<DockPanel LastChildFill="True">
<Border DockPanel.Dock="Left"
Background="{StaticResource ModernAccentBrush}"
CornerRadius="10"
Padding="8,2"
Margin="0,0,8,0">
<TextBlock Text="{Binding Name}"
Foreground="White"
FontSize="10"
FontWeight="SemiBold"/>
</Border>
<TextBlock Text="{Binding ItemCount, StringFormat={}{0} items}"
Foreground="{StaticResource ModernSecondaryBrush}"
VerticalAlignment="Center"
FontSize="11"/>
</DockPanel>
</Border>
</DataTemplate>
</GroupStyle.HeaderTemplate>
</GroupStyle>
</DataGrid.GroupStyle>
<DataGrid.Columns>
<!-- Type/Icon column -->
<DataGridTemplateColumn Header="" Width="40" IsReadOnly="True" CanUserSort="False">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Image Source="{Binding FileType, Converter={StaticResource FileTypeToIconConverter}}"
Width="16" Height="16"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!-- Name column -->
<DataGridTextColumn Header="Name" Binding="{Binding Name}"
Width="*" CanUserSort="True" SortDirection="Ascending">
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="TextTrimming" Value="CharacterEllipsis"/>
<Setter Property="ToolTip" Value="{Binding Name}"/>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<!-- Type column (extension) -->
<DataGridTextColumn Header="Type" Binding="{Binding Extension}"
Width="80" CanUserSort="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="{StaticResource ModernSecondaryBrush}"/>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<!-- Size column -->
<DataGridTextColumn Header="Size" Binding="{Binding EstimatedSize, Converter={StaticResource FileSizeConverter}}"
Width="100" CanUserSort="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="FontFamily" Value="Segoe UI Semilight"/>
<Setter Property="FontSize" Value="11"/>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<!-- Attributes column -->
<DataGridTextColumn Header="Attributes" Binding="{Binding Attributes}"
Width="100" CanUserSort="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Foreground" Value="{StaticResource ModernSecondaryBrush}"/>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<!-- Tags column -->
<DataGridTextColumn Header="Tags" Binding="{Binding Tags}"
Width="100" CanUserSort="True">
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Foreground" Value="{StaticResource ModernAccentBrush}"/>
<Setter Property="FontStyle" Value="Italic"/>
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
<!-- Modern status bar -->
<Border Grid.Row="2" Background="{StaticResource ModernPanelBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,1,0,0">
<StackPanel Orientation="Horizontal" Height="32" Margin="16,0">
<!-- Selection info -->
<TextBlock Text="{Binding SelectedFileCount, StringFormat='Selected: {0}'}"
Foreground="{StaticResource ModernSecondaryBrush}"
VerticalAlignment="Center" Margin="0,0,20,0" FontSize="11"/>
<!-- Total info -->
<TextBlock Text="{Binding CurrentFolderFileCount, StringFormat='Total: {0} files'}"
Foreground="{StaticResource ModernSecondaryBrush}"
VerticalAlignment="Center" Margin="0,0,20,0" FontSize="11"/>
<!-- Total size -->
<TextBlock Text="{Binding CurrentFolderSize, Converter={StaticResource FileSizeConverter}, StringFormat='Size: {0}'}"
Foreground="{StaticResource ModernForegroundBrush}"
VerticalAlignment="Center" FontSize="11" FontWeight="Medium"/>
</StackPanel>
</Border>
</Grid>
<!-- Right GridSplitter -->
<GridSplitter Grid.Column="3" Style="{StaticResource ModernGridSplitter}"
Width="8" VerticalAlignment="Stretch"/>
<!-- ===== RIGHT PANEL: DETAILS AND PREVIEW ===== -->
<Border Grid.Column="4" Background="{StaticResource ModernPanelBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="1,0,0,0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Information header -->
<Border Grid.Row="0" Background="{StaticResource ModernHeaderBrush}"
BorderBrush="{StaticResource ModernBorderBrush}" BorderThickness="0,0,0,1"
Padding="16,12">
<StackPanel>
<TextBlock Text="INFORMATION" FontWeight="SemiBold" FontSize="13"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,0,0,4"/>
<TextBlock Text="File Details" FontSize="11"
Foreground="{StaticResource ModernSecondaryBrush}"/>
</StackPanel>
</Border>
<!-- Details content -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" Padding="16,12">
<StackPanel>
<!-- General information -->
<TextBlock Text="FILE" FontWeight="SemiBold" FontSize="11"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,0,0,12"/>
<!-- Name field -->
<StackPanel Margin="0,0,0,12">
<TextBlock Text="Name:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11" Margin="0,0,0,4"/>
<TextBox Text="{Binding SelectedFile.Name}" IsReadOnly="True"
Background="{StaticResource ModernBackgroundBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
Padding="8,6" TextWrapping="Wrap"
FontFamily="Segoe UI" FontSize="11"/>
</StackPanel>
<!-- Extension field -->
<StackPanel Margin="0,0,0,12">
<TextBlock Text="Extension:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11" Margin="0,0,0,4"/>
<TextBox Text="{Binding SelectedFile.Extension}" IsReadOnly="True"
Background="{StaticResource ModernBackgroundBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
Padding="8,6" FontFamily="Consolas" FontSize="11"/>
</StackPanel>
<!-- Virtual path -->
<TextBlock Text="VIRTUAL PATH" FontWeight="SemiBold" FontSize="11"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,16,0,12"/>
<StackPanel Margin="0,0,0,12">
<TextBlock Text="Location:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11" Margin="0,0,0,4"/>
<TextBox Text="{Binding SelectedFile.VirtualPath}" IsReadOnly="True"
Background="{StaticResource ModernBackgroundBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
Padding="8,6" TextWrapping="Wrap"
FontFamily="Consolas" FontSize="9" Height="60"/>
</StackPanel>
<!-- Properties -->
<TextBlock Text="PROPERTIES" FontWeight="SemiBold" FontSize="11"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,16,0,12"/>
<!-- Size -->
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="Size:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}" FontSize="11"/>
<TextBlock Grid.Column="1" Text="{Binding SelectedFile.EstimatedSize, Converter={StaticResource FileSizeConverter}}"
Foreground="{StaticResource ModernSecondaryBrush}" FontSize="11"/>
</Grid>
<!-- Debug -->
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="Debug File:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}" FontSize="11"/>
<CheckBox Grid.Column="1" IsChecked="{Binding SelectedFile.IsDebugFile}" IsEnabled="False"
VerticalAlignment="Center"/>
</Grid>
<!-- Source FileList -->
<TextBlock Text="SOURCE" FontWeight="SemiBold" FontSize="11"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,16,0,12"/>
<StackPanel Margin="0,0,0,12">
<TextBlock Text="FileList:" FontWeight="Medium"
Foreground="{StaticResource ModernForegroundBrush}"
FontSize="11" Margin="0,0,0,4"/>
<TextBox Text="{Binding SelectedFile.SourceFileList}" IsReadOnly="True"
Background="{StaticResource ModernBackgroundBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
Padding="8,6" FontSize="11"/>
</StackPanel>
<!-- Actions -->
<TextBlock Text="ACTIONS" FontWeight="SemiBold" FontSize="11"
Foreground="{StaticResource ModernAccentBrush}" Margin="0,16,0,12"/>
<StackPanel>
<Button Content="Copy path" Command="{Binding CopyPathCommand}"
Background="{StaticResource ModernAccentBrush}" Foreground="White"
Padding="12,8" Margin="0,0,0,8" FontSize="11"/>
<Button Content="Copy name" Command="{Binding CopyNameCommand}"
Background="{StaticResource ModernAccentBrush}" Foreground="White"
Padding="12,8" FontSize="11"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
</Grid>
</Border>
</Grid>
<!-- ===== MODERN STATUS BAR ===== -->
<StatusBar Grid.Row="4" Background="{StaticResource ModernPanelBrush}"
Foreground="{StaticResource ModernForegroundBrush}"
BorderBrush="{StaticResource ModernBorderBrush}"
BorderThickness="0,1,0,0">
<StatusBarItem>
<TextBlock Text="{Binding StatusMessage}" Margin="8,0" FontSize="11"/>
</StatusBarItem>
<Separator/>
<StatusBarItem HorizontalAlignment="Right">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding TotalFileListsLoaded, StringFormat='FileLists: {0}'}"
Margin="8,0" FontSize="11" Foreground="{StaticResource ModernSecondaryBrush}"/>
<Separator Margin="8,0" Width="1" Background="{StaticResource ModernBorderBrush}"/>
<TextBlock Text="{Binding TotalVirtualFiles, StringFormat='Files: {0}'}"
Margin="8,0" FontSize="11" Foreground="{StaticResource ModernSecondaryBrush}"/>
</StackPanel>
</StatusBarItem>
</StatusBar>
<Border Grid.RowSpan="5"
Background="#80000000"
Visibility="{Binding IsBusy, Converter={StaticResource BoolToVisibilityConverter}}"
Panel.ZIndex="1000">
<Grid>
<Border Background="{StaticResource PanelBrush}"
BorderBrush="{StaticResource BorderBrush}"
BorderThickness="1"
CornerRadius="8"
Padding="24"
HorizontalAlignment="Center"
VerticalAlignment="Center"
MinWidth="260">
<StackPanel HorizontalAlignment="Center">
<ProgressBar IsIndeterminate="True" Height="8" Width="220"/>
<TextBlock Text="{Binding BusyMessage}"
Margin="0,12,0,0"
HorizontalAlignment="Center"
Foreground="{StaticResource ForegroundBrush}"
FontWeight="SemiBold"/>
</StackPanel>
</Border>
</Grid>
</Border>
</Grid>
</Window>