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
- EventSetter.cs
- RegexCapture.cs
- BaseAsyncResult.cs
- altserialization.cs
- CodePrimitiveExpression.cs
- CultureMapper.cs
- CustomAttribute.cs
- DatePickerAutomationPeer.cs
- SafeRegistryKey.cs
- DBCommandBuilder.cs
- Utils.cs
- TypeLibConverter.cs
- Binding.cs
- AssociationSet.cs
- MobileControl.cs
- DoubleKeyFrameCollection.cs
- UnionCqlBlock.cs
- ModelItemImpl.cs
- XamlPoint3DCollectionSerializer.cs
- ReferencedType.cs
- NumberFunctions.cs
- NoClickablePointException.cs
- CallbackException.cs
- XPathExpr.cs
- TableFieldsEditor.cs
- ListParagraph.cs
- RealProxy.cs
- Assert.cs
- ModelPerspective.cs
- GACIdentityPermission.cs
- SiteMapNode.cs
- DelimitedListTraceListener.cs
- Semaphore.cs
- ValidationErrorInfo.cs
- CounterSetInstanceCounterDataSet.cs
- WmfPlaceableFileHeader.cs
- IPEndPointCollection.cs
- SkewTransform.cs
- HttpException.cs
- HwndAppCommandInputProvider.cs
- DynamicPropertyReader.cs
- UnionCodeGroup.cs
- FastPropertyAccessor.cs
- ImageBrush.cs
- ResourceDictionary.cs
- Config.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RecognitionEventArgs.cs
- XhtmlBasicListAdapter.cs
- SystemResourceHost.cs
- ManifestResourceInfo.cs
- OdbcParameterCollection.cs
- BCLDebug.cs
- ObjectQuery.cs
- Thickness.cs
- CanonicalFontFamilyReference.cs
- ResourceIDHelper.cs
- XmlKeywords.cs
- ColorConvertedBitmap.cs
- RefreshEventArgs.cs
- UInt32Converter.cs
- CaseStatement.cs
- Helpers.cs
- RenderDataDrawingContext.cs
- WorkflowControlEndpoint.cs
- Rect3DConverter.cs
- MetadataPropertyvalue.cs
- _Semaphore.cs
- SettingsPropertyValueCollection.cs
- SamlAdvice.cs
- SQLInt64Storage.cs
- ValuePatternIdentifiers.cs
- WorkflowServiceAttributes.cs
- DbExpressionRules.cs
- BindingsSection.cs
- HttpWebRequest.cs
- SqlDelegatedTransaction.cs
- Accessible.cs
- MaterialGroup.cs
- Application.cs
- listviewsubitemcollectioneditor.cs
- LinqDataSourceContextEventArgs.cs
- TextEvent.cs
- XappLauncher.cs
- HashCryptoHandle.cs
- WebPartEditorOkVerb.cs
- ByteConverter.cs
- CustomAttributeFormatException.cs
- StreamAsIStream.cs
- ProcessProtocolHandler.cs
- WebPartVerbsEventArgs.cs
- NonBatchDirectoryCompiler.cs
- WebPartVerb.cs
- AlphabeticalEnumConverter.cs
- DataRecordInternal.cs
- RelationshipConstraintValidator.cs
- TextParagraph.cs
- SecurityRuntime.cs
- ScriptReferenceEventArgs.cs
- Section.cs