Example #1
0
 /// <summary>
 /// Configures the required things needed for the control to run.
 /// </summary>
 /// <param name="owner">The UI element holding all the registered elements for this controller.</param>
 /// <param name="uiManagedThreadId">The thread ID of the UI Thread.</param>
 /// <remarks>
 /// UIThreadID is used to make sure that UI functions are always
 /// called on the UI thread.  WPF really doesn't like you doing cross-thread calls to UI
 /// element functions (the HitTest for example).
 /// </remarks>
 public virtual void ConfigureFramework(FrameworkConfiguration config)
 {
     this.Owner   = config.Owner;
     uiThreadId   = config.UIManagedThreadId;
     Assigner     = new TouchElementAssigner(config.Owner);
     IsConfigured = true;
 }
Example #2
0
 /// <summary>
 /// Configures the required things needed for the control to run.
 /// </summary>
 /// <param name="owner">The UI element holding all the registered elements for this controller.</param>
 /// <param name="uiManagedThreadId">The thread ID of the UI Thread.</param>
 /// <remarks>
 /// UIThreadID is used to make sure that UI functions are always
 /// called on the UI thread.  WPF really doesn't like you doing cross-thread calls to UI
 /// element functions (the HitTest for example).
 /// </remarks>
 public virtual void ConfigureFramework(FrameworkConfiguration config)
 {
     this.Owner = config.Owner;
     uiThreadId = config.UIManagedThreadId;
     Assigner = new TouchElementAssigner(config.Owner);
     IsConfigured = true;
 }