Exemplo n.º 1
0
        /// <summary>
        /// Call back method for Pointer down
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PointerDown(object sender, PointerRoutedEventArgs e)
        {
            PointerPoint localPoint  = e.GetCurrentPoint(this);
            PointerPoint globalPoint = e.GetCurrentPoint(Coordination.Baselayer);
            Type         type        = null;

            if (sender == deleteButton)
            {
                type = typeof(Button);
            }
            menuLayerController.PointerDown(localPoint, globalPoint, sender, type);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Call back method for Pointer down
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PointerDown(object sender, PointerRoutedEventArgs e)
        {
            PointerPoint localPoint  = e.GetCurrentPoint(this);
            PointerPoint globalPoint = e.GetCurrentPoint(Coordination.Baselayer);
            Type         type        = null;

            if (sender == createSortingBoxButton)
            {
                type = typeof(Button);
            }
            else if (sender == virtualKeyboard)
            {
                type = typeof(OnScreenKeyBoard);
            }
            else if (sender == deleteButton)
            {
                type = typeof(Button);
            }
            menuLayerController.PointerDown(localPoint, globalPoint, sender, type);
        }