Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / Controls / Primitives / DragStartedEventArgs.cs / 1 / DragStartedEventArgs.cs
using System; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows; namespace System.Windows.Controls.Primitives { ////// This DragStartedEventArgs class contains additional information about the /// DragStarted event. /// ////// public class DragStartedEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the DragStartedEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public DragStartedEventArgs(double horizontalOffset, double verticalOffset) : base() { _horizontalOffset = horizontalOffset; _verticalOffset = verticalOffset; RoutedEvent=Thumb.DragStartedEvent; } ////// Read-only access to the horizontal offset (relative to Thumb's co-ordinate). /// public double HorizontalOffset { get { return _horizontalOffset; } } ////// Read-only access to the vertical offset (relative to Thumb's co-ordinate). /// public double VerticalOffset { get { return _verticalOffset; } } ////// This method is used to perform the proper type casting in order to /// call the type-safe DragStartedEventHandler delegate for the DragStartedEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { DragStartedEventHandler handler = (DragStartedEventHandler)genericHandler; handler(genericTarget, this); } private double _horizontalOffset; private double _verticalOffset; } /// /// This delegate must used by handlers of the DragStarted event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void DragStartedEventHandler(object sender, DragStartedEventArgs e); } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows; namespace System.Windows.Controls.Primitives { ////// This DragStartedEventArgs class contains additional information about the /// DragStarted event. /// ////// public class DragStartedEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the DragStartedEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public DragStartedEventArgs(double horizontalOffset, double verticalOffset) : base() { _horizontalOffset = horizontalOffset; _verticalOffset = verticalOffset; RoutedEvent=Thumb.DragStartedEvent; } ////// Read-only access to the horizontal offset (relative to Thumb's co-ordinate). /// public double HorizontalOffset { get { return _horizontalOffset; } } ////// Read-only access to the vertical offset (relative to Thumb's co-ordinate). /// public double VerticalOffset { get { return _verticalOffset; } } ////// This method is used to perform the proper type casting in order to /// call the type-safe DragStartedEventHandler delegate for the DragStartedEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { DragStartedEventHandler handler = (DragStartedEventHandler)genericHandler; handler(genericTarget, this); } private double _horizontalOffset; private double _verticalOffset; } /// /// This delegate must used by handlers of the DragStarted event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void DragStartedEventHandler(object sender, DragStartedEventArgs 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
- _ListenerRequestStream.cs
- FormsAuthenticationUserCollection.cs
- ExtensionSurface.cs
- XmlNamespaceMappingCollection.cs
- ParseElement.cs
- SoapExtensionImporter.cs
- ClientBuildManager.cs
- TargetControlTypeAttribute.cs
- DocumentGridPage.cs
- login.cs
- DataColumnCollection.cs
- _NegoState.cs
- Stylus.cs
- ColorConvertedBitmap.cs
- EncryptRequest.cs
- VersionUtil.cs
- WebPartZone.cs
- HttpWebResponse.cs
- TaskScheduler.cs
- XamlDesignerSerializationManager.cs
- Task.cs
- BamlResourceDeserializer.cs
- ResourceCategoryAttribute.cs
- StandardOleMarshalObject.cs
- SingleStorage.cs
- WindowsGraphics.cs
- Ref.cs
- mediaeventshelper.cs
- PtsHelper.cs
- FillRuleValidation.cs
- ThrowHelper.cs
- SmiRequestExecutor.cs
- AttachmentCollection.cs
- SqlConnectionHelper.cs
- TextServicesCompartmentEventSink.cs
- MetadataArtifactLoaderComposite.cs
- ToolBar.cs
- DateTimeFormat.cs
- EllipseGeometry.cs
- Update.cs
- ValueType.cs
- UnsafeNativeMethodsPenimc.cs
- SetterBase.cs
- ExceptQueryOperator.cs
- DecimalStorage.cs
- DurableTimerExtension.cs
- EnumDataContract.cs
- ScaleTransform.cs
- TextBoxDesigner.cs
- ArgumentNullException.cs
- ConstraintEnumerator.cs
- DBConcurrencyException.cs
- DesignerSerializationVisibilityAttribute.cs
- StyleConverter.cs
- TemplateBindingExtension.cs
- SAPICategories.cs
- DebuggerService.cs
- CqlGenerator.cs
- DesignerLinkAdapter.cs
- WebPartConnectionsConfigureVerb.cs
- ResponseBodyWriter.cs
- FSWPathEditor.cs
- IPCCacheManager.cs
- TreeView.cs
- ObjectQuery_EntitySqlExtensions.cs
- BookmarkEventArgs.cs
- SrgsElement.cs
- EventListenerClientSide.cs
- WebPartVerb.cs
- QueryOutputWriter.cs
- HttpDebugHandler.cs
- SBCSCodePageEncoding.cs
- GACIdentityPermission.cs
- MediaPlayerState.cs
- XmlNavigatorStack.cs
- CommonObjectSecurity.cs
- ModifierKeysValueSerializer.cs
- VirtualizedItemPattern.cs
- TreeView.cs
- shaper.cs
- ELinqQueryState.cs
- ConfigXmlCDataSection.cs
- WebPartConnectVerb.cs
- XmlEntityReference.cs
- EventArgs.cs
- TextSelection.cs
- TextElementEditingBehaviorAttribute.cs
- XmlUnspecifiedAttribute.cs
- ClientSettingsStore.cs
- PictureBox.cs
- RealProxy.cs
- OleStrCAMarshaler.cs
- WebReferencesBuildProvider.cs
- ProcessingInstructionAction.cs
- glyphs.cs
- GenericUriParser.cs
- EUCJPEncoding.cs
- StubHelpers.cs
- SecUtil.cs
- WsdlBuildProvider.cs