Inheritance: RoutedEventArgs, IManipulationStartingRoutedEventArgs
Example #1
0
        private void _contentGrid_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
        {
            if (_header.ContentHeight > 0)
            {
                Grid.SetRow(_pullToRefreshHeader, 0);
            }
            else
            {
                Grid.SetRow(_pullToRefreshHeader, 3);
            }

            startingPullToRefresh = false;
            startingCrossSlideLeft = false;
            startingCrossSlideRight = false;
            manipulationOnHeaderOrFooter = false;
            if (_verticalScrollBar.Value == 0 && AllowPullToRefresh)
            {
                startingPullToRefresh = true;
            }

            //Cross Slide left
            if (_horizontalScrollBar.Value == 0)
            {
                startingCrossSlideLeft = true;
            }
            //double
            if (Math.Abs(_horizontalScrollBar.Value - _horizontalScrollBar.Maximum) < 0.0001)
            {
                startingCrossSlideRight = true;
            }

        }
 protected override void OnManipulationStarting(ManipulationStartingRoutedEventArgs e)
 {
     base.OnManipulationStarting(e);
     if (Action != null)
     {
         Action.OnManipulationStarting(e);
     }
 }
 private void CaptureOnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs manipulationStartingRoutedEventArgs)
 {
     var zoom = ViewModel.Zoom;
     if (zoom != null && zoom.Supported)
     {
         currentZoom = zoom.Value;
     }
 }
Example #4
0
 private void Grid_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     
     Debug.WriteLine("ManipulationStarting");
 }
		private void OnGridChartArea_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
		{
			GridChartArea.Opacity = .2;
		}
 private void PivotItem_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     btnSaveSettings.Visibility = Visibility.Visible;
 }
		void DragLetter_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
		{
			if (m_turnState != eTurnState.PlayersTurn)
			{
				e.Handled = true;
			}
			else if (ChangingALetter)
			{
				ExchangeTile(sender as TileControl);
				e.Handled = true;
			}
		}
Example #8
0
 /// <summary>
 /// ${ui_action_MapAction_event_OnManipulationStarting_D}
 /// </summary>
 public virtual void OnManipulationStarting(ManipulationStartingRoutedEventArgs e) { }
        private void Element_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
        {
            int id = this.listBox.SelectedIndex;
            Status("Dragging element " + id);

            this.selectingElement = (FrameworkElement)sender;
            this.dummyMovingElement = DummyFactory.Create(this.selectingElement);
            //this.emptyPlaceholderElement = DummyFactory.CreateEmpty(this.selectingElement);

            /*
             * Create a dummy and add it to the canvas at the same position
             */
            Point pos = GetPosition(this.selectingElement);
            this.MainCanvas.Children.Add(this.dummyMovingElement);
            Canvas.SetLeft(this.dummyMovingElement, pos.X);
            Canvas.SetTop(this.dummyMovingElement, pos.Y);

            // Set empty placeholder size
            this.ItemPanel.SetEmptySize(this.selectingElement.DesiredSize);

            // Hide the selecting item, but still receive touch
            this.ItemPanel.ExcludeItem(this.selectingElement);

            // Enable Manipulation mod in wrappanel
            this.ItemPanel.SetManipulation(true);
        }
 private void theCanvas_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     //this.rect.Stroke = new SolidColorBrush(Colors.Pink);
       //this.rect.StrokeThickness = 15;
 }
Example #11
0
 private void OnFilteredOutManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     e.Handled = true;
 }
Example #12
0
 private void Rect3_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     tbxMessage.Text += string.Format("{0}\r\n", "Rect3_ManipulationStarting");
 }
Example #13
0
 void Calendar_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     e.Container = this;
     e.Handled = true;
 }
Example #14
0
 private void overlay_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     Debug.WriteLine("overlay_ManipulationStarting: " + e.ToString());
 }
Example #15
0
 private void OnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs manipulationStartingRoutedEventArgs)
 {
     Canvas.SetZIndex(this, ++Settings.ZIndex);
 }
 private void ScrollContentPresenter_OnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     x = _scrollViewer.HorizontalOffset;
     y = _scrollViewer.VerticalOffset;
 }
 private void ScrollContentPresenter_OnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     _startingOffsetX = _scrollViewer.HorizontalOffset;
     _startingOffsetY = _scrollViewer.VerticalOffset - ((TranslateTransform)_presenter.RenderTransform).Y;
 }
Example #18
0
 private void RefreshLoadPanel_ManipulationStarting(object sender, Windows.UI.Xaml.Input.ManipulationStartingRoutedEventArgs e)
 {
     Debug.WriteLine("### Starting");
 }
Example #19
0
 private void OnGlassManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     _glass.Background = null;
     _cancelManipulation = true;
 }
        private void Ellipse_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
        {
            var elli = (sender as Ellipse);

            var parent = elli.Parent as Panel;
            (parent.Background as SolidColorBrush).Opacity = 0.5;
            foreach (var child in parent.Children)
            {
                if (child != elli)
                {
                    child.Opacity = 0.5;
                }
            }
        }
Example #21
0
 void ElementManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     e.Handled = true;
 }
Example #22
0
 void ElementManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
 }
Example #23
0
 void ManipulateMe_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     forceManipulationsToEnd = false;
     e.Handled = true;
 }
 void TouchPanel_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     if (searchCancellationToken != null)
         searchCancellationToken.Cancel();
     HideSearch();
     VisualStateManager.GoToState(this, "SearchLocationMinimize", true);
     if (PreviousSelectedItem == SearchLocationPoint)
         PreviousSelectedItem = null;
 }
Example #25
0
 /// <summary>
 /// Called before the ManipulationStarting event occurs.
 /// </summary>
 /// <param name="e">Event data for the event.</param>
 /// <remarks>
 /// This is used for touch scrolling.
 /// </remarks>
 protected override void OnManipulationStarting(ManipulationStartingRoutedEventArgs e)
 {
     base.OnManipulationStarting(e);
 }
Example #26
0
		private void ButtonSnap_OnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
		{
			Debug.WriteLine("ButtonSnap_OnManipulationStarting");
			var button = sender as Button;
			if (button == null) return;
			var snap = button.DataContext as Snap;
			if (snap == null) return;
			_relevantSnap = snap;

			_isFingerDown = true;
			_scrollYIndex = ScrollViewer.VerticalOffset;
			_holdingTimer.Start();
		}
Example #27
0
 private void DrawCanvas_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
 }
 private void OnManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
 {
     this.currentOfsset = translateTransfrom.X;
 }