forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLanguageServicePerformanceOptionControl.xaml
More file actions
91 lines (91 loc) · 5.65 KB
/
LanguageServicePerformanceOptionControl.xaml
File metadata and controls
91 lines (91 loc) · 5.65 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
<UserControl x:Class="Microsoft.VisualStudio.FSharp.UIResources.LanguageServicePerformanceOptionControl"
x:ClassModifier="internal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Microsoft.VisualStudio.FSharp.UIResources"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="OptionPageStyle.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel>
<GroupBox Header="{x:Static local:Strings.Project_Performance}">
<StackPanel>
<CheckBox x:Name="enableInMemoryCrossProjectReferences"
IsChecked="{Binding EnableInMemoryCrossProjectReferences}"
Content="{x:Static local:Strings.Enable_in_memory_cross_project_references}"
ToolTip="{x:Static local:Strings.Tooltip_in_memory_cross_project_references}"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="70" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0"
x:Name="projectCheckCacheSizeLabel"
Content="{x:Static local:Strings.Project_check_cache_size}"
ToolTip="{x:Static local:Strings.Tooltip_project_check_cache_size}"/>
<TextBox Grid.Column="1"
HorizontalContentAlignment="Right"
VerticalContentAlignment="Center">
<TextBox.Text>
<Binding UpdateSourceTrigger="PropertyChanged" Path="ProjectCheckCacheSize">
<Binding.ValidationRules>
<local:IntegerRangeValidationRule Min="1" Max="1000" />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Header="{x:Static local:Strings.IntelliSense_Performance}">
<StackPanel>
<CheckBox x:Name="enableStaleIntelliSenseResults"
IsChecked="{Binding AllowStaleCompletionResults}"
Content="{x:Static local:Strings.Enable_Stale_IntelliSense_Results}"/>
<Grid IsEnabled="{Binding IsChecked, ElementName=enableStaleIntelliSenseResults}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="70" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0"
x:Name="timeUntilStaleIntelliSenseLabel"
Content="{x:Static local:Strings.Time_until_stale_completion}"
Margin="15 0 0 0"/>
<TextBox Grid.Column="1"
HorizontalContentAlignment="Right"
VerticalContentAlignment="Center">
<TextBox.Text>
<Binding UpdateSourceTrigger="PropertyChanged" Path="TimeUntilStaleCompletion">
<Binding.ValidationRules>
<local:IntegerRangeValidationRule Min="0" Max="10000"/>
<!-- If people truly want more than 10 seconds before stale results come in, they can open an issue on VisualFSharp. -->
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Header="{x:Static local:Strings.Parallelization}">
<StackPanel>
<CheckBox x:Name="enableParallelCheckingWithSignatureFiles"
IsChecked="{Binding EnableParallelCheckingWithSignatureFiles}"
Content="{x:Static local:Strings.Enable_Parallel_Checking_With_Signature_Files}"/>
<CheckBox x:Name="enableParallelReferenceResolution"
IsChecked="{Binding EnableParallelReferenceResolution}"
Content="{x:Static local:Strings.Enable_Parallel_Reference_Resolution}"/>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
</Grid>
</UserControl>