問題:
I'm looking for a way to find all controls on Window by their type,我正在尋找一種方法來按類型查找 Window 上的所有控件,
for example: find all TextBoxes
, find all controls implementing specific interface etc.例如:找到所有TextBoxes
,找到所有實現特定接口的控件等。
解決方案:
參考一: https://en.stackoom.com/question/45XK參考二: https://stackoom.com/question/45XK