This post originated from an RSS feed registered with .NET Buzz
by Jason Nadal.
Original Post: Avalon Control Collection - UIElementCollection
Feed Title: Jason Nadal
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jnadal/Rss.aspx
Feed Description: Restless C#ding
One of the first things I noticed when trying to iterate through the controls of a Longhorn form looking for a control was the absence of the Controls class. In its place is the UIElementCollection, a member of the MSAvalon.Windows.Controls namespace for the PDC build. This is an array which you can use to gain access to the child controls of an element from the codebehind. For example, if you had this scenario in the XAML document: