Exemplo n.º 1
0
        public EditorWndCtx(Canvas canv, 
                            DistributedInkCanvas inkCanv,
                            Palette palette,
                            InkPalette inkPalette,                     
                            SurfaceWindow keyboardWnd,
                            int topicId,
                            int discussionId)
        {
            _canv = canv;
            _inkCanv = inkCanv;
            _palette = palette;
            _inkPalette = inkPalette;
            _keyboardWnd = keyboardWnd;

            mgr = new SceneManager(canv, inkCanv, palette, inkPalette,  topicId, discussionId);
         
            touchTimer = new ContactTimer(DevDownAsMouse, 0.05, false);

            SetListeners(true); 
        }
Exemplo n.º 2
0
 //////////////////////////////   unsolved  ////////////////////////////// 
 private void unsolved_PreviewTouchDown(object sender, TouchEventArgs e)
 {
     unsolvedDragTapRecognizer.Stop();
     unsolvedDragTapRecognizer = new ContactTimer(                                   
                                          (object source, EventArgs e1)=>
                                          AttemptToBeginDragInside(e, unsolved, unsolvedCurrentTopicItems)
                                      );
     recentTouch = Utils.findSVIUnderTouch(e);        
 }
Exemplo n.º 3
0
        //////////////////////////////  agreed  //////////////////////////////// 
        private void agreement_PreviewTouchDown(object sender, TouchEventArgs e)
        {
            agreedDragTapRecognizer.Stop();
            agreedDragTapRecognizer = new ContactTimer(
                        (object sender1, EventArgs e1) =>
                            AttemptToBeginDragInside(e, agreement, agreedAllTopicsItems)
                                     );

        }