I think doing that won't cause an exception, but doing the following will (if I'm not mistaken):

UserControl uc = ((UserControl) grid.Parent);