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
- WebZone.cs
- PipelineDeploymentState.cs
- UrlPropertyAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ExternalDataExchangeService.cs
- TypeResolver.cs
- ToolStripSplitButton.cs
- AdvancedBindingEditor.cs
- SHA384.cs
- ViewGenerator.cs
- XmlSchemaSimpleContentRestriction.cs
- DateTimeSerializationSection.cs
- ImageSourceConverter.cs
- AxHostDesigner.cs
- HyperLink.cs
- AlignmentYValidation.cs
- InvalidComObjectException.cs
- AdCreatedEventArgs.cs
- XmlPreloadedResolver.cs
- PageThemeCodeDomTreeGenerator.cs
- TemplateKey.cs
- SqlWebEventProvider.cs
- SizeValueSerializer.cs
- EntityCommandExecutionException.cs
- ToolStripItemEventArgs.cs
- DocumentPageTextView.cs
- ToolboxItemFilterAttribute.cs
- OdbcDataAdapter.cs
- LinqDataSourceStatusEventArgs.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ResizeGrip.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- SchemaDeclBase.cs
- TreeNodeSelectionProcessor.cs
- TypeUsage.cs
- TextViewSelectionProcessor.cs
- ProfileServiceManager.cs
- HttpModuleCollection.cs
- TheQuery.cs
- IdentityVerifier.cs
- OutputCacheModule.cs
- Selection.cs
- FindResponse.cs
- FormatConvertedBitmap.cs
- MenuItem.cs
- DefaultTextStoreTextComposition.cs
- AppModelKnownContentFactory.cs
- WebPartConnectionsCancelVerb.cs
- relpropertyhelper.cs
- DateTimeOffsetStorage.cs
- ContextMarshalException.cs
- DynamicRendererThreadManager.cs
- FontUnitConverter.cs
- AddressHeaderCollection.cs
- PropertyDescriptor.cs
- FactoryRecord.cs
- WebControlToolBoxItem.cs
- ControlCachePolicy.cs
- RemoteX509AsymmetricSecurityKey.cs
- Relationship.cs
- TemplateBamlRecordReader.cs
- DataPagerCommandEventArgs.cs
- DependencyProperty.cs
- nulltextnavigator.cs
- VisualProxy.cs
- Errors.cs
- sqlser.cs
- FlowDocumentReaderAutomationPeer.cs
- HistoryEventArgs.cs
- LocationInfo.cs
- SqlDependencyListener.cs
- TextOnlyOutput.cs
- CompositeTypefaceMetrics.cs
- ConfigPathUtility.cs
- ObjectDataSourceEventArgs.cs
- RowsCopiedEventArgs.cs
- ComponentCommands.cs
- Translator.cs
- PinProtectionHelper.cs
- DataBoundControlAdapter.cs
- BinaryFormatter.cs
- SmtpReplyReader.cs
- ApplicationInfo.cs
- ToolStripStatusLabel.cs
- MetadataProperty.cs
- ContextStaticAttribute.cs
- TextEffectCollection.cs
- X509Certificate2Collection.cs
- HierarchicalDataBoundControl.cs
- PanelStyle.cs
- PromptBuilder.cs
- FontStyle.cs
- SoapAttributeAttribute.cs
- Geometry3D.cs
- DrawingGroupDrawingContext.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ITreeGenerator.cs
- TextRunCache.cs
- PolicyStatement.cs
- GenericTextProperties.cs