public override void ConfigureFramework(FrameworkConfiguration config) { if (!(config is MouseConfiguration)) throw new ArgumentException("Config must be MouseConfiguration"); mouseConfig = config as MouseConfiguration; base.ConfigureFramework(config); }
internal static FrameworkConfiguration GetMouseConfig(FrameworkElement uiParent) { var conf = new MouseConfiguration { Owner = uiParent, UIManagedThreadId = Thread.CurrentThread.ManagedThreadId, EventWindow = uiParent }; return conf; }
public override void ConfigureFramework(FrameworkConfiguration config) { if (!(config is MouseConfiguration)) { throw new ArgumentException("Config must be MouseConfiguration"); } mouseConfig = config as MouseConfiguration; base.ConfigureFramework(config); }