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
- KeyValueSerializer.cs
- WhiteSpaceTrimStringConverter.cs
- SplitterPanelDesigner.cs
- ObsoleteAttribute.cs
- WindowsPen.cs
- ExpandCollapseIsCheckedConverter.cs
- TypeDelegator.cs
- DBBindings.cs
- ConfigurationException.cs
- EntityDesignerUtils.cs
- TabControl.cs
- LockedActivityGlyph.cs
- ReflectionServiceProvider.cs
- ToolBarOverflowPanel.cs
- PerfCounters.cs
- DbConnectionHelper.cs
- TextEditorParagraphs.cs
- TriggerCollection.cs
- WebPartsSection.cs
- UriScheme.cs
- ISAPIWorkerRequest.cs
- FacetEnabledSchemaElement.cs
- PartialCachingControl.cs
- StringConverter.cs
- InvalidEnumArgumentException.cs
- ProviderCommandInfoUtils.cs
- MouseGestureValueSerializer.cs
- PeerApplicationLaunchInfo.cs
- CollectionExtensions.cs
- FormViewPagerRow.cs
- HttpListenerContext.cs
- PeerEndPoint.cs
- While.cs
- TextMetrics.cs
- DataTemplateSelector.cs
- TemplateControlParser.cs
- UriTemplatePathSegment.cs
- ExpressionBindings.cs
- TreeIterators.cs
- DocumentPageTextView.cs
- SevenBitStream.cs
- ReadWriteSpinLock.cs
- EncoderFallback.cs
- WebPartConnectionsCancelVerb.cs
- _PooledStream.cs
- SecurityDocument.cs
- InlineCollection.cs
- Int64AnimationBase.cs
- ReaderContextStackData.cs
- CAGDesigner.cs
- SoapTypeAttribute.cs
- CalendarDataBindingHandler.cs
- FilterElement.cs
- SrgsSemanticInterpretationTag.cs
- VirtualPath.cs
- RequestCachingSection.cs
- MailSettingsSection.cs
- ScrollItemProviderWrapper.cs
- PropertyEntry.cs
- ISAPIRuntime.cs
- ScalarConstant.cs
- Selection.cs
- UnitySerializationHolder.cs
- DuplicateDetector.cs
- SerialReceived.cs
- CodeIdentifier.cs
- MessageHeaderInfoTraceRecord.cs
- SpeechRecognizer.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SqlDataSourceFilteringEventArgs.cs
- UnsafeNativeMethods.cs
- PrintControllerWithStatusDialog.cs
- cookieexception.cs
- DataGridViewIntLinkedList.cs
- RefExpr.cs
- Int32Rect.cs
- TextElementEnumerator.cs
- HTMLTagNameToTypeMapper.cs
- GeneralTransform3DGroup.cs
- TickBar.cs
- validation.cs
- ImageDrawing.cs
- UniqueIdentifierService.cs
- ByeMessageApril2005.cs
- ScriptControlDescriptor.cs
- EventSetterHandlerConverter.cs
- MailDefinitionBodyFileNameEditor.cs
- TreeNodeStyleCollection.cs
- JoinTreeNode.cs
- PassportAuthenticationModule.cs
- RuntimeHelpers.cs
- ImageField.cs
- TraceSource.cs
- JoinCqlBlock.cs
- RtfControlWordInfo.cs
- ObjectTag.cs
- bindurihelper.cs
- BitmapInitialize.cs
- Barrier.cs
- RootDesignerSerializerAttribute.cs