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
- RegexWorker.cs
- OleDbConnectionFactory.cs
- TrackingProfileSerializer.cs
- DataRelationCollection.cs
- XPathCompileException.cs
- SemanticBasicElement.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- PreservationFileReader.cs
- SerialReceived.cs
- MimeTypePropertyAttribute.cs
- CorrelationHandle.cs
- AccessorTable.cs
- ControlEvent.cs
- OwnerDrawPropertyBag.cs
- XmlAutoDetectWriter.cs
- Action.cs
- Pen.cs
- Enum.cs
- WorkflowWebService.cs
- TextLineResult.cs
- HierarchicalDataSourceControl.cs
- XmlSerializationReader.cs
- FontWeightConverter.cs
- DesignTimeVisibleAttribute.cs
- SQLDoubleStorage.cs
- Identity.cs
- DataContractSerializerElement.cs
- VectorAnimationBase.cs
- SqlBulkCopy.cs
- DefaultShape.cs
- LocalBuilder.cs
- Hashtable.cs
- Directory.cs
- SocketPermission.cs
- ContainerParaClient.cs
- SqlUserDefinedTypeAttribute.cs
- FloaterParaClient.cs
- PathGeometry.cs
- XmlIlGenerator.cs
- HttpFileCollection.cs
- PbrsForward.cs
- CollectionDataContractAttribute.cs
- CqlErrorHelper.cs
- Vars.cs
- AccessViolationException.cs
- OrderByExpression.cs
- DecoratedNameAttribute.cs
- TeredoHelper.cs
- UnsafeNativeMethods.cs
- DataGridParentRows.cs
- XamlToRtfWriter.cs
- TemplateControlBuildProvider.cs
- HashSetEqualityComparer.cs
- GeneratedView.cs
- nulltextnavigator.cs
- XmlArrayAttribute.cs
- Lease.cs
- XmlAnyElementAttribute.cs
- WebPartConnectionsCancelVerb.cs
- JsonGlobals.cs
- QuaternionKeyFrameCollection.cs
- DataGridViewMethods.cs
- Shared.cs
- RequestCachingSection.cs
- PrintingPermissionAttribute.cs
- Triangle.cs
- SqlMethodTransformer.cs
- BasicKeyConstraint.cs
- AsnEncodedData.cs
- BasicHttpSecurityElement.cs
- ListChangedEventArgs.cs
- GridEntryCollection.cs
- BoundConstants.cs
- ClipboardProcessor.cs
- NativeMethods.cs
- xml.cs
- SafeEventLogWriteHandle.cs
- DataGridColumnHeadersPresenter.cs
- WindowsContainer.cs
- SiteMembershipCondition.cs
- CompilationUtil.cs
- DrawingGroup.cs
- EntityAdapter.cs
- SortKey.cs
- ToolStripCollectionEditor.cs
- SrgsToken.cs
- ToolStripMenuItem.cs
- InputLanguageSource.cs
- RightsManagementEncryptionTransform.cs
- BasicCellRelation.cs
- CurrentChangedEventManager.cs
- SafeViewOfFileHandle.cs
- FirstMatchCodeGroup.cs
- CrossContextChannel.cs
- SessionStateModule.cs
- FileSystemWatcher.cs
- OracleSqlParser.cs
- ToolBarButtonClickEvent.cs
- BufferedGraphicsContext.cs
- UpdateDelegates.Generated.cs