forked from Dijji/CustomWindowsProperties
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
529 lines (526 loc) · 40.7 KB
/
MainWindow.xaml
File metadata and controls
529 lines (526 loc) · 40.7 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
<Window x:Class="CustomWindowsProperties.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:CustomWindowsProperties"
mc:Ignorable="d"
Title="Custom Windows Properties" Height="600" Width="1000">
<Window.Resources>
<BooleanToVisibilityConverter x:Key="VisibleIfTrue" />
<Style x:Key="SelectTreeViewItemStyle"
TargetType="{x:Type TreeViewItem}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<local:CustomVirtualizingStackPanel/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="Bold" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="SelectExpandedTreeViewItemStyle"
TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<local:CustomVirtualizingStackPanel/>
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="Bold" />
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="6*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="6*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="4*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Saved:" Margin="5,0,0,0" FontSize="12"/>
<TextBlock Grid.Row="0" Grid.Column="2" Text="Editor:" Margin="5,0,0,0" FontSize="12"/>
<TextBlock Grid.Row="0" Grid.Column="4" Text="Help:" Margin="5,0,0,0" FontSize="12"/>
<TreeView Grid.Row="1" Grid.Column="0" VirtualizingStackPanel.IsVirtualizing="True"
x:Name="treeViewSaved"
ItemsSource="{Binding Path=SavedPropertyTree}" FontSize="12"
ItemContainerStyle="{StaticResource SelectExpandedTreeViewItemStyle}"
SelectedItemChanged="SavedTree_SelectedItemChanged">
<TreeView.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
Color="SkyBlue" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}"
Color="Black" />
</TreeView.Resources>
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
<Grid>
<TextBlock Text="{Binding Path=Name}" Background="{Binding Path=Background}" />
</Grid>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<TreeView.CommandBindings>
<CommandBinding Command="Open" CanExecute="SavedInstall_CanExecute" Executed="SavedInstall_Executed"/>
<CommandBinding Command="SaveAs" CanExecute="SavedExport_CanExecute" Executed="SavedExport_Executed"/>
<CommandBinding Command="Delete" CanExecute="SavedDelete_CanExecute" Executed="SavedDelete_Executed"/>
</TreeView.CommandBindings>
<TreeView.ContextMenu>
<ContextMenu>
<MenuItem Command="Open" Header="Install" InputGestureText=" "/>
<MenuItem Command="SaveAs" Header="Export" InputGestureText=" "/>
<MenuItem Command="Delete" Header="Delete" InputGestureText=" "/>
</ContextMenu>
</TreeView.ContextMenu>
</TreeView>
<Border Grid.Row="1" Grid.Column="2" BorderBrush="Gray" BorderThickness="1">
<ScrollViewer Margin="5,0,0,0"
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
<Grid x:Name="PropertyEditor"
GotFocus="Editor_GotFocus" LostFocus="Editor_LostFocus">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Basics" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="0" Grid.Column="1" Text="Name:" VerticalAlignment="Center"/>
<TextBox Grid.Row="0" Grid.Column="2" Text="{Binding CanonicalName, UpdateSourceTrigger=PropertyChanged}"
MinWidth="150" VerticalAlignment="Center" x:Name="NameTextBox"
Tag="CanonicalName" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="0" Grid.Column="2" IsHitTestVisible="False" Text="Property name goes here"
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Foreground="DarkGray">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Visibility" Value="Collapsed"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Text, ElementName=NameTextBox}" Value="">
<Setter Property="Visibility" Value="Visible"/>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="1" Text="Installed:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding EditorInstalledText}" VerticalAlignment="Center"
DataContext="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type Window}}, Path=DataContext}"/>
<TextBlock Grid.Row="2" Grid.Column="0" Margin="0,0,10,0" Text="Search" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="2" Grid.Column="1" Text="InInvertedIndex:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="2" Grid.Column="2" IsChecked="{Binding InInvertedIndex, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="InInvertedIndex"/>
<TextBlock Grid.Row="3" Grid.Column="1" Text="IsColumn:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="3" Grid.Column="2" IsChecked="{Binding IsColumn, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="IsColumn"/>
<TextBlock Grid.Row="5" Grid.Column="1" Text="IsColumnSparse:" VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<CheckBox Grid.Row="5" Grid.Column="2" IsChecked="{Binding IsColumnSparse, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"
Width="50" HorizontalAlignment="Left" Tag="IsColumnSparse"/>
<TextBlock Grid.Row="6" Grid.Column="1" Margin="0,0,10,0" Text="ColumnIndexType:" VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<ComboBox Grid.Row="6" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding ColumnIndexType, UpdateSourceTrigger=PropertyChanged}" Tag="ColumnIndexType"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:ColumnIndexType}}}"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock Grid.Row="7" Grid.Column="1" Text="MaxSize:" VerticalAlignment="Center"/>
<TextBox Grid.Row="7" Grid.Column="2" Text="{Binding MaxSize, UpdateSourceTrigger=PropertyChanged}"
MinWidth="50" VerticalAlignment="Center"
Tag="MaxSize" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="8" Grid.Column="1" Text="Mnemonics:" VerticalAlignment="Center"/>
<TextBox Grid.Row="8" Grid.Column="2" Text="{Binding Mnemonics, UpdateSourceTrigger=PropertyChanged}"
MinWidth="150" VerticalAlignment="Center"
Tag="Mnemonics" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="9" Grid.Column="0" Text="Label" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="9" Grid.Column="1" Text="DisplayName:" VerticalAlignment="Center"/>
<TextBox Grid.Row="9" Grid.Column="2" Text="{Binding DisplayName, UpdateSourceTrigger=PropertyChanged}"
MinWidth="150" VerticalAlignment="Center"
Tag="DisplayName" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="10" Grid.Column="1" Margin="0,0,10,0" Text="SortDescription:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="10" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding SortDescription, UpdateSourceTrigger=PropertyChanged}" Tag="SortDescription"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertySortDescription}}}"/>
<TextBlock Grid.Row="11" Grid.Column="1" Text="EditInvitation:" VerticalAlignment="Center"/>
<TextBox Grid.Row="11" Grid.Column="2" Text="{Binding EditInvitation, UpdateSourceTrigger=PropertyChanged}"
MinWidth="150" VerticalAlignment="Center"
Tag="EditInvitation" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="12" Grid.Column="1" Text="HideLabel:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="12" Grid.Column="2" IsChecked="{Binding HideLabel, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="HideLabel"/>
<TextBlock Grid.Row="15" Grid.Column="0" Text="Type" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="15" Grid.Column="1" Text="Type:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="15" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding Type, UpdateSourceTrigger=PropertyChanged}" Tag="Type"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyTypes}}}"/>
<TextBlock Grid.Row="16" Grid.Column="1" Text="GroupingRange:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="16" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding GroupingRange, UpdateSourceTrigger=PropertyChanged}" Tag="GroupingRange"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyGroupingRange}}}"/>
<TextBlock Grid.Row="17" Grid.Column="1" Text="IsInnate:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="17" Grid.Column="2" IsChecked="{Binding IsInnate, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="IsInnate"/>
<TextBlock Grid.Row="18" Grid.Column="1" Text="CanBePurged:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="18" Grid.Column="2" IsChecked="{Binding CanBePurged, UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="CanBePurged"/>
<TextBlock Grid.Row="19" Grid.Column="1" Text="MultipleValues:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="19" Grid.Column="2" IsChecked="{Binding MultipleValues, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="MultipleValues"/>
<TextBlock Grid.Row="20" Grid.Column="1" Text="IsGroup:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="20" Grid.Column="2" IsChecked="{Binding IsGroup, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="IsGroup"/>
<TextBlock Grid.Row="21" Grid.Column="1" Text="AggregationType:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="21" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding AggregationType, UpdateSourceTrigger=PropertyChanged}" Tag="AggregationType"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyAggregationType}}}"/>
<TextBlock Grid.Row="22" Grid.Column="1" Text="IsTreeProperty:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="22" Grid.Column="2" IsChecked="{Binding IsTreeProperty, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="IsTreeProperty"/>
<TextBlock Grid.Row="23" Grid.Column="1" Text="IsViewable:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="23" Grid.Column="2" IsChecked="{Binding IsViewable, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="IsViewable"/>
<TextBlock Grid.Row="24" Grid.Column="1" Text="SearchRawValue:" VerticalAlignment="Center"/>
<CheckBox Grid.Row="24" Grid.Column="2" IsChecked="{Binding SearchRawValue, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
Width="50" HorizontalAlignment="Left" Tag="SearchRawValue"/>
<TextBlock Grid.Row="25" Grid.Column="1" Text="ConditionType:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="25" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding ConditionType, UpdateSourceTrigger=PropertyChanged}" Tag="ConditionType"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyConditionType}}}"/>
<TextBlock Grid.Row="26" Grid.Column="1" Margin="0,0,10,0" Text="ConditionOperation:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="26" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding ConditionOperation, UpdateSourceTrigger=PropertyChanged}" Tag="ConditionOperation"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:ConditionOperationConfigured}}}"/>
<TextBlock Grid.Row="28" Grid.Column="0" Text="Display" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="28" Grid.Column="1" Text="DisplayType:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="28" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding DisplayType, UpdateSourceTrigger=PropertyChanged}" Tag="DisplayType"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyDisplayType}}}"/>
<TextBlock Grid.Row="29" Grid.Column="1" Text="StringFormat:" VerticalAlignment="Center"
Visibility="{Binding IsStringFormat,Converter={StaticResource VisibleIfTrue}}"/>
<ComboBox Grid.Row="29" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
Visibility="{Binding IsStringFormat,Converter={StaticResource VisibleIfTrue}}"
SelectedItem="{Binding StringFormat, UpdateSourceTrigger=PropertyChanged}" Tag="StringFormat"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:StringFormat}}}"/>
<TextBlock Grid.Row="29" Grid.Column="1" Text="BooleanFormat:" VerticalAlignment="Center"
Visibility="{Binding IsBooleanFormat,Converter={StaticResource VisibleIfTrue}}"/>
<ComboBox Grid.Row="29" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
Visibility="{Binding IsBooleanFormat,Converter={StaticResource VisibleIfTrue}}"
SelectedItem="{Binding BooleanFormat, UpdateSourceTrigger=PropertyChanged}" Tag="BooleanFormat"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:BooleanFormat}}}"/>
<TextBlock Grid.Row="29" Grid.Column="1" Text="NumberFormat:" VerticalAlignment="Center"
Visibility="{Binding IsNumberFormat,Converter={StaticResource VisibleIfTrue}}"/>
<ComboBox Grid.Row="29" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
Visibility="{Binding IsNumberFormat,Converter={StaticResource VisibleIfTrue}}"
SelectedItem="{Binding NumberFormat, UpdateSourceTrigger=PropertyChanged}" Tag="NumberFormat"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:NumberFormat}}}"/>
<TextBlock Grid.Row="29" Grid.Column="1" Text="DateTimeFormat:" VerticalAlignment="Center"
Visibility="{Binding IsDateTimeFormat,Converter={StaticResource VisibleIfTrue}}"/>
<ComboBox Grid.Row="29" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
Visibility="{Binding IsDateTimeFormat,Converter={StaticResource VisibleIfTrue}}"
SelectedItem="{Binding DateTimeFormat, UpdateSourceTrigger=PropertyChanged}" Tag="DateTimeFormat"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:DateTimeFormat}}}"/>
<TextBlock Grid.Row="30" Grid.Column="1" Text="DefaultColumWidth:" VerticalAlignment="Center"/>
<TextBox Grid.Row="30" Grid.Column="2" Margin="0,0,10,0" Text="{Binding DefaultColumnWidth, UpdateSourceTrigger=PropertyChanged}"
MinWidth="50" VerticalAlignment="Center"
Tag="DefaultColumWidth" HorizontalAlignment="Left"/>
<TextBlock Grid.Row="31" Grid.Column="1" Margin="0,0,10,0" Text="Alignment:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="31" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding Alignment, UpdateSourceTrigger=PropertyChanged}" Tag="Alignment"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:PropertyAlignmentType}}}"/>
<!--<TextBlock Grid.Row="31" Grid.Column="1" Margin="0,0,10,0" Text="RelativeDescriptionType:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="31" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding RelativeDescriptionType, UpdateSourceTrigger=PropertyChanged}" Tag="RelativeDescriptionType"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:RelativeDescriptionType}}}"/>-->
<TextBlock Grid.Row="32" Grid.Column="1" Margin="0,0,10,0" Text="DefaultSortDirection:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="32" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding DefaultSortDirection, UpdateSourceTrigger=PropertyChanged}" Tag="DefaultSortDirection"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:SortDirection}}}"/>
<TextBlock Grid.Row="33" Grid.Column="1" Text="EditControl:" VerticalAlignment="Center"/>
<ComboBox Grid.Row="33" Grid.Column="2" VerticalAlignment="Center"
MinWidth="100" HorizontalAlignment="Left"
SelectedItem="{Binding EditControl, UpdateSourceTrigger=PropertyChanged}" Tag="EditControl"
ItemsSource="{Binding Source={local:EnumBindingSource {x:Type local:EditControl}}}"/>
</Grid>
</ScrollViewer>
</Border>
<Border Grid.Row="1" Grid.Column="4" BorderBrush="Gray" BorderThickness="1">
<ScrollViewer>
<WebBrowser Name="wbHelp" Margin="5,5,0,0"/>
<!--<TextBlock Text="{Binding HelpText}" TextWrapping="Wrap" Margin="5,5,0,0" />-->
</ScrollViewer>
</Border>
<TextBlock Grid.Row="2" Grid.Column="0" Text="Installed:" FontSize="12"
Margin="5,0,0,0" VerticalAlignment="Bottom"/>
<StackPanel Grid.Row="2" Grid.Column="2" Margin="0,5,0,5" Orientation="Horizontal">
<Button Content="Choose Save Folder..." Margin="5,0,10,0" Height="25" Click="ChooseDataFolder_Clicked"/>
<Button Content="New" Margin="10,0,0,0" Height="25"
Click="New_Clicked"/>
<Button Content="Save" Margin="10,0,0,0" Height="25"
IsEnabled="{Binding CanInstall}" Click="Save_Clicked"/>
<Button Content="Discard" Margin="10,0,0,0" Height="25"
IsEnabled="{Binding CanDiscard}" Click="Discard_Clicked"/>
<Button Content="Install" Margin="10,0,0,0" Height="25"
IsEnabled="{Binding CanInstall}" Click="Install_Clicked"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="2" Margin="0,5,0,5" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Copy ^" Margin="10,0,40,0" Height="25"
IsEnabled="{Binding CanCopy}" Click="Copy_Clicked"/>
</StackPanel>
<StackPanel Grid.Row="2" Grid.Column="4" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,0,5,0">
<TextBlock Text="Differences to:" FontSize="12" Margin="5,0,0,0"/>
<RadioButton Content="Saved" IsChecked="{Binding CompareSaved,Mode=TwoWay}"
Margin="10,0,0,0" FontSize="12"/>
<RadioButton Content="Installed" IsChecked="{Binding CompareInstalled,Mode=TwoWay}"
Margin="10,0,0,0" FontSize="12"/>
</StackPanel>
<TreeView Grid.Row="3" Grid.Column="0" VirtualizingStackPanel.IsVirtualizing="True"
x:Name="treeViewInstalled"
ItemsSource="{Binding Path=InstalledPropertyTree}" FontSize="12"
ItemContainerStyle="{StaticResource SelectTreeViewItemStyle}"
SelectedItemChanged="InstalledTree_SelectedItemChanged">
<TreeView.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
Color="SkyBlue" />
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}"
Color="Black" />
</TreeView.Resources>
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
<Grid>
<TextBlock Text="{Binding Path=Name}" />
</Grid>
</HierarchicalDataTemplate>
</TreeView.ItemTemplate>
<TreeView.CommandBindings>
<CommandBinding Command="Close" CanExecute="InstalledUninstall_CanExecute" Executed="InstalledUninstall_Executed"/>
</TreeView.CommandBindings>
<TreeView.ContextMenu>
<ContextMenu>
<MenuItem Command="Close" Header="Uninstall" InputGestureText=" "/>
</ContextMenu>
</TreeView.ContextMenu>
</TreeView>
<Border Grid.Row="3" Grid.Column="2" BorderBrush="Gray" BorderThickness="1">
<ScrollViewer Margin="5,0,0,0"
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
Visibility="{Binding IsInstalledPropertyVisible,Converter={StaticResource VisibleIfTrue}}">
<Grid x:Name="PropertyDisplay">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="272"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Basics" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="0" Grid.Column="1" Text="Name:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="0" Grid.Column="2" Text="{Binding CanonicalName}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="1" Grid.Column="1" Text="FormatId:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding FormatId}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="2" Grid.Column="1" Text="PropertyId:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="2" Grid.Column="2" Text="{Binding PropertyId}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="3" Grid.Column="0" Margin="0,0,10,0" Text="Search" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="3" Grid.Column="1" Text="InInvertedIndex:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="3" Grid.Column="2" Text="{Binding InInvertedIndex}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="4" Grid.Column="1" Text="IsColumn:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="4" Grid.Column="2" Text="{Binding IsColumn}"
VerticalAlignment="Center"/>
<TextBlock Grid.Row="5" Grid.Column="1" Text="IsColumnSparse:" VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock Grid.Row="5" Grid.Column="2" Text="{Binding IsColumnSparse}"
VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock Grid.Row="6" Grid.Column="1" Margin="0,0,10,0" Text="ColumnIndexType:" VerticalAlignment="Center"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock Grid.Row="6" Grid.Column="2" VerticalAlignment="Center"
Text="{Binding ColumnIndexType}"
Visibility="{Binding IsColumn,Converter={StaticResource VisibleIfTrue}}"/>
<TextBlock Grid.Row="7" Grid.Column="1" Text="MaxSize:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="7" Grid.Column="2" Text="{Binding MaxSize}"
VerticalAlignment="Center"/>
<TextBlock Grid.Row="8" Grid.Column="1" Text="Mnemonics:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="8" Grid.Column="2" Text="unavailable"
VerticalAlignment="Center"/>
<TextBlock Grid.Row="12" Grid.Column="0" Text="Label" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="12" Grid.Column="1" Text="DisplayName:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="12" Grid.Column="2" Text="{Binding DisplayName}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="13" Grid.Column="1" Margin="0,0,10,0" Text="SortDescription:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="13" Grid.Column="2" VerticalAlignment="Center" Text="{Binding SortDescription}"/>
<TextBlock Grid.Row="14" Grid.Column="1" Text="EditInvitation:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="14" Grid.Column="2" Text="{Binding EditInvitation}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="15" Grid.Column="1" Text="HideLabel:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="15" Grid.Column="2" Text="{Binding HideLabel}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="16" Grid.Column="0" Text="Type" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="16" Grid.Column="1" Text="Type:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="16" Grid.Column="2" Text="{Binding Type}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="17" Grid.Column="1" Margin="0,0,10,0" Text="GroupingRange:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="17" Grid.Column="2" VerticalAlignment="Center" Text="{Binding GroupingRange}"/>
<TextBlock Grid.Row="18" Grid.Column="1" Text="IsInnate:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="18" Grid.Column="2" Text="{Binding IsInnate}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="19" Grid.Column="1" Text="CanBePurged:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="19" Grid.Column="2" Text="{Binding CanBePurged}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="20" Grid.Column="1" Text="MultipleValues:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="20" Grid.Column="2" Text="{Binding MultipleValues}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="21" Grid.Column="1" Text="IsGroup:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="21" Grid.Column="2" VerticalAlignment="Center" Text="{Binding IsGroup}"/>
<TextBlock Grid.Row="22" Grid.Column="1" Margin="0,0,10,0" Text="AggregationType:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="22" Grid.Column="2" Text="{Binding AggregationType}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="23" Grid.Column="1" Text="IsTreeProperty:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="23" Grid.Column="2" Text="{Binding IsTreeProperty}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="24" Grid.Column="1" Text="IsViewable:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="24" Grid.Column="2" Text="{Binding IsViewable}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="25" Grid.Column="1" Text="SearchRawValue:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="25" Grid.Column="2" VerticalAlignment="Center" Text="unavailable"/>
<TextBlock Grid.Row="26" Grid.Column="1" Text="ConditionType:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="26" Grid.Column="2" Text="{Binding ConditionType}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="27" Grid.Column="1" Margin="0,0,10,0" Text="ConditionOperation:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="27" Grid.Column="2" Text="{Binding ConditionOperationInstalled}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="28" Grid.Column="0" Text="Alias" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="28" Grid.Column="1" Text="SortByAlias:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="28" Grid.Column="2" Text="{Binding SortByAlias}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="30" Grid.Column="0" Text="Display" FontWeight="Bold" VerticalAlignment="Center"/>
<TextBlock Grid.Row="30" Grid.Column="1" Text="DisplayType:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="30" Grid.Column="2" Text="{Binding DisplayType}" VerticalAlignment="Center"/>
<TextBlock Grid.Row="31" Grid.Column="1" Text="Format:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="31" Grid.Column="2" Text="unavailable" VerticalAlignment="Center"/>
<TextBlock Grid.Row="32" Grid.Column="1" Margin="0,0,10,0" Text="DefaultColumWidth:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="32" Grid.Column="2" VerticalAlignment="Center" Text="{Binding DefaultColumnWidth}"/>
<TextBlock Grid.Row="33" Grid.Column="1" Margin="0,0,10,0" Text="Alignment:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="33" Grid.Column="2" VerticalAlignment="Center" Text="{Binding Alignment}"/>
<!--<TextBlock Grid.Row="23" Grid.Column="1" Margin="0,0,10,0" Text="RelativeDescriptionType:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="23" Grid.Column="2" VerticalAlignment="Center" Text="{Binding RelativeDescriptionType}"/>-->
<TextBlock Grid.Row="34" Grid.Column="1" Margin="0,0,10,0" Text="DefaultSortDirection:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="34" Grid.Column="2" VerticalAlignment="Center" Text="{Binding DefaultSortDirection}"/>
<TextBlock Grid.Row="35" Grid.Column="1" Text="EditControl:" VerticalAlignment="Center"/>
<TextBlock Grid.Row="35" Grid.Column="2" Text="unavailable" VerticalAlignment="Center"/>
</Grid>
</ScrollViewer>
</Border>
<Border Grid.Row="3" Grid.Column="4" BorderBrush="Gray" BorderThickness="1">
<ScrollViewer>
<TextBlock Text="{Binding DifferencesText}" TextWrapping="Wrap" Margin="5,5,0,0" />
</ScrollViewer>
</Border>
<TextBlock x:Name="StatusBar" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Height="25" Margin="10,0,0,0"/>
<GridSplitter Grid.Row="0" Grid.RowSpan="1" Grid.Column="1" Width="3"
HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="Gray"/>
<GridSplitter Grid.Row="0" Grid.RowSpan="1" Grid.Column="3" Width="3"
HorizontalAlignment="Center" VerticalAlignment="Stretch" Background="Gray"/>
</Grid>
</Window>