当前位置: 首页>>代码示例>>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;未经允许,请勿转载。