Normally, the AutomationPeer support of WPF Components holds some memory and it needs to be released manually. This can be done by using the following steps.
Create a class derived from WindowAutomationPeer and override it's GetChildrenCore method and returns “null” value that clears the AutomationPeer item from memory as follows.
Now override the OnCreateAutomationPeer of the window and it returns the class as follows.
This page will automatically be redirected to the sign-in page in 10 seconds.