// private ScatterView container; public PreviewWindow(Main _main) { InitializeComponent(); main = _main; provider = new SurfaceTwoTouchInputProvider(this); GestureFramework.Initialize(provider, this.previewRoot, Assembly.GetExecutingAssembly()); GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged); }
public IGT(Window handler, Canvas mainCanvas, ScatterView container) { provider = new SurfaceTwoTouchInputProvider(handler); GestureFramework.Initialize(provider, this.LayoutRoot, Assembly.GetExecutingAssembly()); GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged); loadIGT(provider); Container = container; }
public IGT(Window handler) { provider = new SurfaceTwoTouchInputProvider(handler); GestureFramework.Initialize(provider, this.LayoutRoot, Assembly.GetExecutingAssembly()); GestureFramework.EventManager.MultiTouchChanged += new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged); loadIGT(provider); LayoutRoot.Children.Add(options); LayoutRoot.Children.Add(rules); }
private void CloseButton_Click(object sender, RoutedEventArgs e) { foreach (ASGPage previewPage in main.ActiveSessionManager.CurrentProject.PageDictionary.Values) { foreach (var item in previewPage.PrototypeElementDictionary.Values) { ScatterViewItem svi = new ScatterViewItem(); svi.Width = item.Width; svi.Height = item.Height; svi.Tag = item; foreach (var gesture in item.GestureTargetPageMap) { DetachEvent(gesture, svi); } } } provider = null; GestureFramework.EventManager.MultiTouchChanged -= new TouchInputProvider.MultiTouchChangeEventHandler(EventManager_MultiTouchChanged); Application.Current.Windows[1].Close(); }
private void loadIGT(SurfaceTwoTouchInputProvider _provider) { InitializeComponent(); this.provider = _provider; this.Loaded += new RoutedEventHandler(IGT_Loaded); options = new IGTOptions(); rules = new IGTRules(this); }