UserControl.OnCreateAutomationPeer 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建并返回此 AutomationPeer 的一个 UserControl。
protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeerProtected Overrides Function OnCreateAutomationPeer () As AutomationPeer返回
此 UserControlAutomationPeer 的新 UserControl。