diff options
author | Oleksii Sachek <alexeycacheknew@gmail.com> | 2020-01-16 16:58:44 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-01-16 18:38:29 +0300 |
commit | 92f0f12c9109c1ecff8e1aa3184bc2f4772d009e (patch) | |
tree | 351ab8591a0f41aca7a94f52a65fc12d9e41243f /main | |
parent | c942e40c22cd72f63ce08d30a1c719652f110c56 (diff) |
[1049876] [Scaffolding] Use LabelWidget for input controls
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs index cac84828a8..0eb0175f06 100644 --- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs +++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore.Scaffolding/ScaffolderTemplateConfigurePage.cs @@ -62,6 +62,7 @@ namespace MonoDevelop.AspNetCore.Scaffolding table.Add (input, 1, rowIndex); input.Changed += (sender, args) => s.SelectedValue = input.Text; input.MinWidth = 300; + input.Accessible.LabelWidget = label; input.SetFocus (); break; case ComboField comboField: @@ -100,9 +101,8 @@ namespace MonoDevelop.AspNetCore.Scaffolding table.Add (label, 0, rowIndex, hpos: WidgetPlacement.End); table.Add (comboBox, 1, rowIndex); comboBox.TextInput += (sender, args) => comboField.SelectedValue = comboBox.SelectedText; - comboBox.SelectionChanged += (sender, args) => comboField.SelectedValue = comboBox.SelectedText; - + comboBox.Accessible.LabelWidget = label; break; case BoolFieldList boolFieldList: label.Text = boolFieldList.DisplayName; @@ -132,6 +132,7 @@ namespace MonoDevelop.AspNetCore.Scaffolding rowAdditionCount++; fileSelector.HeightRequest = 20; fileSelector.FileChanged += (sender, args) => fileField.SelectedValue = fileSelector.FileName; + fileSelector.Accessible.LabelWidget = label; break; } |