當前位置: 首頁>>代碼示例>>C#>>正文


C# Primitives.DragCompletedEventArgs類代碼示例

本文整理匯總了C#中System.Windows.Controls.Primitives.DragCompletedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# DragCompletedEventArgs類的具體用法?C# DragCompletedEventArgs怎麽用?C# DragCompletedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DragCompletedEventArgs類屬於System.Windows.Controls.Primitives命名空間,在下文中一共展示了DragCompletedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnThumbDragCompleted

 protected override void OnThumbDragCompleted(DragCompletedEventArgs e)
 {
     if (SliderDragCompleted != null)
     {
         SliderDragCompleted(this, e);
     }
 }
開發者ID:JLignell,項目名稱:Jokify,代碼行數:7,代碼來源:SeekSlider.cs

示例2: OnThumbDragCompleted

        protected override void OnThumbDragCompleted(DragCompletedEventArgs e)
        {
            if (ThumbDragCompleted != null)
                ThumbDragCompleted(this, e);

            base.OnThumbDragCompleted(e);
        }
開發者ID:cameronws,項目名稱:gemini,代碼行數:7,代碼來源:SliderEx.cs

示例3: CompleteNodeMove

        private void CompleteNodeMove(Thumb thumb, DragCompletedEventArgs e)
        {
            var node = thumb.DataContext as NodeElementViewModel;
            if (node == null)
                return;

            node.UpdateNodePosition();
        }
開發者ID:efixe,項目名稱:Engineering-Thesis-Project,代碼行數:8,代碼來源:BlueprintView.xaml.cs

示例4: CompleteSinkMove

        private void CompleteSinkMove(Thumb thumb, DragCompletedEventArgs e)
        {
            var sink = thumb.DataContext as SinkViewModel;
            if (sink == null)
                return;

            sink.UpdateSinkPosition();
        }
開發者ID:efixe,項目名稱:Engineering-Thesis-Project,代碼行數:8,代碼來源:BlueprintView.xaml.cs

示例5: DragablzDragCompletedEventArgs

 public DragablzDragCompletedEventArgs(DragablzItem dragablzItem, DragCompletedEventArgs dragCompletedEventArgs)
 {
     if (dragablzItem == null) throw new ArgumentNullException("dragablzItem");
     if (dragCompletedEventArgs == null) throw new ArgumentNullException("dragCompletedEventArgs");
     
     _dragablzItem = dragablzItem;
     _dragCompletedEventArgs = dragCompletedEventArgs;
 }
開發者ID:CensoredHF,項目名稱:Snappie,代碼行數:8,代碼來源:DragablzDragCompletedEventArgs.cs

示例6: Thumb_DragCompleted

 void Thumb_DragCompleted(object sender, DragCompletedEventArgs e)
 {
     if (device != null && device.IsOpen)
     {
         txbuf[1] = (byte)valueSlider.Value;
         device.Write(txbuf);
     }
 }
開發者ID:a-c-t-i-n-i-u-m,項目名稱:tiny85-hid-pwm,代碼行數:8,代碼來源:MainWindow.xaml.cs

示例7: b_DragCompleted

 private void b_DragCompleted(object sender, DragCompletedEventArgs e)
 {
     double horizontalChange = e.HorizontalChange;
     double actualWidth = horizontalChange / this.rect.ActualWidth;
     this.MouseDownEvent(sender, new MyEVent()
     {
         percentage = horizontalChange
     });
 }
開發者ID:sinkers,項目名稱:silverlightplayer,代碼行數:9,代碼來源:CustumSlider.cs

示例8: OnThumbDragCompleted

 /// <summary>
 /// The on thumb drag completed.
 /// </summary>
 /// <param name="e">
 /// The e.
 /// </param>
 protected override void OnThumbDragCompleted(DragCompletedEventArgs e)
 {
     base.OnThumbDragCompleted(e);
     var editableObject = this.DataContext as IEditableObject;
     if (editableObject != null)
     {
         editableObject.EndEdit();
     }
 }
開發者ID:betology,項目名稱:SambaPOS-3,代碼行數:15,代碼來源:SliderEx.cs

