public SettingsMenuView(IntPtr nativeCallerPointer, bool isInKioskMode) : base(nativeCallerPointer, isInKioskMode) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.SizeChanged += PerformLayout; mainWindow.MainGrid.Children.Add(this); Loaded += SettingsMenuView_Loaded; m_touchHandler = new WindowInteractionTouchHandler(this, false, true, true); }
public MyPinCreationButtonView(IntPtr nativeCallerPointer) { m_nativeCallerPointer = nativeCallerPointer; Click += MyPinCreationButtonView_Click; Loaded += PerformLayout; MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.SizeChanged += PerformLayout; mainWindow.MainGrid.Children.Add(this); m_touchHandler = new WindowInteractionTouchHandler(this, false, true, true); }
public CompassView(IntPtr nativeCallerPointer) { m_nativeCallerPointer = nativeCallerPointer; Click += CompassView_Click; Loaded += PerformLayout; MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.SizeChanged += PerformLayout; mainWindow.MainGrid.Children.Add(this); ShowGpsDisabledView(); m_touchHandler = new WindowInteractionTouchHandler(this, false, true, true); }
public SearchMenuView(IntPtr nativeCallerPointer, bool isInKioskMode) : base(nativeCallerPointer, isInKioskMode) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.MainGrid.Children.Add(this); Loaded += MainWindow_Loaded; mainWindow.SizeChanged += PerformLayout; m_searchInFlight = false; m_hasResults = false; m_hasTagSearch = false; m_touchHandler = new WindowInteractionTouchHandler(this, false, true, true); m_editingText = false; }
public CompassView(IntPtr nativeCallerPointer, bool isInKioskMode) { m_nativeCallerPointer = nativeCallerPointer; m_isInKioskMode = isInKioskMode; Click += CompassView_Click; Loaded += PerformLayout; CompositionTarget.Rendering += CompositionTarget_Rendering; MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.SizeChanged += PerformLayout; mainWindow.MainGrid.Children.Add(this); m_touchHandler = new WindowInteractionTouchHandler(this, false, true, true); }
public SearchMenuView(IntPtr nativeCallerPointer) : base(nativeCallerPointer) { MainWindow mainWindow = (MainWindow)Application.Current.MainWindow; mainWindow.MainGrid.Children.Add(this); Loaded += MainWindow_Loaded; mainWindow.SizeChanged += PerformLayout; m_searchInFlight = false; m_hasResults = false; m_hasCategorySearch = false; m_touchHandler = new WindowInteractionTouchHandler(this, true, false, true); MouseEnter += (o, e) => { mainWindow.PopAllMouseEvents(); mainWindow.DisableInput(); }; MouseLeave += (o, e) => { mainWindow.EnableInput(); }; }