示例#1
0
        //------------------------------------------------------
        //
        //  Private Methods
        //
        //------------------------------------------------------

        #region Private Methods

        // The signature of most of the folling methods is "object func( object arg )",
        // since that's what the Conmtext.Invoke delegate requires.
        // Return the element at specified coords.
        private object InContextElementProviderFromPoint(object arg)
        {
            Point          point = (Point)arg;
            AutomationPeer peer  = Peer;

            if (peer == null)
            {
                return(null);
            }
            AutomationPeer peerFromPoint = peer.GetPeerFromPoint(point);

            return(StaticWrap(peerFromPoint, peer));
        }