상속: Windows.UI.Xaml.RoutedEventArgs, IDragCompletedEventArgs
예제 #1
0
        private void Thumb_DragCompleted(object sender, DragCompletedEventArgs e)
        {
            if (ValueChanged != null)
            {
                if ((sender.Equals(MinThumb)))
                {
                    ValueChanged(this, new RangeChangedEventArgs(_oldValue, RangeMin, RangeSelectorProperty.MinimumValue));
                }
                else
                {
                    ValueChanged(this, new RangeChangedEventArgs(_oldValue, RangeMax, RangeSelectorProperty.MaximumValue));
                }
            }

            VisualStateManager.GoToState(this, "Normal", true);

        }
예제 #2
0
 private void ThumbDragCompleted(object sender, DragCompletedEventArgs e)
 {
     OnRangeChanged();
 }
        private void LowerThumb_DragCompleted(object sender, DragCompletedEventArgs e)
        {
            double lowerRectHeight = root.RowDefinitions.ElementAt(4).Height.Value;
            double deltaChange = lowerRectHeight * _normalisationFactor;
            this.LowerValue = this.Min + deltaChange;

            // update event args with new value and fire the event
            args.NewValue = this.LowerValue;
            OnLowerValueChanged(args);
        }
예제 #4
0
 private void OnDragCompleted(object sender, DragCompletedEventArgs e)
 {
     UpdateSnapToTicks();
 }
예제 #5
0
 private void OnThumbDragCompleted(object sender, DragCompletedEventArgs e)
 {
     double num = Math.Round(base.Value);
     if (num != base.Value)
     {
         base.Value = num;
     }
     EventHandler dragCompleted = this.DragCompleted;
     if (dragCompleted != null)
     {
         dragCompleted(this, EventArgs.Empty);
     }
 }