Exemple #1
0
        public MainPage()
        {
            InitializeDefaults();
            InitializeComponent();

            _touchBehavior       = new TouchBehavior(this);
            _touchBehavior.Tap  += touchBehavior_Tap;
            _touchBehavior.Move += touchBehavior_Move;

            _visualStates = new VisualStates(this);

            DataContext = this;
        }
 public static void AcceptInsertion()
 {
     _touchControl.Apply();
     _currentMode = TouchBehavior.Movment;
 }
 public static void CancelInsertion()
 {
     _touchControl.Clean();
     _currentMode = TouchBehavior.Movment;
 }
 public static void SetCurrentMode(TouchBehavior mode)
 {
     _currentMode = mode;
 }