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
1339
Disable UI Automation Support
posted

We have been seeing consistent CPU consumption in an actively updated XamDataGrid coming from the automation peers in the UI automation infrastructure.  Today my processor is melting down while RecordListGroupAutomationPeer and RecordAutomationPeer call IsOffscreenCore (see attached profile).

It isn't clear to me why the automation peers are spinning up in the first place, I don't believe I have any software or settings enabled that should cause them to be created.  I have no interest in UI automation support and it is only causing problems.  We were able to successfully suppress errors in the XamDataTree's peers by this trick below, but it does NOT work with the XamDataGrid.  It appears the child peers are being created outside the path of XamDataGrid.OnCreateAutomationPeer():

        protected override AutomationPeer OnCreateAutomationPeer()
        {
            return null;
        }


Are there any other options for suppressing the UI automation infrastructure from spinning up when I explicitly desire to suppress it?

We are currently running 15.1.20151.2016 due to performance problems that were introduced in the last 15.1 SR following that build (and presumably exist in 15.2; that issue is open and continues to be investigated).

Parents Reply Children