-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
618 lines (566 loc) · 34.8 KB
/
Copy pathMainWindow.xaml
File metadata and controls
618 lines (566 loc) · 34.8 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
609
610
611
612
613
614
615
616
617
618
<Window x:Class="IFilterShellView.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:base="clr-namespace:IFilterShellView"
xmlns:cvrtr="clr-namespace:IFilterShellView.Converter"
xmlns:tz="http://schemas.abtsoftware.co.uk/transitionz"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:sys="clr-namespace:System;assembly=System.Runtime"
xmlns:model="clr-namespace:IFilterShellView.Model"
xmlns:binding="clr-namespace:IFilterShellView.Binding"
d:DataContext="{d:DesignInstance Type=model:MainWindowModelMerger}"
mc:Ignorable="d"
Title="FilterWindow"
Topmost="True"
Height="Auto"
Width="Auto"
SizeToContent="WidthAndHeight"
Closing="Window_Closing"
Deactivated="Window_Deactivated"
ShowInTaskbar="false"
ResizeMode="NoResize"
WindowStyle="None"
AllowsTransparency="True"
ui:WindowHelper.UseModernWindowStyle="false"
ui:TitleBar.ExtendViewIntoTitleBar="false"
ui:ThemeManager.IsThemeAware="True"
Background="Transparent"
ShowActivated="True"
Focusable="True"
UseLayoutRounding="True">
<Window.Resources>
<sys:Double x:Key="ShadowDepth">20</sys:Double>
<sys:Double x:Key="MaxViewHeight">400</sys:Double>
<sys:Int32 x:Key="index_image_command">2</sys:Int32>
<sys:Int32 x:Key="index_image_history">3</sys:Int32>
<sys:Int32 x:Key="index_image_filter">4</sys:Int32>
<sys:Int32 x:Key="index_image_emptycrate">5</sys:Int32>
<Thickness x:Key="RowMargins"
Left="4"
Top="4"
Right="4"
Bottom="4" />
<Style TargetType="{x:Type Button}"
BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Background"
Value="{DynamicResource SystemControlPageBackgroundAltHighBrush}" />
<Setter Property="Foreground"
Value="{DynamicResource SystemControlForegroundBaseHighBrush}" />
</Style>
<Style TargetType="{x:Type RadioButton}"
BasedOn="{StaticResource {x:Type ToggleButton}}">
<Setter Property="Background"
Value="{DynamicResource SystemControlPageBackgroundAltHighBrush}" />
<Setter Property="Foreground"
Value="{DynamicResource SystemControlForegroundBaseHighBrush}" />
</Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground"
Value="{DynamicResource SystemControlForegroundBaseHighBrush}" />
</Style>
<Style TargetType="{x:Type Border}">
<Setter Property="BorderBrush"
Value="#90efefef" />
<Setter Property="BorderThickness"
Value="1" />
<Setter Property="CornerRadius"
Value="4,4,4,4" />
</Style>
<cvrtr:ItemDatesConverter x:Key="ItemDatesConverter" />
<cvrtr:ItemTooltipAttributeConverter x:Key="ItemTooltipAttributeConverter" />
<cvrtr:ItemSubtitleConverter x:Key="ItemSubtitleConverter" />
<cvrtr:ReverseBooleanToVisibilityConverter x:Key="ReverseBooleanToVisibilityConverter" />
<cvrtr:ExtensionToBitmapSourceConverter x:Key="ExtensionToBitmapSourceConverter" />
<cvrtr:IdToBitmapSourceFromStaticImageFactory x:Key="IdToBitmapSourceFromStaticImageFactory" />
<cvrtr:LayeredBrushToSolidBrushConverter x:Key="LayeredBrushToSolidBrushConverter" />
<cvrtr:StringToUpperConverter x:Key="StringToUpperConverter" />
<BooleanToVisibilityConverter x:Key="b2vc"></BooleanToVisibilityConverter>
<!-- A template view for the item listview -->
<DataTemplate x:Key="PidlItemTemplate"
DataType="base:CPidlData">
<Grid HorizontalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Grid.Column="0"
Margin="4,0,0,0"
Width="28"
Height="28">
<Image.Source>
<MultiBinding Converter="{StaticResource ExtensionToBitmapSourceConverter}">
<Binding Path="PidlName" />
<Binding Path="FileAttributes" />
</MultiBinding>
</Image.Source>
</Image>
<StackPanel Orientation="Vertical"
Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"
ToolTip="{Binding Path=FileAttributes, Converter={StaticResource ItemTooltipAttributeConverter}}"
Margin="12,3,0,3">
<TextBlock Text="{Binding PidlName}"
TextWrapping="Wrap" />
<TextBlock FontSize="12">
<TextBlock.Text>
<MultiBinding Converter="{StaticResource ItemSubtitleConverter}">
<Binding Path="CreationTime" />
<Binding Path="FileSize" />
<Binding Path="FileAttributes" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>
</Grid>
</DataTemplate>
<!-- A template view for the command listview -->
<DataTemplate x:Key="CommandTemplate"
DataType="base:CCommandItem">
<Grid Margin="0,3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Image Grid.Column="0"
Grid.Row="0"
Grid.RowSpan="3"
Width="28"
Height="28" Margin="0,0,12,0">
<Image.Source>
<Binding Source="{StaticResource index_image_command}"
Converter="{StaticResource IdToBitmapSourceFromStaticImageFactory}" />
</Image.Source>
</Image>
<TextBlock Grid.Column="1"
Grid.Row="0"
Text="{Binding Name}"
TextWrapping="Wrap" />
<TextBlock Grid.Column="1"
Grid.Row="1"
Text="{Binding CmdAlias}"
FontWeight="Light"
FontSize="12"
TextWrapping="Wrap" />
<TextBlock Grid.Column="1"
Grid.Row="2"
Text="{Binding Description}"
FontWeight="Light"
FontSize="12"
TextWrapping="Wrap" />
</Grid>
</DataTemplate>
<!-- A template view for the history listview -->
<DataTemplate x:Key="HistoryTemplate"
DataType="base:CHistoryItem">
<StackPanel Orientation="Horizontal"
VerticalAlignment="Center">
<Image Width="28"
Height="28">
<Image.Source>
<Binding Source="{StaticResource index_image_history}"
Converter="{StaticResource IdToBitmapSourceFromStaticImageFactory}" />
</Image.Source>
</Image>
<StackPanel Orientation="Vertical"
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
Margin="4,0,0,0">
<TextBlock Text="{Binding Command, Converter={StaticResource StringToUpperConverter}}"
TextWrapping="Wrap" />
<TextBlock Text="{Binding Issued}"
TextWrapping="Wrap"
FontWeight="Light"
FontSize="12" />
</StackPanel>
</StackPanel>
</DataTemplate>
</Window.Resources>
<StackPanel Orientation="Vertical"
HorizontalAlignment="Center"
Margin="12,0,12,12">
<StackPanel Name="Toolbar"
Orientation="Horizontal"
Margin="0,0,0,4">
<ui:ThemeShadowChrome IsShadowEnabled="{DynamicResource {x:Static SystemParameters.DropShadowKey}}"
Depth="{StaticResource ShadowDepth}">
<Border Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
<StackPanel Orientation="Horizontal"
Margin="{StaticResource RowMargins}">
<Button Click="PlacementSettingsBt_Click">
<ui:FlyoutBase.AttachedFlyout>
<ui:Flyout Placement="Bottom">
<Border>
<StackPanel Name="SettingsPlacement"
Orientation="Horizontal">
<RadioButton GroupName="SettingsPlacement"
Click="FilterSettingChanged"
IsChecked="True"
Tag="1"
ToolTip="Starts with">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
<RadioButton GroupName="SettingsPlacement"
Click="FilterSettingChanged"
IsChecked="false"
Tag="2"
ToolTip="Contains">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
<RadioButton GroupName="SettingsPlacement"
Click="FilterSettingChanged"
IsChecked="false"
Tag="4"
ToolTip="Ends with">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
<RadioButton GroupName="SettingsPlacement"
Click="FilterSettingChanged"
IsChecked="false"
Tag="8"
ToolTip="Regex expression">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
</StackPanel>
</Border>
</ui:Flyout>
</ui:FlyoutBase.AttachedFlyout>
<ui:FontIcon Name="PlacementSettingsIc"
FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
<Button Click="CaseSettingsBt_Click">
<ui:FlyoutBase.AttachedFlyout>
<ui:Flyout Placement="Bottom">
<Border>
<StackPanel Name="SettingsCase"
Orientation="Horizontal">
<RadioButton GroupName="SettingsCase"
Click="FilterSettingChanged"
IsChecked="false"
Tag="1"
ToolTip="Case sensitive">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
<RadioButton GroupName="SettingsCase"
Click="FilterSettingChanged"
IsChecked="false"
Tag="2"
ToolTip="Case insensitive">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</RadioButton>
</StackPanel>
</Border>
</ui:Flyout>
</ui:FlyoutBase.AttachedFlyout>
<ui:FontIcon Name="CaseSettingsIc"
FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
<Button Name="BrowseBackBt"
Click="BrowseBackBt_Click"
ToolTip="Go back"
HorizontalAlignment="Center">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
</StackPanel>
</Border>
</ui:ThemeShadowChrome>
<ui:ThemeShadowChrome Name="FilterPanel"
IsShadowEnabled="{DynamicResource {x:Static SystemParameters.DropShadowKey}}"
Depth="{StaticResource ShadowDepth}"
Margin="4,0">
<Border Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
<StackPanel Orientation="Horizontal"
Margin="{StaticResource RowMargins}">
<!-- Filter text -->
<TextBox Name="FilterTb"
MinWidth="400"
ui:ControlHelper.PlaceholderText="Filter shell by expression (⊙.⊙)"
BorderThickness="0"
BorderBrush="#00000000"
HorizontalAlignment="Stretch"
FontSize="15"
Focusable="True"
PreviewKeyDown="FilterTb_PreviewKeyDown"
KeyUp="FilterTb_KeyUp"
TextChanged="FilterTb_TextChanged">
</TextBox>
</StackPanel>
</Border>
</ui:ThemeShadowChrome>
<ui:ThemeShadowChrome IsShadowEnabled="{DynamicResource {x:Static SystemParameters.DropShadowKey}}"
Depth="{StaticResource ShadowDepth}">
<Border Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
<StackPanel Orientation="Horizontal"
Margin="{StaticResource RowMargins}">
<StackPanel Orientation="Horizontal">
<Button Click="ToggleThemeBt_Click"
ToolTip="Toggle theme">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
<Button ToolTip="Settings"
Grid.Column="1"
HorizontalAlignment="Right"
Click="SettingsBt_Click">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
<Button Click="ExitBt_Click"
ToolTip="Completely close this application">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph="" />
</Button>
</StackPanel>
</StackPanel>
</Border>
</ui:ThemeShadowChrome>
</StackPanel>
<!-- Row #2 -->
<!-- ItemsListView + List Controls -->
<ui:ThemeShadowChrome IsShadowEnabled="{DynamicResource {x:Static SystemParameters.DropShadowKey}}"
Depth="{StaticResource ShadowDepth}"
MaxWidth="{Binding ElementName=Toolbar,Path=ActualWidth}">
<Border>
<Grid Background="{DynamicResource RuntimeSolidColorBrushBack}">
<!-- Page 1 -->
<Grid HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Panel.ZIndex="20"
Visibility="{Binding Path=SearchPageVisibilityModel.Visible, Converter={StaticResource ReverseBooleanToVisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0"
Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}">
<StackPanel Orientation="Vertical"
Margin="12">
<TextBlock Text="List of available commands"
FontWeight="Bold" />
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}"
Margin="0, 8" />
<ListView Name="CommandList"
SelectionMode="Single"
ItemTemplate="{StaticResource CommandTemplate}"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling"
PreviewMouseLeftButtonUp="CommandList_PreviewMouseLeftButtonUp"
MaxHeight="{StaticResource MaxViewHeight}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
HorizontalContentAlignment="Stretch" />
</StackPanel>
</StackPanel>
<Grid Grid.Column="1"
Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0"
Orientation="Vertical">
<TextBlock Text="Recently issued commands"
FontWeight="Bold" />
<Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}"
Margin="0, 8" />
<ListView Name="HistoryList"
SelectionMode="Single"
ItemTemplate="{StaticResource HistoryTemplate}"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling"
PreviewMouseLeftButtonUp="HistoryList_PreviewMouseLeftButtonUp"
MaxHeight="{StaticResource MaxViewHeight}"
BorderThickness="0"
Background="Transparent">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem"
BasedOn="{StaticResource {x:Type ListViewItem}}">
<Setter Property="HorizontalContentAlignment"
Value="Left" />
<Setter Property="VerticalContentAlignment"
Value="Center" />
<Setter Property="Margin"
Value="0,0,0,0" />
<Setter Property="Padding"
Value="8,2,8,2" />
<Setter Property="MinHeight"
Value="20" />
</Style>
</ListView.ItemContainerStyle>
<ListView.Style>
<Style TargetType="{x:Type ListView}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Items.Count, RelativeSource={RelativeSource Self}}"
Value="0">
<Setter Property="OverridesDefaultStyle"
Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="Your history is empty for now. Only succesfully compiled commands will show up here"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"
TextWrapping="Wrap"
Style="{StaticResource {x:Type TextBlock}}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</ListView.Style>
</ListView>
</StackPanel>
<Button Grid.Row="1"
HorizontalAlignment="Right"
Background="Transparent"
VerticalAlignment="Bottom"
ToolTip="Clear history"
Click="ClearHistoryBt_Click">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
FontSize="14"
Glyph="" />
</Button>
</Grid>
</Grid>
<!-- Page 2 -->
<StackPanel Orientation="Vertical"
Visibility="Collapsed"
Panel.ZIndex="10"
Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}"
VerticalAlignment="Stretch"
tz:Transitionz.Opacity="{tz:OpacityParams From=0, To=1, Duration=350, TransitionOn=Visibility}"
tz:Transitionz.Translate="{tz:TranslateParams From='0,10', To='0,0', Duration=350, TransitionOn=Visibility}"
tz:Transitionz.Visibility="{Binding Path=SearchPageVisibilityModel.Visible, Converter={StaticResource b2vc}}">
<ui:ProgressBar x:Name="ProgressPb"
Visibility="Collapsed" />
<Grid MouseEnter="ItemsPanelGrid_MouseEnter"
MouseLeave="ItemsPanelGrid_MouseLeave">
<Grid Panel.ZIndex="1000"
HorizontalAlignment="Right">
<!-- Overlay controls here -->
<StackPanel>
<StackPanel Name="FilterItemsControlBox"
Orientation="Horizontal"
Visibility="Collapsed"
Margin="0,0,12,0">
<!-- Run file -->
<Button Name="Cmd_RunFile"
Click="Cmd_RunFile_Click"
Background="Transparent"
ToolTip="Run file">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph=""
FontSize="14" />
</Button>
<!--Copy-->
<Button Name="Cmd_CopyFile"
Click="Cmd_CopyFile_Click"
Background="Transparent"
ToolTip="Copy file">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph=""
FontSize="14" />
</Button>
<!--Invoke Properties-->
<Button Name="Cmd_InvokeProperty"
Click="Cmd_InvokeProperty_Click"
Background="Transparent"
ToolTip="Invoke properties menu">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph=""
FontSize="14" />
</Button>
<!--Delete-->
<Button Name="Cmd_DeleteItem"
Click="Cmd_DeleteItem_Click"
Background="Transparent"
ToolTip="Delete item">
<ui:FontIcon FontFamily="Segoe MDL2 Assets"
Glyph=""
FontSize="14" />
</Button>
</StackPanel>
</StackPanel>
</Grid>
<!-- Filtered item list here -->
<ListView Name="ItemsList"
SelectionMode="Single"
HorizontalContentAlignment="Stretch"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemTemplate="{StaticResource PidlItemTemplate}"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling"
PreviewMouseLeftButtonUp="ItemsList_PreviewMouseLeftButtonUp"
PreviewMouseMove="ItemsList_PreviewMouseMove"
SelectionChanged="ItemsList_SelectionChanged"
PreviewMouseDown="ItemsList_PreviewMouseDown"
BorderThickness="0"
Background="Transparent"
MaxHeight="{StaticResource MaxViewHeight}">
<ListView.Style>
<Style TargetType="{x:Type ListView}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Items.Count, RelativeSource={RelativeSource Self}}"
Value="0">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Grid HorizontalAlignment="Stretch"
Margin="12"
Height="Auto">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image Grid.Column="0"
Width="28"
Height="28">
<Image.Source>
<Binding Source="{StaticResource index_image_filter}"
Converter="{StaticResource IdToBitmapSourceFromStaticImageFactory}" />
</Image.Source>
</Image>
<StackPanel Grid.Column="1"
Orientation="Vertical"
Margin="18,0,0,0">
<TextBlock Text="{Binding SearchPageNoticeTitle.Text}"
Style="{StaticResource {x:Type TextBlock}}"
FontWeight="Bold" />
<TextBlock Text="{Binding SearchPageNoticeMessage.Text}"
Style="{StaticResource {x:Type TextBlock}}"
TextWrapping="Wrap" />
</StackPanel>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</ListView.Style>
</ListView>
</Grid>
</StackPanel>
</Grid>
</Border>
</ui:ThemeShadowChrome>
</StackPanel>
</Window>