Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2019-11-25 18:19:06 +0300
committerMatt Ward <matt.ward@microsoft.com>2019-11-25 18:19:06 +0300
commit06771fc0db7c32d4760895159c543579c5ae0862 (patch)
tree7eddfe3a9c2f6e6883c10c3ed66a7a75e9aa62b3 /main
parent1b7ba51932a76405a9b9f7cd28da4af9f6b96c29 (diff)
[NuGet] Fix column header now read for first column in Consolidate tab
Combine project name and check box in Consolidate tab. This fixes the problem where the check box has a column with no name. Now the check box and the project name are in the same column so Voice Over reads the column header name, the project name and the checkbox state which makes it easier to understand what the list view is displaying. Fixes VSTS #1021702 - Accessibility: NuGet Packages: Column Header name is not present for the first column.
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs
index 7e9e87966d..0ba0bc6ea2 100644
--- a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs
+++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/ManagePackagesDialog.cs
@@ -249,16 +249,15 @@ namespace MonoDevelop.PackageManagement
projectCheckBoxCellView.ActiveField = projectCheckedField;
projectCheckBoxCellView.Editable = true;
projectCheckBoxCellView.Toggled += ProjectCheckBoxCellViewToggled;
- var column = new ListViewColumn (string.Empty, projectCheckBoxCellView);
- projectsListView.Columns.Add (column);
-
- // Project column.
- var textCellView = new TextCellView ();
- textCellView.TextField = projectNameField;
- column = new ListViewColumn (GettextCatalog.GetString ("Project"), textCellView) {
+ var column = new ListViewColumn (GettextCatalog.GetString ("Project"), projectCheckBoxCellView) {
CanResize = true,
SortDataField = projectNameField
};
+
+ // Project name.
+ var textCellView = new TextCellView ();
+ textCellView.TextField = projectNameField;
+ column.Views.Add (textCellView);
projectsListView.Columns.Add (column);
// Package version column