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
- WebException.cs
- HandleExceptionArgs.cs
- GridPattern.cs
- Journal.cs
- ObjectReaderCompiler.cs
- TransformProviderWrapper.cs
- BinaryEditor.cs
- OrderedDictionaryStateHelper.cs
- SoapElementAttribute.cs
- TargetException.cs
- RegexCaptureCollection.cs
- CTreeGenerator.cs
- PersonalizationAdministration.cs
- LogSwitch.cs
- Rectangle.cs
- ParallelTimeline.cs
- XmlSchemaAttributeGroup.cs
- BaseTemplateParser.cs
- DeviceContexts.cs
- Hashtable.cs
- ProcessModule.cs
- XPathDocument.cs
- ExtensibleClassFactory.cs
- RtfFormatStack.cs
- XmlSerializationGeneratedCode.cs
- EntityDataSourceReferenceGroup.cs
- SimpleLine.cs
- TextEditorCharacters.cs
- XmlArrayAttribute.cs
- SerializationHelper.cs
- TextPattern.cs
- PieceNameHelper.cs
- LowerCaseStringConverter.cs
- XmlnsCache.cs
- RoleService.cs
- GrammarBuilderRuleRef.cs
- EndCreateSecurityTokenRequest.cs
- MsmqHostedTransportConfiguration.cs
- Model3D.cs
- InstalledVoice.cs
- ScriptControl.cs
- DataGridItemCollection.cs
- DictionarySectionHandler.cs
- TextEditorThreadLocalStore.cs
- XmlCodeExporter.cs
- SortedDictionary.cs
- ToolboxItemWrapper.cs
- MaterialCollection.cs
- DataGrid.cs
- SingleAnimationBase.cs
- Stroke.cs
- MdiWindowListItemConverter.cs
- GcSettings.cs
- SchemaEntity.cs
- MimeTextImporter.cs
- ExecutionContext.cs
- BindToObject.cs
- OdbcReferenceCollection.cs
- ModelItemImpl.cs
- WebHttpSecurity.cs
- ConsumerConnectionPointCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ConfigXmlAttribute.cs
- TextViewBase.cs
- SSmlParser.cs
- LocalizableAttribute.cs
- TransformDescriptor.cs
- CodeVariableReferenceExpression.cs
- BaseParaClient.cs
- SslStreamSecurityUpgradeProvider.cs
- TypefaceMap.cs
- Win32Native.cs
- DurableDispatcherAddressingFault.cs
- SchemaNames.cs
- DependencyProperty.cs
- OleDbDataAdapter.cs
- StreamWithDictionary.cs
- wgx_sdk_version.cs
- MappingMetadataHelper.cs
- BitmapMetadata.cs
- NamedPermissionSet.cs
- MemberDomainMap.cs
- ActionFrame.cs
- DbUpdateCommandTree.cs
- DateTimeHelper.cs
- DataGridViewSelectedRowCollection.cs
- StyleTypedPropertyAttribute.cs
- KnownIds.cs
- XmlUrlResolver.cs
- AccessKeyManager.cs
- SchemaComplexType.cs
- RegexCaptureCollection.cs
- CodeSubDirectoriesCollection.cs
- TextEndOfParagraph.cs
- CurrentChangingEventArgs.cs
- GenericTypeParameterConverter.cs
- XPathNavigatorKeyComparer.cs
- CustomTypeDescriptor.cs
- DESCryptoServiceProvider.cs
- DataTableTypeConverter.cs