Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Invalid operation while expanding a RecordAutomationPeer
posted

I am trying to perform testing against a XamDataGrid via AutomationPeers.  My datasource is grouped, with each group having child records.  However, when I try to expand the band using the IExpandCollapseProvider of the RecordAutomationPeer, I get an InvalidOperationException().  It seems the peer is reporting the ExpandCollapseState of the group band as "LeafNode" but it should be "Collapsed" as the band is collapsed and it does have child records.

Can someone please confirm this is a bug and let me know if there are any workarounds using AutomationPeer?  For various reasons, I don't want to operate directly against the control.

Thanks.

Brian

Parents
No Data
Reply
  • 16495
    Offline posted

    Hello Brian,

     

    Thank you for your post.

     

    I have been looking into it, but it seems like I am missing something about your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you.

     

    Looking forward to hearing from you.

Children