Bug 531027

Summary: EmbeddedImage pattern must die
Product: [Mono] UI Automation Reporter: Andres Aragoneses <aaragoneses>
Component: Winforms - UIAAssignee: E-mail List <mono-a11y-bugs>
Status: NEW --- QA Contact: E-mail List <mono-a11y-qa>
Severity: Minor    
Priority: P5 - None    
Version: Unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andres Aragoneses 2009-08-13 21:06:23 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