如题,继承TextBox生成新的TextBox子类,并重写它的OnCreateAutomationPeer()方法如下:
protected override AutomationPeer OnCreateAutomationPeer()
{
return new FrameworkElementAutomationPeer(this);
}
如题,继承TextBox生成新的TextBox子类,并重写它的OnCreateAutomationPeer()方法如下:
protected override AutomationPeer OnCreateAutomationPeer()
{
return new FrameworkElementAutomationPeer(this);
}