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
- MgmtConfigurationRecord.cs
- WebConfigurationManager.cs
- InternalDispatchObject.cs
- TopClause.cs
- DependencyObjectType.cs
- SqlFunctionAttribute.cs
- ContractSearchPattern.cs
- ManagedWndProcTracker.cs
- ClientTargetCollection.cs
- ExceptionUtility.cs
- QueryContext.cs
- HttpAsyncResult.cs
- FontCacheUtil.cs
- ConversionContext.cs
- SoapSchemaImporter.cs
- DocumentOrderComparer.cs
- WsdlBuildProvider.cs
- DataGridViewCellStyle.cs
- AssociationEndMember.cs
- ListViewCommandEventArgs.cs
- updatecommandorderer.cs
- WebServiceData.cs
- UdpChannelFactory.cs
- ListViewDeleteEventArgs.cs
- XPathAncestorIterator.cs
- EmptyElement.cs
- ToolStripRenderer.cs
- BaseUriHelper.cs
- CodeEntryPointMethod.cs
- DrawListViewSubItemEventArgs.cs
- CodePageUtils.cs
- securitycriticaldataformultiplegetandset.cs
- Walker.cs
- ProgressBar.cs
- StylusSystemGestureEventArgs.cs
- VectorCollectionValueSerializer.cs
- InheritedPropertyChangedEventArgs.cs
- RegexGroupCollection.cs
- SectionInput.cs
- GenericTransactionFlowAttribute.cs
- DateTimeFormatInfo.cs
- x509utils.cs
- StringValidator.cs
- ResourceDictionary.cs
- FlowDocumentReader.cs
- StrongNameUtility.cs
- RecognizedWordUnit.cs
- ProcessModuleCollection.cs
- BuildProvider.cs
- HtmlSelect.cs
- DefaultPropertyAttribute.cs
- Pen.cs
- SmiConnection.cs
- XmlSchemaComplexContentRestriction.cs
- SQLMoneyStorage.cs
- DefaultSection.cs
- IsolatedStorageFile.cs
- ServerValidateEventArgs.cs
- WpfPayload.cs
- NamespaceEmitter.cs
- GridToolTip.cs
- ChannelManagerService.cs
- DataGridViewHitTestInfo.cs
- FontFamilyConverter.cs
- UnsafeNativeMethods.cs
- RSACryptoServiceProvider.cs
- ToolStripSplitStackLayout.cs
- MasterPage.cs
- GridItemProviderWrapper.cs
- CodeCastExpression.cs
- SamlAssertion.cs
- TextDecorationCollection.cs
- QuaternionAnimation.cs
- NativeObjectSecurity.cs
- SqlFunctionAttribute.cs
- CommandPlan.cs
- CleanUpVirtualizedItemEventArgs.cs
- _NegotiateClient.cs
- IndicShape.cs
- FeatureSupport.cs
- SafeNativeMethods.cs
- Material.cs
- SafeUserTokenHandle.cs
- CssClassPropertyAttribute.cs
- FocusTracker.cs
- DataServiceKeyAttribute.cs
- ComponentEditorPage.cs
- SystemPens.cs
- List.cs
- ViewValidator.cs
- DataGridViewSelectedRowCollection.cs
- AmbiguousMatchException.cs
- FaultDesigner.cs
- EditingCommands.cs
- DesignerSerializationManager.cs
- XmlChildNodes.cs
- ControlPropertyNameConverter.cs
- HtmlElement.cs
- PriorityBinding.cs
- RadioButtonList.cs