本文整理汇总了C#中System.Windows.Controls.Primitives.DragCompletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# DragCompletedEventArgs类的具体用法?C# DragCompletedEventArgs怎么用?C# DragCompletedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DragCompletedEventArgs类属于System.Windows.Controls.Primitives命名空间,在下文中一共展示了DragCompletedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: MetadataItemsControl_DragCompleted
private void MetadataItemsControl_DragCompleted(object sender, DragCompletedEventArgs e)
{
Thumb thumb = e.OriginalSource as Thumb;
if (thumb != null)
{
dragging = false;
GridViewColumnHeader header = thumb.TemplatedParent as GridViewColumnHeader;
if (header != null)
{
double width = header.Column.ActualWidth;
ListView listView = header.GetVisualParent<ListView>();
if (listView != null)
{
GridView gridView = listView.View as GridView;
if (gridView != null)
{
int indexFromEnd = gridView.Columns.Count - gridView.Columns.IndexOf(header.Column) - 1;
if (listView == this.PublicMetadataItemsControl)
{
if (indexFromEnd == 0)
{
this.SetValue(MetadataViewContent.PublicValueWidthProperty, width);
}
else if (indexFromEnd == 1)
{
this.SetValue(MetadataViewContent.PublicKeyWidthProperty, width);
}
}
else if (listView == this.PersonalMetadataItemsControl)
{
if (indexFromEnd == 0)
{
this.SetValue(MetadataViewContent.PersonalValueWidthProperty, width);
}
else if (indexFromEnd == 1)
{
this.SetValue(MetadataViewContent.PersonalKeyWidthProperty, width);
}
}
}
}
}
}
}
开发者ID:UnaNancyOwen,项目名称:Kinect-Studio-Sample,代码行数:46,代码来源:MetadataViewContent.xaml.cs
示例17: thumbDragThumb_DragCompleted
void thumbDragThumb_DragCompleted(object sender, DragCompletedEventArgs e)
{
if (HitConnector != null)
{
if (connection != null)
{
if (connection.Source == fixConnector)
connection.Sink = this.HitConnector;
else
connection.Source = this.HitConnector;
}
}
this.HitDesignerItem = null;
this.HitConnector = null;
this.pathGeometry = null;
this.connection.StrokeDashArray = null;
this.InvalidateVisual();
}
开发者ID:ArtemGrishanov,项目名称:ModelEditor,代码行数:19,代码来源:ConnectionAdorner.cs
示例18: ResizeThumb_OnDragCompleted
/// <summary>
/// Callbcak for thumb control's DragCompleted event.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void ResizeThumb_OnDragCompleted(object sender, DragCompletedEventArgs e)
{
//throw new NotImplementedException();
}
开发者ID:whztt07,项目名称:Dynamo,代码行数:9,代码来源:Watch3DView.xaml.cs
示例19: OnMouseUp
protected override void OnMouseUp(MouseButtonEventArgs e)
{
if (IsDragging)
{
e.MouseDevice.ReleaseCapture();
IsDragging = false;
DragCompletedEventArgs dragCompletedEventArgs = new DragCompletedEventArgs(DragCompletedEvent, this, false);
RaiseEvent(dragCompletedEventArgs);
e.Handled = dragCompletedEventArgs.Handled;
}
}
开发者ID:highzion,项目名称:Granular,代码行数:14,代码来源:Thumb.cs
示例20: SizingThumb_DragCompleted
void SizingThumb_DragCompleted (object sender, DragCompletedEventArgs e)
{
PositioningEntry Entry = (sender as Thumb).Tag as PositioningEntry;
ChangeSize (Entry, e.HorizontalChange, e.VerticalChange);
}
开发者ID:heinzsack,项目名称:DEV,代码行数:5,代码来源:TableProcessing.xaml.cs
注:本文中的System.Windows.Controls.Primitives.DragCompletedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论