I think this is a bug, if I call the method for creating the automation peer for a ContentControl element it will return null.UIElementAutomationPeer.CreatePeerForElement(element);I have complex custom controls with some templatedpart done with ContentControls, when I override the method GetChildrenCore() to rpovide the propert AutomationPeer for the templated part of my control I can't return the AutomationPeer for the ContentControl, I have to Create my ContentControlAutomationPeer that use the VisualTreeHelper to navigate all its children and return all their AutomationPeer, but I'm asking why there isn't a default ContentControlAutomationPeer that could be returned by the method CreateAutomationPeerForElement ?
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...