简体   繁体   中英

get all wpf controls in cs file and check their type

I have some xam controls on wpf form. i want to count the control, how much controls on the form? in cs file and also check their type either control is text box or combo box or etc. plz help, its urgent

使用System.Windows.Media.VisualTreeHelper.GetChildrenCount()和GetChild()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM