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
- LassoSelectionBehavior.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- FileEnumerator.cs
- WebPartVerbCollection.cs
- xdrvalidator.cs
- CollectionsUtil.cs
- FlatButtonAppearance.cs
- DispatchOperationRuntime.cs
- ListControlBoundActionList.cs
- TextSpan.cs
- ReadWriteSpinLock.cs
- ToolStripSplitButton.cs
- ScriptRegistrationManager.cs
- SetStoryboardSpeedRatio.cs
- DropTarget.cs
- CopyEncoder.cs
- ALinqExpressionVisitor.cs
- RoleGroupCollectionEditor.cs
- _RequestCacheProtocol.cs
- InvokeMethodDesigner.xaml.cs
- Attributes.cs
- SystemInformation.cs
- HijriCalendar.cs
- BitmapFrameDecode.cs
- ObjectDisposedException.cs
- HostedHttpTransportManager.cs
- ObjectList.cs
- TextTreeInsertUndoUnit.cs
- CodeTypeOfExpression.cs
- BinaryObjectWriter.cs
- SecurityContext.cs
- QuadraticBezierSegment.cs
- TransactionManagerProxy.cs
- MyContact.cs
- ContentControl.cs
- ExtenderProvidedPropertyAttribute.cs
- UDPClient.cs
- DataSourceHelper.cs
- DataControlExtensions.cs
- TableLayoutRowStyleCollection.cs
- SecurityTokenResolver.cs
- ReadOnlyDataSource.cs
- UIPropertyMetadata.cs
- MimeFormReflector.cs
- ClientSideQueueItem.cs
- SafeLocalMemHandle.cs
- ErrorProvider.cs
- AttachInfo.cs
- XmlDataSourceView.cs
- ParameterReplacerVisitor.cs
- BitmapSourceSafeMILHandle.cs
- DuplexSecurityProtocolFactory.cs
- TraceUtility.cs
- dbenumerator.cs
- DbProviderFactories.cs
- UmAlQuraCalendar.cs
- TemplateParser.cs
- Light.cs
- DataGridViewLinkCell.cs
- DashStyle.cs
- AlternateViewCollection.cs
- StorageTypeMapping.cs
- SystemWebExtensionsSectionGroup.cs
- RegistrySecurity.cs
- PixelFormatConverter.cs
- StatusBarPanel.cs
- SecurityDocument.cs
- SystemColorTracker.cs
- SelectedCellsCollection.cs
- MachineKeySection.cs
- PropertyCollection.cs
- ReaderOutput.cs
- ServiceProviders.cs
- ProgressBar.cs
- PolyBezierSegmentFigureLogic.cs
- EvidenceTypeDescriptor.cs
- RevocationPoint.cs
- shaperfactoryquerycachekey.cs
- X509ChainPolicy.cs
- IODescriptionAttribute.cs
- LicenseException.cs
- Pens.cs
- DataExpression.cs
- ToolstripProfessionalRenderer.cs
- FixedTextView.cs
- InkCollectionBehavior.cs
- TimelineGroup.cs
- SafeLibraryHandle.cs
- SmtpNetworkElement.cs
- autovalidator.cs
- SqlBulkCopy.cs
- TemplateComponentConnector.cs
- Canvas.cs
- TextControlDesigner.cs
- NotifyIcon.cs
- Timeline.cs
- ViewPort3D.cs
- RichTextBox.cs
- InvalidOperationException.cs
- RawStylusActions.cs