Click here to Skip to main content
15,891,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

How to find or access Dynamically added TextBox or Lable in C# WPF.
C#
for loop >>
{
string ControlName = Convert.ToString((Label)this.FindName("lblWhen" + Convert.ToString(i)))
}

above code is not working.

Thanks is Advance.
Posted
Updated 5-Oct-12 1:17am
v2
Comments
Keith Barrow 5-Oct-12 7:25am    
Is there any reason you are not binding controls - this is much easier and one of the great benefits of WPF over win-forms.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900