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
- Symbol.cs
- DockPanel.cs
- ParameterModifier.cs
- AttachInfo.cs
- AppDomainUnloadedException.cs
- WebServiceErrorEvent.cs
- TabItemWrapperAutomationPeer.cs
- Tile.cs
- _SecureChannel.cs
- PerformanceCounterLib.cs
- ListViewCancelEventArgs.cs
- MediaContext.cs
- XmlUnspecifiedAttribute.cs
- TableLayoutPanelDesigner.cs
- SqlDataSource.cs
- TableLayout.cs
- InstanceNotReadyException.cs
- ScriptingRoleServiceSection.cs
- DocumentPageHost.cs
- MissingManifestResourceException.cs
- SchemaConstraints.cs
- DiscoveryDocumentSearchPattern.cs
- BackStopAuthenticationModule.cs
- CounterSampleCalculator.cs
- MarkupExtensionReturnTypeAttribute.cs
- ProviderConnectionPoint.cs
- HtmlTextArea.cs
- MinMaxParagraphWidth.cs
- HttpAsyncResult.cs
- AnnotationResourceCollection.cs
- FloaterBaseParagraph.cs
- OperationResponse.cs
- InternalConfigConfigurationFactory.cs
- BindingOperations.cs
- SqlServer2KCompatibilityCheck.cs
- AuthenticatingEventArgs.cs
- SyntaxCheck.cs
- JsonEncodingStreamWrapper.cs
- ContentType.cs
- XmlChoiceIdentifierAttribute.cs
- FileDialogPermission.cs
- ResXFileRef.cs
- ItemCollection.cs
- AttachedAnnotation.cs
- WindowsIPAddress.cs
- LeafCellTreeNode.cs
- COSERVERINFO.cs
- DbReferenceCollection.cs
- SiteMapProvider.cs
- StyleSheetRefUrlEditor.cs
- HandleRef.cs
- TextContainerChangeEventArgs.cs
- MessageSmuggler.cs
- CompiledAction.cs
- XamlPoint3DCollectionSerializer.cs
- SerializationInfo.cs
- ExceptionTrace.cs
- VBIdentifierDesigner.xaml.cs
- QueryRewriter.cs
- DateTimeFormat.cs
- ColorBlend.cs
- OrCondition.cs
- ListViewUpdatedEventArgs.cs
- _NestedMultipleAsyncResult.cs
- ManagementDateTime.cs
- cookie.cs
- WindowsListViewGroup.cs
- SHA256Managed.cs
- UpdateTranslator.cs
- FixedPageStructure.cs
- Timer.cs
- InstanceKey.cs
- CookieProtection.cs
- SpellerError.cs
- Rijndael.cs
- Fx.cs
- ErrorHandlingAcceptor.cs
- EmbeddedObject.cs
- ExpandoObject.cs
- PasswordTextContainer.cs
- ChannelManagerBase.cs
- ItemsControl.cs
- ListBox.cs
- CqlGenerator.cs
- SHA1CryptoServiceProvider.cs
- TemplateInstanceAttribute.cs
- GeometryHitTestParameters.cs
- WebPartUserCapability.cs
- FormViewRow.cs
- ButtonRenderer.cs
- PropertyGeneratedEventArgs.cs
- XsdDuration.cs
- ComboBoxRenderer.cs
- ResourcesGenerator.cs
- TraceHandler.cs
- Comparer.cs
- InheritanceAttribute.cs
- XPathArrayIterator.cs
- BoundsDrawingContextWalker.cs
- NativeMethods.cs