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

Accessibility support in RadTabControl (UISpy)

4 Answers 66 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 04 Nov 2009, 02:52 PM
I've been using UISpy to find out just how accessible our application is. We use RadTabControl in a few places, and It seems that UISpy cannot access the content in tab items. It sees the tab control and the tab items themselves, but not their content. I've included a screen shot of the view in UISpy of the following XAML. As you can see, the buttons do not appear. But for some reason UISpy seems to think that the tab items are named by the text in the buttons. Please take a look at this and see what you make of it.

<teleriknav:RadTabControl> 
    <teleriknav:RadTabControl.Items> 
        <teleriknav:RadTabItem Header="Tab 1"
            <teleriknav:RadTabItem.Content> 
                <Button x:Name="Btn1" 
                        HorizontalAlignment="Left" 
                        VerticalAlignment="Top" 
                        Content="Button 1"></Button> 
            </teleriknav:RadTabItem.Content> 
        </teleriknav:RadTabItem> 
        <teleriknav:RadTabItem Header="Tab 2"
            <teleriknav:RadTabItem.Content> 
                <Button x:Name="Btn2" 
                        HorizontalAlignment="Left" 
                        VerticalAlignment="Top" 
                        Content="Button 2"></Button> 
            </teleriknav:RadTabItem.Content> 
        </teleriknav:RadTabItem> 
    </teleriknav:RadTabControl.Items> 
</teleriknav:RadTabControl> 

4 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 09 Nov 2009, 07:25 PM
Hello Henrik,

I checked the implementation of the UI Automation Peer, and it only adds selection to the base ItemAutomationPeer:

public class RadTabItemAutomationPeer : ItemAutomationPeer, ISelectionItemProvider

It seems this is not enough to expose its content properly.

We are going to review and improve the UIAutomation peers for the Q1 release.

Since this is an obvious issue it will be fixed earlier, at latest for the SP1 release. I will reply here once the issue has been fixed in one of the internal builds.

All the best,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hwsoderlund
Top achievements
Rank 1
answered on 10 Nov 2009, 08:47 AM
Ok, sounds good. Do you have an approximate release date for SP1?
0
Miroslav
Telerik team
answered on 10 Nov 2009, 04:12 PM
Hi Henrik,

I believe that the service pack will be available in the second week of December. This may possibly change, so unfortunately I cannot speak of an exact date.

Hopefully this will be acceptable for you,

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Miroslav
Telerik team
answered on 15 Nov 2009, 02:16 PM
Hi Henrik,

I just wanted to follow up on this issue.

The UIAutomation peer has been fixed so that it correctly displays the contents of the tab.

Since there is just one content loaded in the VisualTree at a time, we cannot show the content of TabItems that are not selected. I do not expect that we will be change this.

The fixes should be available in the next internal build.

I have attached a simple project that includes the changes, you can see how it works with UISpy if you wish.

Your Telerik Points have been updated.

Any other feedback on the UIAutoamtion is welcome,

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabControl
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
hwsoderlund
Top achievements
Rank 1
Share this question
or