// Look up a direct or indirect child control. // Throws if control does not exist. public InputControl GetControl(InputControl parent, string path) { var control = TryGetControl(parent, path); if (control == null) { throw new Exception(string.Format("Cannot find input control '{0}'", parent.MakeChildPath(path))); } return(control); }