This is a migrated thread and some comments may be shown as answers.

UIAutomation

6 Answers 100 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 23 Jan 2012, 01:12 PM
Hello,

we want to use the RichTextBox together with speech recognition software through UIAutomation. However, the RichTextBox does not expose a consolidated UIAutomation interface to the text content.
What is the supported way to use the RichTextBox with UIAutomation?
e.g. get all the text content, change selection, insert/delete selection.

Best regards,
Markus

6 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 26 Jan 2012, 10:14 AM
Hi Markus,
Unfortunately RadRichTextBox doesn't support UI automation for now. This feature is in our to-do list, but currently it's not scheduled for implementation.

Please, excuse us for the inconvenience. Don't hesitate to contact us if you have other questions.

Greetings,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Markus
Top achievements
Rank 1
answered on 26 Jan 2012, 11:14 AM
Hello,

is Telerik aware of any workarounds to cope with that situation? If not, what are our possibilities to get the feature scheduled?

Best regards,
Markus
0
Boby
Telerik team
answered on 31 Jan 2012, 12:25 PM
Hello Markus,

You can try to create automation wrapper of control deriving RadRichTextBox by yourself (as described here). This, however, is not a trivial task and we are not sure if implementing it would be possible without some internal changes.
Q1 will be released in a couple of weeks, and the schedule for Q2 is already filled up with important features requested by numerous customers. We will try to squeeze the UI automation for Q2, but at this time we are not sure if this would be possible, so the implementation of the feature could be scheduled for later release.

Don't hesitate to contact us if you have other questions.

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Markus
Top achievements
Rank 1
answered on 31 Jan 2012, 05:29 PM
Hello,
today I tried to implement my own UIAutomation TextProvider. However, it turned out that Silverlight does not support this. Internal code in the AutomationPeer class expects the internal class TextRangeProvider and fails with a class cast exception when a custom ITextRangeProvider is used. From my perspective this means that even you would not be able to implement a TextProvider for the RadRichTextBox.

Do you have any experience or advice or contacts to Microsoft to get help with this problem?

Thanks,
Markus

0
Boby
Telerik team
answered on 03 Feb 2012, 12:56 PM
Hi Markus,
Unfortunately we have not investigated the problem in such details. You can report the issue directly to Microsoft at Microsoft Connect, and also send us (through a support ticket) sample project that reproduces it, so we can investigate it further.
Thank you for your cooperation.

Greetings,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Markus
Top achievements
Rank 1
answered on 03 Feb 2012, 01:51 PM
Hello,

I'm already in contact with Microsoft and will let you know about any results.

Markus
Tags
RichTextBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Boby
Telerik team
Markus
Top achievements
Rank 1
Share this question
or