The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
.NET Framework (current version)
Gets the actual number of elements in the collection.
PresentationFramework (in PresentationFramework.dll)
abstract Count : int with get
override Count : int with get
The actual number of elements in the collection.
The following example uses the Count property to count the number of child elements in a UIElementCollection.
void GetCount(object sender, RoutedEventArgs e)
TextBlock txt3 = new TextBlock();
txt3.Text = "UIElement Count is equal to " + sp1.Children.Count.ToString();
Return to top
Available since 3.0