Sample implementation of Windows UI Automation Custom Pattern in managed code