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
- CompModSwitches.cs
- CustomGrammar.cs
- DataMember.cs
- Thumb.cs
- DLinqAssociationProvider.cs
- IPEndPointCollection.cs
- ToolBarTray.cs
- DesignerFrame.cs
- PauseStoryboard.cs
- RectAnimation.cs
- GenericWebPart.cs
- ErrorEventArgs.cs
- ClientCultureInfo.cs
- InvalidOperationException.cs
- ScriptModule.cs
- XmlDataSource.cs
- Matrix.cs
- DetailsViewUpdatedEventArgs.cs
- MustUnderstandBehavior.cs
- SiteMapHierarchicalDataSourceView.cs
- PathStreamGeometryContext.cs
- NativeMethodsCLR.cs
- ConnectionPointCookie.cs
- XmlWrappingReader.cs
- WeakReadOnlyCollection.cs
- BitmapEffectInputConnector.cs
- OleDbPermission.cs
- AssemblyInfo.cs
- DataSvcMapFileSerializer.cs
- DrawingContext.cs
- XmlToDatasetMap.cs
- ResourcesChangeInfo.cs
- ContentElement.cs
- ConsumerConnectionPointCollection.cs
- TempFiles.cs
- ScrollViewer.cs
- SqlRewriteScalarSubqueries.cs
- MergeLocalizationDirectives.cs
- GradientStopCollection.cs
- StackOverflowException.cs
- DetailsViewUpdateEventArgs.cs
- HelpExampleGenerator.cs
- ReflectionTypeLoadException.cs
- DesignerSerializationVisibilityAttribute.cs
- SQLGuidStorage.cs
- DefaultPropertiesToSend.cs
- PolicyImporterElement.cs
- SqlUtil.cs
- LiteralControl.cs
- HttpPostServerProtocol.cs
- VectorAnimationBase.cs
- TypeSystem.cs
- ImageIndexConverter.cs
- UIElement3D.cs
- AssemblyCache.cs
- XmlNodeChangedEventArgs.cs
- PropertyInfoSet.cs
- TypeLibConverter.cs
- RemoveFromCollection.cs
- LinearGradientBrush.cs
- RootProfilePropertySettingsCollection.cs
- ConfigurationSection.cs
- TabletDevice.cs
- DateRangeEvent.cs
- MetadataItem.cs
- FilteredXmlReader.cs
- AutomationPeer.cs
- PersistenceTypeAttribute.cs
- TabControlAutomationPeer.cs
- ReflectTypeDescriptionProvider.cs
- RTTrackingProfile.cs
- TableLayoutStyleCollection.cs
- PageContent.cs
- OleDbWrapper.cs
- ScriptingJsonSerializationSection.cs
- LeafCellTreeNode.cs
- AxHost.cs
- HandlerBase.cs
- TemplateContent.cs
- HtmlControl.cs
- SegmentInfo.cs
- HtmlInputCheckBox.cs
- StrokeCollection2.cs
- PaperSource.cs
- PolicyManager.cs
- StylusCollection.cs
- ButtonBase.cs
- ProtocolsSection.cs
- ContentPresenter.cs
- InkCanvasSelection.cs
- WizardPanelChangingEventArgs.cs
- CaseInsensitiveComparer.cs
- XmlSerializerFactory.cs
- SharedPersonalizationStateInfo.cs
- ListViewUpdatedEventArgs.cs
- MessageQueueException.cs
- SettingsPropertyCollection.cs
- ValidationService.cs
- XmlSchemaSimpleTypeUnion.cs
- PeerCollaborationPermission.cs