-
Notifications
You must be signed in to change notification settings - Fork 675
Expand file tree
/
Copy pathPreferencesView.xaml
More file actions
2238 lines (2173 loc) · 170 KB
/
Copy pathPreferencesView.xaml
File metadata and controls
2238 lines (2173 loc) · 170 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
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--The Preferences Modal Dialog was created following the screen design (width, height, colors, styles) located in the next site:
https://www.figma.com/file/i2e1g2calbisxZTadS8pOV/DynamoPreferencePalette?node-id=3%3A3353-->
<Window x:Class="Dynamo.Wpf.Views.PreferencesView"
x:Name="DynamoPreferencesWindow"
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:controls="clr-namespace:Dynamo.Controls"
xmlns:p="clr-namespace:Dynamo.Wpf.Properties;assembly=DynamoCoreWpf"
xmlns:ui="clr-namespace:Dynamo.UI"
xmlns:viewModels="clr-namespace:Dynamo.ViewModels"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:fa="clr-namespace:FontAwesome5;assembly=FontAwesome5.Net"
xmlns:packagemanager="clr-namespace:Dynamo.Wpf.Views.PackageManager"
xmlns:trustedpaths="clr-namespace:Dynamo.Wpf.Views"
xmlns:converters="clr-namespace:Dynamo.Controls;assembly=DynamoCoreWpf"
xmlns:wpfControls="clr-namespace:Dynamo.Wpf.Controls"
d:DataContext="{d:DesignInstance Type=viewModels:PreferencesViewModel}"
WindowStartupLocation="CenterOwner"
WindowStyle="None"
mc:Ignorable="d"
Height="480"
Width="665"
ResizeMode="NoResize"
BorderThickness="0"
AllowsTransparency="True"
Background="Transparent">
<!--Using the Styles from the SharedResourcesDictionary located in DynamoCoreWpf/UI/Themes/DynamoModern.xaml-->
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:SharedResourceDictionary Source="{x:Static ui:SharedDictionaryManager.DynamoConvertersDictionaryUri}" />
<ui:SharedResourceDictionary Source="{x:Static ui:SharedDictionaryManager.DynamoModernDictionaryUri}" />
</ResourceDictionary.MergedDictionaries>
<controls:BrushColorToStringConverter x:Key="BrushColorToStringConverter"/>
<controls:StringToBrushColorConverter x:Key="StringToBrushColorConverter"/>
<controls:RadioButtonCheckedConverter x:Key="RadioButtonCheckedConverter"/>
<controls:BinaryRadioButtonCheckedConverter x:Key="BinaryRadioButtonCheckedConverter"/>
<controls:ExpandersBindingConverter x:Key="ExpandersBindingConverter"/>
<controls:InverseBoolToVisibilityConverter x:Key="InverseBoolToVisibilityConverter "/>
<controls:InverseBoolToEnablingConverter x:Key="InverseBoolToEnablingConverter "/>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
<!--This Template will be used for the controls generated in the Styles list when a new Style is saved-->
<DataTemplate x:Key="styleViewItemTemplate">
<Border Background="{StaticResource PreferencesWindowBackgroundColor}" Padding="0,0,0,10" Margin="0,0,0,5"
BorderThickness="1" BorderBrush="#FF97A0A5" Width="203">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Name="groupNameLabel"
Text="{Binding Name}"
HorizontalAlignment="Left"
Grid.Row="0"
Margin="5,0,0,0"
TextTrimming="CharacterEllipsis"
MinWidth="110"
MaxWidth="135"
Foreground="{StaticResource PreferencesWindowFontColor}">
<TextBlock.ToolTip>
<ToolTip Content="{Binding Name}" Style="{StaticResource GenericToolTipLight}"/>
</TextBlock.ToolTip>
</TextBlock>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Left"
Width="auto"
Margin="10,0,20,0"
Grid.Row="1">
<Button
Style="{StaticResource ButtonColorPickerStyle}"
Background="{Binding HexColorString, Converter={StaticResource StringToBrushColorConverter}}"
Click="onChangedGroupStyleColor_Click"
Width="25"
Height="15" />
<Label Name="colorHexVal"
Foreground="{StaticResource PreferencesWindowFontColor}"
FontSize="13"
Content="{Binding Background, ElementName=borderColor, Converter={StaticResource BrushColorToStringConverter}}"/>
</StackPanel>
</Grid>
</Grid>
<Grid Grid.Column="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Button Name="removeStyle"
Margin="0,0,8,0"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Click="RemoveStyle_Click"
Style="{StaticResource FlatIconButtonStyle}"
Width="20"
Height="30"
Grid.Row="0">
<fa:ImageAwesome Icon="Solid_Trash"
Width="15"
Height="25"
IsHitTestVisible="False"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
</Button>
<StackPanel Orientation="Horizontal"
Grid.Row="1">
<Image Width="24" Height="24" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" Source="/DynamoCoreWpf;component/UI/Images/font-size.png">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.GroupStyleFontSizeToolTip}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
<ComboBox Grid.Row="1"
HorizontalAlignment="Left"
Margin="2,0,0,0"
ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Window},Path=DataContext.GroupStyleFontSizeList}"
SelectedItem="{Binding Path=FontSize}"
SelectionChanged="ExistingStyleFontSize_SelectionChanged"
Style="{StaticResource NoBordersComboBoxStyle}">
</ComboBox>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Border>
</DataTemplate>
</ResourceDictionary>
</Window.Resources>
<!--This is the main row of the Preference Window-->
<Border x:Name="mainBorder"
BorderBrush="{StaticResource WorkspaceBackgroundHomeBrush}"
BorderThickness="1"
CornerRadius="4"
Background="{StaticResource PreferencesWindowBackgroundColor}">
<Grid x:Name="mainGrid"
Background="Transparent">
<Grid.Resources>
<sys:Double x:Key="ToggleButtonWidth">40</sys:Double>
<sys:Double x:Key="ToggleButtonHeight">20</sys:Double>
</Grid.Resources>
<!--The Window is divided basically in three rows, TitleBar, Content, and ButtonsBottomSection-->
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
</Grid.RowDefinitions>
<!--Section/Row of the TitleBar it contains a TextBlock for the windows title and the close button-->
<!--The CloseButtonStyle and Color Styles are located in the DynamoModer.xaml file-->
<Grid x:Name="TitleBar"
Grid.Row="0"
MouseDown="PreferencesPanel_MouseDown"
VerticalAlignment="Top"
Margin="0" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="46" />
</Grid.ColumnDefinitions>
<TextBlock x:Name="HeaderTitle"
Text="{x:Static p:Resources.PreferencesViewTitle}"
Foreground="{StaticResource PreferencesWindowFontColor}"
Grid.Column="0"
Margin="25,10,0,0"
TextAlignment="Left"
FontSize="17"
FontFamily="Helvetica"
HorizontalAlignment="Left"
Width="459" />
<StackPanel Grid.Column="1"
VerticalAlignment="Top"
Orientation="Horizontal"
HorizontalAlignment="Right">
<Button x:Name="CloseButton"
Style="{DynamicResource CloseButtonStyle}"
Click="CloseButton_Click"
VerticalAlignment="Center"
KeyboardNavigation.IsTabStop="False"
Margin="10,12,20,8"/>
</StackPanel>
</Grid>
<!--Section/Row of the Tabs content, it contains all the tabs left side aligned and the controls in the right section for each tab-->
<!--The LeftTab Style is located in the DynamoModer.xaml file-->
<Grid x:Name="TabsContent"
Grid.Row="1" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid x:Name="ContentGrid"
Grid.Column="0" >
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TabControl x:Name="preferencesTabControl"
TabStripPlacement="Left"
Background="{StaticResource PreferencesWindowBackgroundColor}">
<!--General Tab-->
<TabItem Header="{x:Static p:Resources.PreferencesViewGeneralTab}"
Style="{StaticResource LeftTab}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Height="Auto">
<!--This Grid contains controls for selecting the Language-->
<Grid x:Name="GeneralTab"
Margin="4 0 0 0"
HorizontalAlignment="Left">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--The first Grid Row will contain the Language label and combobox added in a StackPanel vertical-->
<Grid Grid.Row="0"
Margin="14,0,0,20">
<StackPanel Orientation="Vertical">
<WrapPanel Grid.Row="0">
<Label
Content="{x:Static p:Resources.PreferencesViewLanguageLabel}"
Margin="-3,0,10,0"
FontWeight="Bold"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Label HorizontalAlignment="Left"
Name="LanguageSettingsInfoLabel"
VerticalAlignment="Center"
Height="26"
Width="53"
Margin="0 3 0 0">
<Image
Margin="-5,0,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewLanguageSwitchHelp}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Label>
</WrapPanel>
<ComboBox Grid.Row="1"
Name="LanguageCmb"
Width="213"
HorizontalAlignment="Left"
ItemsSource="{Binding Path=LanguagesList}"
SelectedItem="{Binding Path=SelectedLanguage}"
Style="{StaticResource NoBordersComboBoxStyle}"
IsEnabled="True">
</ComboBox>
</StackPanel>
</Grid>
<!--This Grid contains controls for selecting Static Splash Screen Display options-->
<Grid Grid.Row="1"
Margin="14,0,0,20">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
Margin="2,0,0,0"
Grid.Column="0"
IsEnabled="True"
IsChecked="{Binding Path=StaticSplashScreenEnabled}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Grid.Column="1"
Content="{x:Static p:Resources.DynamoViewSettingShowStaticSplashScreen}"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Image Name="PauseSplashScreenIcon"
Grid.Column="2"
Width="14"
Height="14"
Margin="10,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewShowStaticSplashScreenTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Grid>
</Grid>
<!-- This Grid contains controls for the Number Format-->
<Grid Grid.Row="2"
Margin="14,0,0,20">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Content="{x:Static p:Resources.DynamoViewSettingMenuNumberFormat}"
Margin="-3,0,10,0"
FontWeight="Bold"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<ComboBox Name="numberFormatCmb"
Grid.Row="1"
HorizontalAlignment="Left"
Margin="2,0,0,0"
SelectedItem="{Binding Path=SelectedNumberFormat, Converter={StaticResource NumberFormatConverter}}"
ItemsSource="{Binding NumberFormatList}"
Style="{StaticResource NoBordersComboBoxStyle}">
</ComboBox>
</Grid>
</Grid>
<!--This Grid contains controls for the maximum number of recent files-->
<Grid Grid.Row="3"
Margin="14,0,0,20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Content="{x:Static p:Resources.PreferencesSettingMaxRecentFiles}"
Margin="-3,0,10,0"
FontWeight="Bold"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<TextBox Name="NumberBox"
Grid.Row="1"
HorizontalAlignment="Left"
Margin="2,0,0,0"
MinWidth="25"
Height="20"
FontWeight="Regular"
Text="{Binding MaxNumRecentFiles}"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Foreground="{StaticResource PreferencesWindowFontColor}"
BorderThickness="0,0,0,2"
PreviewTextInput="NumberValidationTextBox"/>
<Image Name="RecentFileNumberInfoIcon"
Grid.Row="1"
Width="14"
Height="14"
Margin="30,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.RecentFileNumberInfo}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Grid>
</Grid>
<!--This Grid contains controls for selecting to include timestamp for export path -->
<Grid Grid.Row="4"
Margin="14,0,0,20">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
Margin="2,0,0,0"
Grid.Column="0"
IsEnabled="True"
IsChecked="{Binding Path=IsTimeStampIncludedInExportFilePath}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Grid.Column="1"
Content="{x:Static p:Resources.PreferencesViewSettingIncludeTimestampExportPath}"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Image Name="IncludeTimestampExportPathIcon"
Grid.Column="2"
Width="14"
Height="14"
Margin="10,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewIncludeTimestampExportPathTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Grid>
</Grid>
<!--This Grid contains Expanders for Run, Default Geometry Scaling, Backup and Templates settings-->
<Grid Grid.Row="5"
Margin="-3,0,1,20">
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--Run Settings Expander-->
<Expander x:Name="RunSettingsExpander"
Style="{StaticResource MenuExpanderStyle}"
Grid.Row="0"
IsExpanded="{Binding PreferencesTabs[General].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=RunSettingsExpander}"
Header="{x:Static p:Resources.PreferencesViewGeneralSettingsRun}">
<StackPanel x:Name="RunSettingsPanel">
<Grid Margin="4,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--This Grid contains controls for selecting Default Run Setting and Number Format options -->
<Grid Grid.Row="0" Margin="0,0,0,15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!--This Grid contains controls for selecting Run Settings options-->
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0">
<Label
Margin="-3,0,10,0"
FontWeight="Bold"
Content="{x:Static p:Resources.PreferencesViewRunSettingsLabel}"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Label HorizontalAlignment="Left"
Name="RunSettingsInfoLabel"
VerticalAlignment="Center"
Height="26"
Width="53"
Margin="0 3 0 0">
<Image
Margin="-5,0,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewDefaultRunSettingsInfoTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Label>
</WrapPanel>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<RadioButton Grid.Column="0"
MinWidth="80"
Margin="2,0,0,0"
Style="{StaticResource RunSettingsRadioButtons}"
IsChecked="{Binding Path=RunSettingsIsChecked, Converter={StaticResource BinaryRadioButtonCheckedConverter},ConverterParameter=True}"
Content="{x:Static p:Resources.Manual}"/>
<RadioButton Grid.Column="1"
MinWidth="80"
Style="{StaticResource RunSettingsRadioButtons}"
IsChecked="{Binding Path=RunSettingsIsChecked, Converter={StaticResource BinaryRadioButtonCheckedConverter},ConverterParameter=False}"
Content="{x:Static p:Resources.Automatic}"/>
</Grid>
</Grid>
</Grid>
<!--This Grid contains controls for selecting Run Preview options-->
<Grid Grid.Row="1" Margin="0,0,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ToggleButton Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
Margin="2,0,0,0"
Grid.Column="0"
IsEnabled="{Binding Path=RunPreviewEnabled}"
IsChecked="{Binding Path=RunPreviewIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Grid.Column="1"
Content="{x:Static p:Resources.DynamoViewSettingShowRunPreview}"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Image Name="RunPreviewIcon"
Grid.Column="2"
Width="14"
Height="14"
Margin="10,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Style="{StaticResource QuestionIcon}">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewShowRunPreviewTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Grid>
</Grid>
</Grid>
</StackPanel>
</Expander>
<!--Geometry Scaling Expander-->
<Expander x:Name="Scale"
Style="{StaticResource MenuExpanderStyle}"
Grid.Row="1"
IsExpanded="{Binding PreferencesTabs[General].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=Scale}"
Header="{x:Static p:Resources.PreferencesViewGeneralSettingsGeoScaling}">
<StackPanel x:Name="GeometryScalingRadiosPanel"
Width="380"
HorizontalAlignment="Left"
VerticalAlignment="Top">
<RadioButton x:Name="RadioSmall"
GroupName="GeometryScaling"
MinWidth="80"
Margin="3,10,0,0"
IsChecked="{Binding DefaultGeometryScaling, Converter={StaticResource RadioButtonCheckedConverter}, ConverterParameter={x:Static viewModels:GeometryScaleSize.Small}}"
Style="{StaticResource GeometryScaleRadioButtons}"
Content="{x:Static p:Resources.ScalingSmallButton}"/>
<TextBlock x:Name="RadioSmallDesc"
Margin="25,5,0,0"
Style="{StaticResource GeometryScaleDescTextBox}"
Visibility="{Binding IsChecked, ElementName=RadioSmall, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<RadioButton x:Name="RadioMedium"
GroupName="GeometryScaling"
Margin="3,10,0,0"
MinWidth="80"
IsChecked="{Binding DefaultGeometryScaling, Converter={StaticResource RadioButtonCheckedConverter}, ConverterParameter={x:Static viewModels:GeometryScaleSize.Medium}}"
Style="{StaticResource GeometryScaleRadioButtons}"
Content="{x:Static p:Resources.ScalingMediumButton}"/>
<TextBlock x:Name="RadioMediumDesc"
Margin="25,5,0,0"
Style="{StaticResource GeometryScaleDescTextBox}"
Visibility="{Binding IsChecked, ElementName=RadioMedium, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<RadioButton x:Name="RadioLarge"
GroupName="GeometryScaling"
MinWidth="80"
Margin="3,10,0,0"
IsChecked="{Binding DefaultGeometryScaling, Converter={StaticResource RadioButtonCheckedConverter}, ConverterParameter={x:Static viewModels:GeometryScaleSize.Large}}"
Style="{StaticResource GeometryScaleRadioButtons}"
Content="{x:Static p:Resources.ScalingLargeButton}"/>
<TextBlock x:Name="RadioLargeDesc"
Margin="25,5,0,0"
Style="{StaticResource GeometryScaleDescTextBox}"
Visibility="{Binding IsChecked, ElementName=RadioLarge, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<RadioButton x:Name="RadioExtraLarge"
GroupName="GeometryScaling"
MinWidth="80"
Margin="3,10,0,0"
IsChecked="{Binding DefaultGeometryScaling, Converter={StaticResource RadioButtonCheckedConverter}, ConverterParameter={x:Static viewModels:GeometryScaleSize.ExtraLarge}}"
Style="{StaticResource GeometryScaleRadioButtons}"
Content="{x:Static p:Resources.ScalingExtraLargeButton}"/>
<TextBlock x:Name="RadioExtraLargeDesc"
Margin="25,5,0,0"
Style="{StaticResource GeometryScaleDescTextBox}"
Visibility="{Binding IsChecked, ElementName=RadioExtraLarge, Converter={StaticResource BooleanToVisibilityConverter}}"/>
</StackPanel>
</Expander>
<!--Backup Settings Expander-->
<Expander x:Name="BackupSettingsExpander"
Style="{StaticResource MenuExpanderStyle}"
Grid.Row="2"
IsExpanded="{Binding PreferencesTabs[General].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=BackupSettingsExpander}"
Header="{x:Static p:Resources.PreferencesViewGeneralSettingsBackup}">
<StackPanel x:Name="BackupSettingsPanel">
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--Controls for backup files time interval-->
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Row="0"
Content="{x:Static p:Resources.PreferencesSettingBackupInterval}"
Margin="-3,0,10,0"
FontWeight="Bold"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Name="NumberTextBox"
Grid.Column="0"
HorizontalAlignment="Left"
Margin="2,0,0,0"
MinWidth="25"
Height="20"
FontWeight="Regular"
Text="{Binding BackupIntervalInMinutes}"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Foreground="{StaticResource PreferencesWindowFontColor}"
BorderThickness="0,0,0,2"
PreviewTextInput="NumberValidationTextBox"/>
<Label Grid.Column="1"
FontWeight="Regular"
Content="{x:Static p:Resources.BackupInternalUnit}"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
</Grid>
</Grid>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Content="{x:Static p:Resources.PreferencesSettingDefaultBackupLocation}"
VerticalAlignment="Center"
Margin="-3,15,0,0"
Grid.Row="0"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!--the backup location text-->
<TextBlock x:Name="BackupLocationTextBlock" Style="{StaticResource DarkTextBlock}"
Text="{Binding BackupLocation}"
Grid.Column="0"
Margin="0,4,7,4"
Background="{StaticResource PreferencesWindowItemDarkerBackgroundColor}"
MinHeight="24"
Padding="5,5,5,5"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<!--the select backup location button-->
<Button
Grid.Column="1"
Margin="7,7,7,7"
x:Name="UpdateBackupLocationButton"
Click="SelectBackupLocation"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource EditFolderButtonStyle}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesSettingUpdateBackupLocationTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
<!--the Reset backup location button-->
<Button
Grid.Column="2"
Margin="7,7,7,7"
x:Name="ResetBackupLocationButton"
Click="ResetBackupLocation"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource ResetButtonStyle}"
IsEnabled="{Binding Path=CanResetBackupLocation}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesSettingResetBackupLocationTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
</Grid>
</Grid>
</Grid>
</StackPanel>
</Expander>
<!--Template Settings Expander-->
<Expander x:Name="TemplateSettingsExpander"
Style="{StaticResource MenuExpanderStyle}"
Grid.Row="3"
IsExpanded="{Binding PreferencesTabs[General].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=TemplateSettingsExpander}"
Header="{x:Static p:Resources.PreferencesViewGeneralSettingsTemplate}">
<StackPanel x:Name="TemplateSettingsPanel">
<Grid HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Content="{x:Static p:Resources.PreferencesSettingTemplateLocationLabel}"
VerticalAlignment="Center"
Margin="-3,15,0,0"
Grid.Row="0"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!--the backup location text-->
<TextBlock x:Name="TemplateLocationTextBlock" Style="{StaticResource DarkTextBlock}"
Text="{Binding TemplateLocation}"
Grid.Column="0"
Margin="0,4,7,4"
Background="{StaticResource PreferencesWindowItemDarkerBackgroundColor}"
MinHeight="24"
Padding="5,5,5,5"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Button
Grid.Column="1"
Margin="7,7,7,7"
x:Name="UpdateTemplateLocationButton"
Click="UpdateTemplateLocationButton_Click"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource EditFolderButtonStyle}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesSettingUpdateTemplateLocationTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
<!--the Reset backup location button-->
<Button
Grid.Column="2"
Margin="7,7,7,7"
x:Name="ResetTemplateLocationButton"
Click="ResetTemplateLocationButton_Click"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource ResetButtonStyle}"
IsEnabled="{Binding Path=CanResetTemplateLocation}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesSettingResetTemplateLocationTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
</Grid>
</Grid>
</Grid>
</StackPanel>
</Expander>
</Grid>
</Grid>
</Grid>
</ScrollViewer>
</TabItem>
<!--Features Tab-->
<TabItem Header="{x:Static p:Resources.PreferencesViewFeaturesTab}"
Style="{StaticResource LeftTab}">
<!--This Grid contains the features tab-->
<Grid x:Name="FeaturesTab"
Margin="1"
HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--This Grid row contains the Python section-->
<Expander x:Name="PythonExpander"
Grid.Row="0"
Style="{StaticResource MenuExpanderStyle}"
IsExpanded="{Binding PreferencesTabs[Features].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=PythonExpander}"
Header="{x:Static p:Resources.PreferencesViewPython}">
<StackPanel Orientation="Vertical" Margin="0,6,0,0">
<Label Content="{x:Static p:Resources.PreferencesViewDefaultPythonEngine}"
Padding="0,5,5,5"
FontSize="13"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<ComboBox Name="PythonEngineManager"
Width="213"
HorizontalAlignment="Left"
ItemsSource="{Binding Path=PythonEnginesList}"
SelectedItem="{Binding Path=SelectedPythonEngine}"
Style="{StaticResource NoBordersComboBoxStyle}">
</ComboBox>
<!-- Hide notices -->
<StackPanel Orientation="Horizontal" Margin="0,12,0,0">
<ToggleButton Name="ShowPythonEngineChangeNotification"
Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
IsChecked="{Binding Path=ShowPythonAutoMigrationNotificationIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Content="{x:Static p:Resources.PreferencesViewShowPythonEngineChangeNotifications}"
VerticalAlignment="Center"
Margin="10,0,0,0"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Label Name="ShowPythonEngineChangeNotificationLabel" MouseLeftButtonDown="OnMoreInfoClicked">
<Image Name="ShowPythonEngineChangeNotificationTooltip"
Margin="5,3,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIconClickable}"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewShowPythonEngineChangeNotificationsTooltip}"
Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Label>
</StackPanel>
<!-- Reset PythonNet3 -->
<Button x:Name="ReloadPythonNet3"
Style="{StaticResource SolidButtonStyle}"
HorizontalAlignment="Left"
Grid.Row="0"
Margin="0,10,0,0"
Click="ReloadPythonNet3_Click"
Content="{x:Static p:Resources.ResetPythonNet3ButtonText}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.ResetPythonNet3ButtonToolTip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
<!-- Python Template File Path -->
<StackPanel Orientation="Vertical" Margin="0,12,0,5">
<Label Content="{x:Static p:Resources.PreferencesSettingCustomPythomTemplate}"
Padding="0,5,5,5"
FontSize="13"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Button x:Name="AddPaths"
HorizontalAlignment="Left"
Margin="0"
Visibility="{Binding PythonTemplateFilePath, Converter={StaticResource NonEmptyStringToCollapsedConverter}}"
Content="{x:Static p:Resources.AddFilePathButtonName}"
Command="{Binding Path=AddPythonPathCommand}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PythonTemplateAddPathTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
<Button.Style>
<Style BasedOn="{StaticResource SolidButtonStyle}" TargetType="{x:Type Button}">
<Setter Property="IsEnabled" Value="True"/>
</Style>
</Button.Style>
</Button>
<Grid Visibility="{Binding PythonTemplateFilePath, Converter={StaticResource EmptyStringToCollapsedConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition MaxWidth="250"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock x:Name="PathTextBlock" Style="{StaticResource DarkTextBlock}"
Text="{Binding PythonTemplateFilePath}"
Grid.Column="0"
Margin="0,4,7,4"
FontWeight="Regular"
Background="{StaticResource PreferencesWindowItemDarkerBackgroundColor}"
MinHeight="24"
Padding="5,5,5,5"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Button Grid.Column="1"
Margin="7,7,7,7"
x:Name="UpdatePathButton"
Command="{Binding Path=UpdatePythonPathCommand}"
CommandParameter="{Binding}"
ToolTipService.ShowOnDisabled="True"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource EditFolderButtonStyle}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PackagePathUpdatePathTooltip}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
<Button x:Name="DeletePathButton"
Grid.Column="2"
Margin="7,7,7,7"
Command="{Binding Path=DeletePythonPathCommand}"
ToolTipService.ShowOnDisabled="True"
Background="{StaticResource PreferencesWindowBackgroundColor}"
Style="{StaticResource CloseButtonStyle}">
<Button.ToolTip>
<ToolTip Content="{x:Static p:Resources.PackagePathViewToolTipMinus}" Style="{StaticResource GenericToolTipLight}"/>
</Button.ToolTip>
</Button>
</Grid>
</StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="0">
<ToggleButton Name="ShowWhitespaceToggle"
Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
IsChecked="{Binding Path=ShowWhitespaceIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Content="{x:Static p:Resources.PreferencesViewShowWhitespaceInPythonEditor}"
VerticalAlignment="Center"
Margin="10,0,0,0"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
</StackPanel>
</Grid>
</StackPanel>
</Expander>
<!--This Grid row contains the Notification Center section-->
<Expander x:Name="NotificationCenterExpander"
Style="{StaticResource MenuExpanderStyle}"
IsExpanded="{Binding PreferencesTabs[Features].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=NotificationCenterExpander}"
Grid.Row="1"
Header="{x:Static p:Resources.PreferencesViewNotificationCenter}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="0">
<ToggleButton Name="NotificationCenterToggle"
Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
IsChecked="{Binding Path=NotificationCenterIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Content="{x:Static p:Resources.PreferencesViewEnableNotificationCenter}"
Margin="10,0,0,0"
VerticalAlignment="Center"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
</StackPanel>
</Grid>
</Expander>
<!--This Grid row contains the Node Autocomplete section-->
<Expander x:Name="NodeAutocompleteExpander"
Style="{StaticResource MenuExpanderStyle}"
IsExpanded="{Binding PreferencesTabs[Features].ExpanderActive, Converter={StaticResource ExpandersBindingConverter}, ConverterParameter=NodeAutocompleteExpander}"
Grid.Row="2"
Header="{x:Static p:Resources.PreferencesViewNodeAutocomplete}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="0">
<ToggleButton Name="NodeAutocompleteToggle"
Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
IsChecked="{Binding Path=NodeAutocompleteIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoComplete}"
FontWeight="Normal"
Margin="10,0,0,0"
VerticalAlignment="Center"
Foreground="{StaticResource PreferencesWindowFontColor}"/>
<Label Name="MLNodeAutocompleteLabel" MouseLeftButtonDown="OnMoreInfoClicked">
<Image Name="MLNodeAutocompleteToolTip"
Margin="5,3,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource QuestionIconClickable}"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteTooltipText}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Label>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,12,0,0" Grid.Row="1">
<ToggleButton Name="NodeAutocompleteNewUIToggle"
Width="{StaticResource ToggleButtonWidth}"
Height="{StaticResource ToggleButtonHeight}"
VerticalAlignment="Center"
IsEnabled="{Binding Path=NodeAutocompleteIsChecked}"
IsChecked="{Binding Path=NodeAutocompleteNewUIIsChecked}"
Style="{StaticResource EllipseToggleButton1}"/>
<Label Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteNewUI}"
FontWeight="Normal"
Margin="10,0,0,0"
VerticalAlignment="Center"
Foreground="{StaticResource PreferencesWindowFontColor}">
</Label>
<Label Name="NodeAutocompleteNewUILabel" MouseLeftButtonDown="OnMoreInfoClicked">
<Image Name="NodeAutocompleteNewUIToolTip"
Margin="5,3,0,0"
Width="14"
Height="14"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="pack://application:,,,/DynamoCoreWpf;component/UI/Images/question-default-16px.png"
ToolTipService.ShowDuration="30000">
<Image.ToolTip>
<ToolTip Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteNewUITooltipText}" Style="{StaticResource GenericToolTipLight}"/>
</Image.ToolTip>
</Image>
</Label>