本文整理汇总了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);
}
}
示例2: OnThumbDragCompleted
protected override void OnThumbDragCompleted(DragCompletedEventArgs e)
{
if (ThumbDragCompleted != null)
ThumbDragCompleted(this, e);
base.OnThumbDragCompleted(e);
}
示例3: CompleteNodeMove
private void CompleteNodeMove(Thumb thumb, DragCompletedEventArgs e)
{
var node = thumb.DataContext as NodeElementViewModel;
if (node == null)
return;
node.UpdateNodePosition();
}
示例4: CompleteSinkMove
private void CompleteSinkMove(Thumb thumb, DragCompletedEventArgs e)
{
var sink = thumb.DataContext as SinkViewModel;
if (sink == null)
return;
sink.UpdateSinkPosition();
}
示例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;
}
示例6: Thumb_DragCompleted
void Thumb_DragCompleted(object sender, DragCompletedEventArgs e)
{
if (device != null && device.IsOpen)
{
txbuf[1] = (byte)valueSlider.Value;
device.Write(txbuf);
}
}
示例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
});
}
示例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();
}
}
示例9: ThumbOnDragCompleted
private void ThumbOnDragCompleted(object sender, DragCompletedEventArgs dragCompletedEventArgs)
{
LineDraggingEnded(this);
// code with calculations
if (EditLineSegment && !IsValidSlope)
{
EditLineSegment = false;
if (SlopeNotValid != null) SlopeNotValid(this);
}
}
示例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);
}
}
示例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;
}
}
示例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";
}
示例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;
}
}
示例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);
}
}
}
示例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;
}
}