Bugzilla – Bug 531027
EmbeddedImage pattern must die
Last modified: 2009-08-13 21:06:50 UTC
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060200 SUSE/3.0.11-0.1 Firefox/3.0.11 For implementing the Atk.Image property in the UiaAtkBridge for some accessible controls, we needed to expose some information from the UIA Provider side that in the first place was not available, so we created the (internal, as in internal non-exposed API, only exposed to our assemblies) EmbeddedImage pattern. However, from discussions on the AIA calls, we have found out that there may be a way to provide this information without unofficial APIs: using a children fake provider with ControlType.Image that exposes the boundingRectangle property of the background image. The controls affected are: button, checkbox, listitem, picturebox, toolstripitem, toolbarbutton, datagridviewdataitem, notifyicon The child provider should have ContentElement property as False. Reproducible: Always