ListViews in UWP and NVDA

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ListViews in UWP and NVDA

Sean Mealin

Hi all,

 

I'm developing a universal windows program with C#.  When using a ListView, each ListViewItem in the list is read as the underlying class type (e.g. my_namespace.foo).  I'm using a DataTemplate to define what properties are displayed for each item in the list, which seem to be viewable by NVDA if I use object navigation to look at the children of the ListViewItem.

 

My question is this: is there a way to get NVDA to read the ListViewItem properly?  Looking online, a common answer is to implement the ToString method on the underlying object, but that isn't useful since different ListViews show a different view of the object by binding to different properties on that object.  I suspect that this is a UWP/Microsoft problem, since the same thing happens with Narrator.  As a workaround, can we have NVDA detect that it's looking at a ListView, and concatenate the name of the child elements of the ListViewItem?  I'm willing to open a bug for this, and look at the feasibility of reading the children, but I thought I would see what the list thinks before doing anything.

 

Sean


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: ListViews in UWP and NVDA

James Teh
There's an issue filed for this already (but no progress):
https://github.com/nvaccess/nvda/issues/3574
In short, messing with item names for all lists is a bad idea; we might break cases which actually work as intended. That said, this is obviously a problem and a workaround would be nice. The question is how to detect these broken cases and fix them without breaking correct implementations. If oyu have ideas as to how this might be done, please do comment on the issue with technical details. Thanks.

Jamie

On Sun, Mar 12, 2017 at 3:26 AM, Sean Mealin <[hidden email]> wrote:

Hi all,

 

I'm developing a universal windows program with C#.  When using a ListView, each ListViewItem in the list is read as the underlying class type (e.g. my_namespace.foo).  I'm using a DataTemplate to define what properties are displayed for each item in the list, which seem to be viewable by NVDA if I use object navigation to look at the children of the ListViewItem.

 

My question is this: is there a way to get NVDA to read the ListViewItem properly?  Looking online, a common answer is to implement the ToString method on the underlying object, but that isn't useful since different ListViews show a different view of the object by binding to different properties on that object.  I suspect that this is a UWP/Microsoft problem, since the same thing happens with Narrator.  As a workaround, can we have NVDA detect that it's looking at a ListView, and concatenate the name of the child elements of the ListViewItem?  I'm willing to open a bug for this, and look at the feasibility of reading the children, but I thought I would see what the list thinks before doing anything.

 

Sean


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel



------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel