/// Returns whether this is the Root of the WCP tree or not private object InContextGetHostRawElementProvider(object unused) { AutomationPeer peer = Peer; if (peer == null) { return(null); } return(peer.GetHostRawElementProvider()); }