Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityResources.cs
- SecondaryIndexDefinition.cs
- __ComObject.cs
- InfoCardUIAgent.cs
- SoapServerMethod.cs
- WindowsIPAddress.cs
- MediaElement.cs
- milexports.cs
- XmlParser.cs
- CircleHotSpot.cs
- GenericEnumConverter.cs
- Rectangle.cs
- TypeDependencyAttribute.cs
- X509CertificateStore.cs
- ContextProperty.cs
- Command.cs
- EventSinkHelperWriter.cs
- StatusBarItem.cs
- FileDialog_Vista_Interop.cs
- DataGridComponentEditor.cs
- ReferentialConstraint.cs
- XslNumber.cs
- ObjectViewListener.cs
- _UriTypeConverter.cs
- SubMenuStyleCollection.cs
- StrongNameKeyPair.cs
- QueryStringParameter.cs
- SettingsBase.cs
- IisTraceWebEventProvider.cs
- StrokeIntersection.cs
- GeometryHitTestResult.cs
- Input.cs
- EditorZone.cs
- FileCodeGroup.cs
- XmlRawWriter.cs
- GraphicsPathIterator.cs
- MetadataProperty.cs
- DispatchChannelSink.cs
- PerformanceCounterPermissionAttribute.cs
- CacheOutputQuery.cs
- WebException.cs
- ApplicationProxyInternal.cs
- TypefaceCollection.cs
- PolyBezierSegment.cs
- DocumentPaginator.cs
- ObjectTokenCategory.cs
- XPathScanner.cs
- ByteAnimationBase.cs
- HttpApplicationFactory.cs
- HttpProfileBase.cs
- DbConnectionClosed.cs
- TextDpi.cs
- EqualityComparer.cs
- ErrorsHelper.cs
- MenuEventArgs.cs
- ConstraintEnumerator.cs
- XmlCharCheckingReader.cs
- KeysConverter.cs
- UndoManager.cs
- ToolStripTextBox.cs
- SerialReceived.cs
- EntityException.cs
- ListViewUpdateEventArgs.cs
- DataService.cs
- TextCollapsingProperties.cs
- FileInfo.cs
- AlternateViewCollection.cs
- TextBox.cs
- wmiprovider.cs
- AutomationPeer.cs
- LocalBuilder.cs
- SourceChangedEventArgs.cs
- ByteConverter.cs
- ZipIOExtraField.cs
- RelativeSource.cs
- AspNetSynchronizationContext.cs
- ColumnMap.cs
- RadioButton.cs
- ServicesUtilities.cs
- Table.cs
- LinearQuaternionKeyFrame.cs
- XmlSchemaAnnotation.cs
- DeobfuscatingStream.cs
- SimpleBitVector32.cs
- XmlSchemaDatatype.cs
- CollectionBuilder.cs
- TransformerInfo.cs
- GACIdentityPermission.cs
- MappingSource.cs
- RequestCache.cs
- PageBreakRecord.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- CurrencyWrapper.cs
- BidPrivateBase.cs
- LocationChangedEventArgs.cs
- XslUrlEditor.cs
- DetailsViewModeEventArgs.cs
- CodePageEncoding.cs
- Track.cs
- DataObject.cs