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
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.
I am just checking your progress on the issue that you are having.
If you require any further assistance please do not hesitate to ask.