public static int GetRowSpan(IDependencyObject element) { return (int) element.GetValue (RowSpanProperty); }