WinUI-Gallery icon indicating copy to clipboard operation
WinUI-Gallery copied to clipboard

AutomationPeer samples

Open marcelwgn opened this issue 4 years ago • 1 comments

Is this a totally new sample, an addition to an existing sample page, or a modification of an existing sample page?

  • [x] New sample
  • [ ] Addition to existing sample
  • [ ] Modification to existing sample

If this is an addition/modification to an existing sample page, which one? N.A.

Describe the sample

When writing custom controls, to ensure accessibility, people use AutomationPeer. Given that we also have an "AutomationProperties" page, I think we should also have a page showing how to create automation peers.

Is your sample request related to a problem? Please describe it

I've written/updated multiple automationpeers and often the documentation doesn't really tell you what the correct way is to do something, e.g. how to update selection or provide value changes.

Additional context

marcelwgn avatar Jul 01 '20 09:07 marcelwgn

Cross ref #1022

marcelwgn avatar Jun 25 '22 14:06 marcelwgn

@chingucoding This is now part of the Accesibility section, right? Should we close it?

niels9001 avatar Nov 29 '23 16:11 niels9001

Nope, automation peers are not part of the a11y section yet.

marcelwgn avatar Dec 01 '23 11:12 marcelwgn

This gallery is more about using WinUI controls. Few people actually create custom controls. For custom AP samples, one can refer to the online docs here: https://learn.microsoft.com/en-us/windows/apps/design/accessibility/custom-automation-peers

Should there be more demand, we can re-open this issue.

karkarl avatar Feb 22 '24 19:02 karkarl