示例9: ThumbOnDragCompleted

 private void ThumbOnDragCompleted(object sender, DragCompletedEventArgs dragCompletedEventArgs)
 {
     LineDraggingEnded(this);
     // code with calculations
     if (EditLineSegment && !IsValidSlope)
     {
         EditLineSegment = false;
         if (SlopeNotValid != null) SlopeNotValid(this);
     }
 }
開發者ID:nearcoding,項目名稱:GAP,代碼行數:10,代碼來源:LineAnnotationExtended.cs

示例10: NowPlayingElapsedSlider_DragCompleted

 private void NowPlayingElapsedSlider_DragCompleted(object sender, DragCompletedEventArgs e)
 {
     try
     {
         playbackController.Seek(Convert.ToInt32(NowPlayingElapsedSlider.Value * 1000));
     }
     catch (Exception ex)
     {
         log.Error("PlaybackView.NowPlayingElapsedSlider_DragCompleted", ex);
     }
 }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:11,代碼來源:PlaybackView.xaml.cs

示例11: RotateThumb_DragCompleted

 void RotateThumb_DragCompleted(object sender, DragCompletedEventArgs e)
 {
     if (this.designerItem != null && this.canvas != null)
     {
         NoteView note = this.designerItem.Tag as NoteView;
         note.DataStatus = DataStatusEnum.Updated;
         note.RotateCenterX = rotateTransform.CenterX;
         note.RotateCenterY = rotateTransform.CenterY;
         note.RotateAngle = rotateTransform.Angle;
     }
 }
開發者ID:handsomestone,項目名稱:ClassRoomManager,代碼行數:11,代碼來源:RotateThumb.cs

示例12: RangeSlider_OnLowerThumbDragCompleted

 private void RangeSlider_OnLowerThumbDragCompleted(object sender, DragCompletedEventArgs e)
 {
     try
     {
         //RangeSlider1.MinRange = RangeSlider1.LowerValue;
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message + exception.StackTrace + exception.TargetSite);
     }
     //TestBlock.Text = "lower thumb drag completed";
 }
開發者ID:jinlook,項目名稱:MahApps.Metro,代碼行數:12,代碼來源:SliderProgressExamples.xaml.cs

示例13: ResizeThumb_DragCompleted

        private void ResizeThumb_DragCompleted(object sender, DragCompletedEventArgs e)
        {
            if (adorner != null)
            {
                AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(this.canvas);
                if (adornerLayer != null)
                {
                    adornerLayer.Remove(this.adorner);
                }

                adorner = null;
            }
        }
開發者ID:benneeh,項目名稱:wScreenshot,代碼行數:13,代碼來源:ResizeThumb.cs

示例14: PositionSlider_DragCompleted

 private void PositionSlider_DragCompleted(object sender, DragCompletedEventArgs e)
 {
     var vm = this.DataContext as PlayControlViewModel;
     if (vm != null)
     {
         BindingExpression be = ((Slider)sender).GetBindingExpression(RangeBase.ValueProperty);
         if (be != null)
         {
             be.UpdateSource();
         }
         if (vm.PlayerEngine.SetCurrentPositionMs.CanExecute(null))
         {
             vm.PlayerEngine.SetCurrentPositionMs.Execute(null);
         }
     }
 }
開發者ID:kaushik1605,項目名稱:sample_DotNet,代碼行數:16,代碼來源:PlayControlView.xaml.cs

示例15: ColumnSplitterChangeCompleted

 /// <summary>
 /// Handles the column splitter change completed event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="dragCompletedEventArgs">The drag completed event args.</param>
 private void ColumnSplitterChangeCompleted(object sender, DragCompletedEventArgs dragCompletedEventArgs)
 {
     var gs = (GridSplitter)sender;
     var tt = gs.ToolTip as ToolTip;
     if (tt != null)
     {
         tt.IsOpen = false;
         gs.ToolTip = null;
     }
 }
開發者ID:punker76,項目名稱:PropertyTools,代碼行數:15,代碼來源:DataGrid.cs


注:本文中的System.Windows.Controls.Primitives.DragCompletedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。