static Grid()
{
// Register the property
Grid.RowProperty = DependencyProperty.Register("Row",
typeof(int), typeof(Grid),new PropertyMetadata());
Grid.RowSpanProperty = DependencyProperty.Register("RowSpan",
typeof(int), typeof(Grid),new PropertyMetadata());
Grid.ColumnProperty = DependencyProperty.Register("Column",
typeof(int), typeof(Grid),new PropertyMetadata());
Grid.ColumnSpanProperty = DependencyProperty.Register("ColumnSpan",
typeof(int), typeof(Grid),new PropertyMetadata());
}