mono / xwt

A cross-platform UI toolkit for creating desktop applications with .NET and Mono
MIT License
1.37k stars 241 forks source link

[Mac] Fix ImageView accessibility #1113

Closed mrward closed 1 year ago

mrward commented 1 year ago

The ImageView.Accessible was using the INSAccessibility implementation from the NSImageView when it should have been using the NSImageView's Cell.

Change the AccessibleBackend to use the NSImageView's Cell. The ImageViewBackend puts the NSImageView inside an CustomAlignedContainer so the AccessibleBackend.Initialize method checks for an NSImageView after the CustomAlignedContainer.Child has been found.