|
941 | 941 | </Label> |
942 | 942 | </StackPanel> |
943 | 943 |
|
944 | | - <StackPanel Orientation="Horizontal" Margin="0,-5,0,0" Grid.Row="1" |
| 944 | + <StackPanel Orientation="Horizontal" Margin="0,0,0,0" Grid.Row="1" |
945 | 945 | Visibility="{Binding HideAutocompleteMethodOptions, Converter={StaticResource InverseBoolToVisibilityCollapsedConverter}}"> |
946 | 946 | <!-- This Grid contains controls for selecting the Node autocomplete method --> |
947 | | - <Grid Margin="60,0,0,0"> |
| 947 | + <Grid Margin="0,0,0,0"> |
948 | 948 | <Grid.RowDefinitions> |
949 | 949 | <RowDefinition Height="Auto" /> |
950 | 950 | <RowDefinition Height="*" /> |
951 | 951 | <RowDefinition Height="*" /> |
| 952 | + <RowDefinition Height="*" /> |
952 | 953 | </Grid.RowDefinitions> |
953 | | - <Label Grid.Row="0" |
954 | | - Margin="-8,15,10,3" |
| 954 | + <Grid Grid.Row="0"> |
| 955 | + <Grid.RowDefinitions> |
| 956 | + <RowDefinition Height="*" /> |
| 957 | + <RowDefinition Height="*" /> |
| 958 | + <RowDefinition Height="*" /> |
| 959 | + <RowDefinition Height="*" /> |
| 960 | + </Grid.RowDefinitions> |
| 961 | + <StackPanel Margin="-5,5,0,0" Orientation="Horizontal" Grid.Row="0"> |
| 962 | + <Label Content="{x:Static p:Resources.MLRecommendationNumberOfResults}" |
| 963 | + VerticalAlignment="Center" |
| 964 | + Foreground="{StaticResource PreferencesWindowFontColor}" |
| 965 | + FontWeight="Normal"/> |
| 966 | + <TextBox Name="MLRecommendationResultsNumber" |
| 967 | + HorizontalAlignment="Left" |
| 968 | + Margin="2,0,0,0" |
| 969 | + MinWidth="25" |
| 970 | + Height="20" |
| 971 | + FontWeight="Regular" |
| 972 | + Text="{Binding MLRecommendationNumberOfResults}" |
| 973 | + Background="{StaticResource PreferencesWindowBackgroundColor}" |
| 974 | + Foreground="{StaticResource PreferencesWindowFontColor}" |
| 975 | + BorderThickness="0,0,0,2" |
| 976 | + PreviewTextInput="NumberValidationTextBox" |
| 977 | + IsEnabled="{Binding Path=NodeAutocompleteMachineLearningIsChecked}"/> |
| 978 | + </StackPanel> |
| 979 | + </Grid> |
| 980 | + <Label Grid.Row="1" |
| 981 | + Margin="-5,5,0,0" |
955 | 982 | Content="{x:Static p:Resources.PreferencesNodeAutocompleteMethod}" |
956 | 983 | Foreground="{StaticResource PreferencesWindowFontColor}"/> |
957 | | - <Grid Grid.Row="1" > |
| 984 | + <Grid Grid.Row="2" |
| 985 | + Margin="0,5,0,5"> |
958 | 986 | <Grid.ColumnDefinitions> |
959 | 987 | <ColumnDefinition x:Name="colObjectType" Width="Auto"/> |
960 | | - <ColumnDefinition x:Name="colMachineLearning" Width="Auto"/> |
961 | | - <ColumnDefinition x:Name="colMLbetaTag" Width="Auto"/> |
962 | 988 | </Grid.ColumnDefinitions> |
963 | | - <RadioButton Grid.Column="0" |
| 989 | + <RadioButton Grid.Column="0" |
964 | 990 | x:Name="ObjectTypeRadioButton" |
965 | 991 | MinWidth="90" |
966 | | - Margin="-3,0,20,0" |
967 | 992 | Style="{StaticResource RunSettingsRadioButtons}" |
968 | 993 | IsChecked="{Binding Path=NodeAutocompleteMachineLearningIsChecked, Converter={StaticResource BinaryRadioButtonCheckedConverter},ConverterParameter=False}" |
969 | 994 | Content="{x:Static p:Resources.ObjectType}" |
970 | 995 | IsEnabled="{Binding Path=NodeAutocompleteIsChecked}"/> |
971 | | - <RadioButton Grid.Column="1" |
| 996 | + </Grid> |
| 997 | + <Grid Grid.Row="3" |
| 998 | + Margin="0,5,0,5"> |
| 999 | + <Grid.ColumnDefinitions> |
| 1000 | + <ColumnDefinition x:Name="colMachineLearning" Width="Auto"/> |
| 1001 | + <ColumnDefinition x:Name="colMLbetaTag" Width="Auto"/> |
| 1002 | + </Grid.ColumnDefinitions> |
| 1003 | + <RadioButton Grid.Column="0" |
972 | 1004 | x:Name="RecommendedNodesRadioButton" |
973 | 1005 | MinWidth="90" |
974 | 1006 | Style="{StaticResource RunSettingsRadioButtons}" |
|
977 | 1009 | Click="RecommendedNodesRadioButton_Click" |
978 | 1010 | IsEnabled="{Binding Path=NodeAutocompleteIsChecked}"/> |
979 | 1011 | <!--Beta tag--> |
980 | | - <Label Grid.Column="2" |
| 1012 | + <Label Grid.Column="1" |
981 | 1013 | Name="NodeRecommendationBetaTag" |
982 | 1014 | Content="{x:Static p:Resources.PreferencesViewBetaTag}" |
983 | 1015 | Background="{StaticResource SecondaryGray}" |
|
993 | 1025 | </Label.Resources> |
994 | 1026 | </Label> |
995 | 1027 | </Grid> |
996 | | - <Grid Grid.Row="2"> |
997 | | - <Grid.RowDefinitions> |
998 | | - <RowDefinition Height="*" /> |
999 | | - <RowDefinition Height="*" /> |
1000 | | - <RowDefinition Height="*" /> |
1001 | | - <RowDefinition Height="*" /> |
1002 | | - </Grid.RowDefinitions> |
1003 | | - <StackPanel Margin="-10,5,0,0" Orientation="Horizontal" Grid.Row="0"> |
1004 | | - <Label Content="{x:Static p:Resources.MLRecommendationNumberOfResults}" |
1005 | | - VerticalAlignment="Center" |
1006 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1007 | | - FontWeight="Normal"/> |
1008 | | - <TextBox Name="MLRecommendationResultsNumber" |
1009 | | - HorizontalAlignment="Left" |
1010 | | - Margin="2,0,0,0" |
1011 | | - MinWidth="25" |
1012 | | - Height="20" |
1013 | | - FontWeight="Regular" |
1014 | | - Text="{Binding MLRecommendationNumberOfResults}" |
1015 | | - Background="{StaticResource PreferencesWindowBackgroundColor}" |
1016 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1017 | | - BorderThickness="0,0,0,2" |
1018 | | - PreviewTextInput="NumberValidationTextBox" |
1019 | | - IsEnabled="{Binding Path=NodeAutocompleteMachineLearningIsChecked}"/> |
1020 | | - </StackPanel> |
1021 | | - <StackPanel Margin="-60,10,0,0" Orientation="Horizontal" Grid.Row="1"> |
1022 | | - <ToggleButton Name="MLRecommendationConfidenceThresholdToogle" |
1023 | | - Width="{StaticResource ToggleButtonWidth}" |
1024 | | - Height="{StaticResource ToggleButtonHeight}" |
1025 | | - VerticalAlignment="Center" |
1026 | | - IsChecked="{Binding Path=HideNodesBelowSpecificConfidenceLevelIsChecked}" |
1027 | | - Style="{StaticResource EllipseToggleButton1}" |
1028 | | - IsEnabled="{Binding Path=EnableHideNodesToggle}"/> |
1029 | | - <Label Content="{x:Static p:Resources.PreferredConfidenceLevel}" |
1030 | | - Margin="10,0,0,0" |
1031 | | - VerticalAlignment="Center" |
1032 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1033 | | - FontWeight="Regular"/> |
1034 | | - <Image Name="MLRecommendationConfidenceThresholdToolTip" |
1035 | | - Margin="5,3,0,0" |
1036 | | - Width="14" |
1037 | | - Height="14" |
1038 | | - HorizontalAlignment="Center" |
1039 | | - VerticalAlignment="Center" |
1040 | | - Style="{StaticResource QuestionIcon}" |
1041 | | - ToolTipService.ShowDuration="30000"> |
1042 | | - <Image.ToolTip> |
1043 | | - <ToolTip Content="{x:Static p:Resources.PreferredConfidenceLevelInfo}" Style="{StaticResource GenericToolTipLight}"/> |
1044 | | - </Image.ToolTip> |
1045 | | - </Image> |
1046 | | - </StackPanel> |
1047 | | - <StackPanel Margin="-10,5,0,0" Orientation="Horizontal" Grid.Row="2"> |
1048 | | - <Label Content="{x:Static p:Resources.PreferencesViewZoomScaling0Percent}" |
1049 | | - Name="lblConfidenceLevelLabelStart" |
1050 | | - VerticalAlignment="Center" |
1051 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1052 | | - FontWeight="Regular"/> |
1053 | | - <Slider Width="300" |
1054 | | - Minimum="0" |
1055 | | - Maximum="100" |
1056 | | - Value="{Binding Path=MLRecommendationConfidenceLevel, Mode=TwoWay}" |
1057 | | - IsEnabled="{Binding Path=EnableConfidenceLevelSlider}" |
1058 | | - ValueChanged="sliderConfidenceLevel_ValueChanged"> |
1059 | | - </Slider> |
1060 | | - <Label Content="{x:Static p:Resources.PreferencesViewZoomScaling100Percent}" |
1061 | | - Margin="0,-5,0,0" |
1062 | | - VerticalAlignment="Center" |
1063 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1064 | | - FontWeight="Regular"/> |
1065 | | - </StackPanel> |
1066 | | - <StackPanel Margin="-10,5,0,0" Orientation="Horizontal" Grid.Row="3"> |
1067 | | - <Label |
1068 | | - Name="lblConfidenceLevel" |
1069 | | - Width="30" |
1070 | | - VerticalAlignment="Center" |
1071 | | - HorizontalContentAlignment="Center" |
1072 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1073 | | - FontWeight="Regular" |
1074 | | - Content="{Binding Path=MLRecommendationConfidenceLevel, Mode=TwoWay}"/> |
1075 | | - </StackPanel> |
1076 | | - </Grid> |
1077 | 1028 | </Grid> |
1078 | 1029 | </StackPanel> |
1079 | 1030 | </Grid> |
|
0 commit comments