Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / DragCompletedEventArgs.cs / 1305600 / DragCompletedEventArgs.cs
using System; using System.Windows.Controls; using System.Windows; namespace System.Windows.Controls.Primitives { ////// This DragCompletedEventArgs class contains additional information about the /// DragCompleted event. /// ////// public class DragCompletedEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the DragCompletedEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public DragCompletedEventArgs(double horizontalChange, double verticalChange, bool canceled) : base() { _horizontalChange = horizontalChange; _verticalChange = verticalChange; _wasCanceled = canceled; RoutedEvent=Thumb.DragCompletedEvent; } ////// Read-only access to the horizontal distance between the point where mouse's left-button /// was pressed and the point where mouse's left-button was released /// public double HorizontalChange { get { return _horizontalChange; } } ////// Read-only access to the vertical distance between the point where mouse's left-button /// was pressed and the point where mouse's left-button was released /// public double VerticalChange { get { return _verticalChange; } } ////// Read-only access to boolean states whether the drag operation was canceled or not. /// ///public bool Canceled { get { return _wasCanceled; } } /// /// This method is used to perform the proper type casting in order to /// call the type-safe DragCompletedEventHandler delegate for the DragCompletedEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { DragCompletedEventHandler handler = (DragCompletedEventHandler)genericHandler; handler(genericTarget, this); } private double _horizontalChange; private double _verticalChange; private bool _wasCanceled; } /// /// This delegate must used by handlers of the DragCompleted event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void DragCompletedEventHandler(object sender, DragCompletedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EastAsianLunisolarCalendar.cs
- StrongTypingException.cs
- WSTrust.cs
- CacheVirtualItemsEvent.cs
- BamlLocalizableResource.cs
- ContextBase.cs
- Int32Animation.cs
- BamlTreeUpdater.cs
- XmlNode.cs
- DataGridViewSortCompareEventArgs.cs
- SqlComparer.cs
- DataControlField.cs
- MissingSatelliteAssemblyException.cs
- WeakReadOnlyCollection.cs
- FileAuthorizationModule.cs
- SqlError.cs
- LongPath.cs
- JulianCalendar.cs
- PathGradientBrush.cs
- TextParentUndoUnit.cs
- KoreanCalendar.cs
- Walker.cs
- EntityTypeEmitter.cs
- RowUpdatingEventArgs.cs
- RegexMatchCollection.cs
- CopyAttributesAction.cs
- InternalCache.cs
- EntityDataSourceStatementEditorForm.cs
- XPathEmptyIterator.cs
- RunWorkerCompletedEventArgs.cs
- HtmlElementErrorEventArgs.cs
- RegionInfo.cs
- ViewStateModeByIdAttribute.cs
- ApplicationContext.cs
- RuleRefElement.cs
- AsymmetricKeyExchangeDeformatter.cs
- PngBitmapEncoder.cs
- Registry.cs
- xmlfixedPageInfo.cs
- VersionedStream.cs
- ExplicitDiscriminatorMap.cs
- RtfToXamlLexer.cs
- ServiceDiscoveryElement.cs
- DataGridPageChangedEventArgs.cs
- WorkflowQueue.cs
- ExtendedProtectionPolicyTypeConverter.cs
- base64Transforms.cs
- PolygonHotSpot.cs
- HMACRIPEMD160.cs
- XmlDataSource.cs
- TransformConverter.cs
- CngAlgorithm.cs
- Cursors.cs
- newinstructionaction.cs
- RelatedView.cs
- HttpDebugHandler.cs
- SortDescription.cs
- StringFormat.cs
- KeyNotFoundException.cs
- WindowsListViewGroup.cs
- TextTreeText.cs
- ExtenderControl.cs
- Crc32Helper.cs
- ClientBuildManagerCallback.cs
- WebResourceAttribute.cs
- StrokeRenderer.cs
- WebPartEditorCancelVerb.cs
- ObjectHelper.cs
- StreamAsIStream.cs
- Configuration.cs
- XmlDocument.cs
- RtfToXamlReader.cs
- XmlDataSourceNodeDescriptor.cs
- SafeReversePInvokeHandle.cs
- NoClickablePointException.cs
- Collection.cs
- ComPlusInstanceContextInitializer.cs
- TreeViewItem.cs
- ListenerSingletonConnectionReader.cs
- FloaterParagraph.cs
- RichTextBoxConstants.cs
- PanelContainerDesigner.cs
- figurelength.cs
- XmlTextEncoder.cs
- FormViewUpdatedEventArgs.cs
- ConnectivityStatus.cs
- DataViewListener.cs
- MetadataUtil.cs
- RegexFCD.cs
- EntityContainerEmitter.cs
- EndpointConfigContainer.cs
- MethodSignatureGenerator.cs
- WebPartMinimizeVerb.cs
- BitmapEffectGroup.cs
- ViewDesigner.cs
- LOSFormatter.cs
- WebSysDescriptionAttribute.cs
- IdentityManager.cs
- OleDbRowUpdatingEvent.cs
- ExeContext.cs