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
committermonojenkins <jo.shields+jenkins@xamarin.com>2019-11-26 14:26:36 +0300
commit83051f7581866418c0c4d9abbb0db7aa866c07f8 (patch)
treeded45ff3ed0e05a92dff52a6c4cda366d738279e /main
parent156c704703e056183d26d30ac304f64aa381f5b4 (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