public override void ConfigureFramework(FrameworkConfiguration config) { if (!(config is MouseConfiguration)) throw new ArgumentException("Config must be MouseConfiguration"); mouseConfig = config as MouseConfiguration; base.ConfigureFramework(config); }
/// <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; }
public override void ConfigureFramework(FrameworkConfiguration config) { if (!(config is TraalConfiguration)) throw new ArgumentException("Config must be TraalConfiguration"); traalConfig = config as TraalConfiguration; setTrackingConfig(trackingClient, traalConfig.TrackingConfigPath, traalConfig.UseVfwDriver); base.ConfigureFramework(config); }