public static void DetachInputConstraint(InputConstraint constraint)
 {
     Debug.Assert(inputConstraint == constraint, "you shouldn't clear someone elses constraint");
     if (inputConstraint == constraint)
     {
         inputConstraint = null;
     }
 }
 /// <summary>
 /// This is used to constrain input use and should not be used by any normal UI
 /// Its primary use is for a tutorial
 /// </summary>
 /// <param name="constraint"></param>
 public static void AttachInputConstraint(InputConstraint constraint)
 {
     Debug.Assert(inputConstraint == null);
     inputConstraint = constraint;
 }