Initial commit

This commit is contained in:
2014-04-30 17:33:21 -04:00
commit f965f46fb3
33 changed files with 2949 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System.Windows.Controls;
namespace Common.Wpf.Extensions
{
public static class GridExtensions
{
public static int GetRowIndex(this Grid grid, RowDefinition rowDefinition)
{
for (int i = 0; i < grid.RowDefinitions.Count; i++)
{
if (grid.RowDefinitions[i] == rowDefinition)
return i;
}
return -1;
}
}
}