以下の内容はhttps://kkamegawa.hatenablog.jp/entry/20080623/p2より取得しました。


UI Automation

biac wrote:

そして、 一度 AutomationPeer と付き合うと、 めんどくさくなって、 ラッパークラス Bugslayer.TestTools.GuiAutomation に転ぶ罠 f(^^;

まぁ確かにめんどいよね。まぁLIST<>で返るので、LINQでちょいちょいと…と今思ったw。

winPeer = new WindowAutomationPeer(window); 
List<AutomationPeer> children = winPeer.GetChildren();
var taget = from control in children
    where String.Compare(control.GetName(), "コントロール名") == 0
    select control;

てな感じで。




以上の内容はhttps://kkamegawa.hatenablog.jp/entry/20080623/p2より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14