I don't understand why dataContext might be null at this point. Could you elaborate?