|
947 | 947 | Width="{StaticResource ToggleButtonWidth}" |
948 | 948 | Height="{StaticResource ToggleButtonHeight}" |
949 | 949 | VerticalAlignment="Center" |
| 950 | + IsEnabled="{Binding Path=NodeAutocompleteIsChecked}" |
950 | 951 | IsChecked="{Binding Path=NodeAutocompleteNewUIIsChecked}" |
951 | 952 | Style="{StaticResource EllipseToggleButton1}"/> |
952 | 953 | <Label Content="{x:Static p:Resources.PreferencesViewEnableNodeAutoCompleteNewUI}" |
|
980 | 981 | <RowDefinition Height="*" /> |
981 | 982 | <RowDefinition Height="*" /> |
982 | 983 | </Grid.RowDefinitions> |
983 | | - <Grid Grid.Row="0"> |
984 | | - <Grid.RowDefinitions> |
985 | | - <RowDefinition Height="*" /> |
986 | | - <RowDefinition Height="*" /> |
987 | | - <RowDefinition Height="*" /> |
988 | | - <RowDefinition Height="*" /> |
989 | | - </Grid.RowDefinitions> |
990 | | - <StackPanel Margin="-5,5,0,0" Orientation="Horizontal" Grid.Row="0"> |
991 | | - <Label Content="{x:Static p:Resources.MLRecommendationNumberOfResults}" |
992 | | - VerticalAlignment="Center" |
993 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
994 | | - FontWeight="Normal"/> |
995 | | - <TextBox Name="MLRecommendationResultsNumber" |
996 | | - HorizontalAlignment="Left" |
997 | | - Margin="2,0,0,0" |
998 | | - MinWidth="25" |
999 | | - Height="20" |
1000 | | - FontWeight="Regular" |
1001 | | - Text="{Binding MLRecommendationNumberOfResults}" |
1002 | | - Background="{StaticResource PreferencesWindowBackgroundColor}" |
1003 | | - Foreground="{StaticResource PreferencesWindowFontColor}" |
1004 | | - BorderThickness="0,0,0,2" |
1005 | | - PreviewTextInput="NumberValidationTextBox" |
1006 | | - IsEnabled="{Binding Path=NodeAutocompleteMachineLearningIsChecked}"/> |
1007 | | - </StackPanel> |
1008 | | - </Grid> |
1009 | | - <Label Grid.Row="1" |
| 984 | + <Label Grid.Row="0" |
1010 | 985 | Margin="-5,5,0,0" |
1011 | 986 | Content="{x:Static p:Resources.PreferencesNodeAutocompleteMethod}" |
1012 | 987 | Foreground="{StaticResource PreferencesWindowFontColor}"/> |
1013 | | - <Grid Grid.Row="2" |
| 988 | + <Grid Grid.Row="1" |
1014 | 989 | Margin="0,5,0,5"> |
1015 | 990 | <Grid.ColumnDefinitions> |
1016 | 991 | <ColumnDefinition x:Name="colObjectType" Width="Auto"/> |
|
1023 | 998 | Content="{x:Static p:Resources.ObjectType}" |
1024 | 999 | IsEnabled="{Binding Path=NodeAutocompleteIsChecked}"/> |
1025 | 1000 | </Grid> |
1026 | | - <Grid Grid.Row="3" |
| 1001 | + <Grid Grid.Row="2" |
1027 | 1002 | Margin="0,5,0,5"> |
1028 | 1003 | <Grid.ColumnDefinitions> |
1029 | 1004 | <ColumnDefinition x:Name="colMachineLearning" Width="Auto"/> |
1030 | | - <ColumnDefinition x:Name="colMLbetaTag" Width="Auto"/> |
1031 | 1005 | </Grid.ColumnDefinitions> |
1032 | 1006 | <RadioButton Grid.Column="0" |
1033 | 1007 | x:Name="RecommendedNodesRadioButton" |
|
1038 | 1012 | Click="RecommendedNodesRadioButton_Click" |
1039 | 1013 | IsEnabled="{Binding Path=NodeAutocompleteIsChecked}"/> |
1040 | 1014 | </Grid> |
| 1015 | + <Grid Grid.Row="3"> |
| 1016 | + <Grid.RowDefinitions> |
| 1017 | + <RowDefinition Height="*" /> |
| 1018 | + <RowDefinition Height="*" /> |
| 1019 | + <RowDefinition Height="*" /> |
| 1020 | + <RowDefinition Height="*" /> |
| 1021 | + </Grid.RowDefinitions> |
| 1022 | + <StackPanel Margin="-5,0,0,0" Orientation="Horizontal" Grid.Row="0"> |
| 1023 | + <Label Content="{x:Static p:Resources.MLRecommendationNumberOfResults}" |
| 1024 | + VerticalAlignment="Center" |
| 1025 | + Foreground="{StaticResource PreferencesWindowFontColor}" |
| 1026 | + FontWeight="Normal"/> |
| 1027 | + <TextBox Name="MLRecommendationResultsNumber" |
| 1028 | + HorizontalAlignment="Left" |
| 1029 | + Margin="2,0,0,0" |
| 1030 | + MinWidth="25" |
| 1031 | + Height="20" |
| 1032 | + FontWeight="Regular" |
| 1033 | + Text="{Binding MLRecommendationNumberOfResults}" |
| 1034 | + Background="{StaticResource PreferencesWindowBackgroundColor}" |
| 1035 | + Foreground="{StaticResource PreferencesWindowFontColor}" |
| 1036 | + BorderThickness="0,0,0,2" |
| 1037 | + PreviewTextInput="NumberValidationTextBox"> |
| 1038 | + <TextBox.Style> |
| 1039 | + <Style TargetType="TextBox"> |
| 1040 | + <!-- Default state --> |
| 1041 | + <Setter Property="IsEnabled" Value="False"/> |
| 1042 | + |
| 1043 | + <!-- Enable only when both conditions are true --> |
| 1044 | + <Style.Triggers> |
| 1045 | + <MultiDataTrigger> |
| 1046 | + <MultiDataTrigger.Conditions> |
| 1047 | + <Condition Binding="{Binding NodeAutocompleteMachineLearningIsChecked}" Value="True"/> |
| 1048 | + <Condition Binding="{Binding NodeAutocompleteIsChecked}" Value="True"/> |
| 1049 | + </MultiDataTrigger.Conditions> |
| 1050 | + <Setter Property="IsEnabled" Value="True"/> |
| 1051 | + </MultiDataTrigger> |
| 1052 | + </Style.Triggers> |
| 1053 | + </Style> |
| 1054 | + </TextBox.Style> |
| 1055 | + </TextBox> |
| 1056 | + </StackPanel> |
| 1057 | + </Grid> |
1041 | 1058 | </Grid> |
1042 | 1059 | </StackPanel> |
1043 | 1060 | </Grid> |
|
0 commit comments