I have a doubt in Windows Presentation Foundation. I'm explaining it below. Please help me.

I was trying to migrate one of my WinForms project to WPF.

Is there any method to get all controls on a WPF Window similar to MyWindowsForm.Controls() or MyWindowsFormGroupBox.Controls() to access all controls on a WPF Window?

How can I have access to all controls on a WPF Window or a WPF grid (not DataGrid) pragmatically?

How can I access all controls in a WPF Window or WPF Grid, the Windows Forms way like this?:

For Each ctrl as Control in MyWindowsFormGroupBox.Controls()
If TypeOf ctrl is TextBox Then CType(ctrl, TextBox).Text = ""
Next
Anonymous User
Anonymous User
Asked Jun 03, 2010

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.

Categories