Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / DragDeltaEventArgs.cs / 1305600 / DragDeltaEventArgs.cs
using System; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows; namespace System.Windows.Controls.Primitives { ////// This DragDeltaEventArgs class contains additional information about the /// DragDeltaEvent event. /// ////// public class DragDeltaEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the DragDeltaEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public DragDeltaEventArgs(double horizontalChange, double verticalChange) : base() { _horizontalChange = horizontalChange; _verticalChange = verticalChange; RoutedEvent=Thumb.DragDeltaEvent; } ////// Read-only access to the horizontal change. /// public double HorizontalChange { get { return _horizontalChange; } } ////// Read-only access to the vertical change. /// public double VerticalChange { get { return _verticalChange; } } ////// This method is used to perform the proper type casting in order to /// call the type-safe DragDeltaEventHandler delegate for the DragDeltaEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { DragDeltaEventHandler handler = (DragDeltaEventHandler)genericHandler; handler(genericTarget, this); } private double _horizontalChange; private double _verticalChange; } /// /// This delegate must used by handlers of the DragDeltaEvent event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void DragDeltaEventHandler(object sender, DragDeltaEventArgs 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
- Rules.cs
- FacetEnabledSchemaElement.cs
- HTMLTextWriter.cs
- WaitHandleCannotBeOpenedException.cs
- PointAnimation.cs
- ContractMethodParameterInfo.cs
- XmlReflectionImporter.cs
- MappingModelBuildProvider.cs
- DesignerActionPropertyItem.cs
- ParseHttpDate.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DescendantQuery.cs
- List.cs
- BooleanExpr.cs
- HtmlEmptyTagControlBuilder.cs
- RequestDescription.cs
- InvokeSchedule.cs
- DataListItemEventArgs.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlTextEncoder.cs
- ShaderEffect.cs
- Vertex.cs
- PictureBox.cs
- EntityCommand.cs
- EntityCommandDefinition.cs
- BindingValueChangedEventArgs.cs
- AuthenticationService.cs
- DefaultPerformanceCounters.cs
- FilterInvalidBodyAccessException.cs
- CompiledQueryCacheEntry.cs
- IOException.cs
- Single.cs
- NotImplementedException.cs
- ResourceExpressionEditorSheet.cs
- PartialTrustHelpers.cs
- WasHostedComPlusFactory.cs
- FactoryMaker.cs
- PersonalizableAttribute.cs
- IdentifierElement.cs
- AsymmetricAlgorithm.cs
- TextContainerChangeEventArgs.cs
- Axis.cs
- RandomNumberGenerator.cs
- UTF7Encoding.cs
- WindowAutomationPeer.cs
- RenderCapability.cs
- ApplicationServiceHelper.cs
- MetricEntry.cs
- TraceSection.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SqlTransaction.cs
- HuffCodec.cs
- SiteMapNodeItem.cs
- Parser.cs
- ColumnWidthChangingEvent.cs
- input.cs
- _PooledStream.cs
- PackagePart.cs
- GroupBoxRenderer.cs
- ReflectionTypeLoadException.cs
- ChildTable.cs
- NoResizeHandleGlyph.cs
- StatusBar.cs
- PolyLineSegmentFigureLogic.cs
- CmsUtils.cs
- UniqueIdentifierService.cs
- InternalPermissions.cs
- SqlClientMetaDataCollectionNames.cs
- FirstMatchCodeGroup.cs
- Roles.cs
- DetailsViewRowCollection.cs
- UnsafeNativeMethods.cs
- ChangePassword.cs
- CLRBindingWorker.cs
- RenderData.cs
- Rectangle.cs
- BuildProvider.cs
- MeshGeometry3D.cs
- HttpBrowserCapabilitiesWrapper.cs
- StoreAnnotationsMap.cs
- NativeCompoundFileAPIs.cs
- ClassData.cs
- DbInsertCommandTree.cs
- MarginsConverter.cs
- StorageEntitySetMapping.cs
- SpellerStatusTable.cs
- CodeArgumentReferenceExpression.cs
- StyleCollection.cs
- ContextMenuService.cs
- InkCanvasInnerCanvas.cs
- PreviousTrackingServiceAttribute.cs
- Page.cs
- ClusterUtils.cs
- InternalSafeNativeMethods.cs
- PeerApplicationLaunchInfo.cs
- DataKey.cs
- InvalidContentTypeException.cs
- EmbeddedMailObjectsCollection.cs
- PenContexts.cs
- ConstraintStruct.cs