Beispiel #1
0
 public Ticker(ref MTElementDictionary elements)
 {
     eles                = elements;
     this.timer          = new Timer();
     this.timer.Interval = 3;
     this.timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
     this.timer.Start();
 }
Beispiel #2
0
 /// <summary>
 /// Constructor to create an assigner from a top-level parent which contains ALL the controls which will be assigned for.
 /// Hit test will only run for child controls of the parent object.
 /// </summary>
 /// <param name="UIParent">Parent UI object for which sub-controls will be evaluated for multi-touch.  This is often your Window or Canvas.</param>
 public TouchElementAssigner(FrameworkElement UIParent)
 {
     Elements = new MTElementDictionary(UIParent);
     Touches  = new TouchElementDictionary();
     t        = new Ticker(ref Elements);
 }