Gets the total number of items within this instance of ColumnDefinitionCollection.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example demonstrates how to use theproperty.
Private Sub colCount(ByVal sender As Object, ByVal e As RoutedEventArgs) tp2.Text = "The current number of Columns is: " + grid1.ColumnDefinitions.Count.ToString() End Sub
To view the complete sample, see How to: Manipulate Columns and Rows by Using ColumnDefinitionsCollections and RowDefinitionsCollections.
Available since 3.0