public object GetValue(object target) { if (target is DependencyObject d) { return(TileGrid.GetRow(d)); } return(0); }