public static void SetRow(UIElement element, int row) { if (element == null) throw new ArgumentNullException("element"); element.SetValue(RowProperty, row); }