예제 #1
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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;
        }
예제 #5
0
        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);
        }
예제 #6
0
        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(); };
        }