Accessibility support in RadTabControl (UISpy)

5 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 04 Nov 2009 Link to this post

    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> 

  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 09 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 10 Nov 2009 Link to this post

    Ok, sounds good. Do you have an approximate release date for SP1?
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 10 Nov 2009 Link to this post

    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.
  6. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 15 Nov 2009 Link to this post

    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.
Back to Top
DevCraft banner