Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / DragStartedEventArgs.cs / 1305600 / 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
- XmlSchemaComplexContentExtension.cs
- BasicHttpMessageCredentialType.cs
- TextDecorations.cs
- X509SecurityTokenAuthenticator.cs
- TextServicesDisplayAttributePropertyRanges.cs
- RegularExpressionValidator.cs
- ResourcesGenerator.cs
- Help.cs
- SelectionWordBreaker.cs
- ISessionStateStore.cs
- ManagedIStream.cs
- BitmapEffectGroup.cs
- Int64Converter.cs
- RequiredAttributeAttribute.cs
- HttpCachePolicy.cs
- SystemNetworkInterface.cs
- DropDownButton.cs
- SqlTransaction.cs
- QualifiedCellIdBoolean.cs
- BaseTemplateParser.cs
- TransformValueSerializer.cs
- MobileControl.cs
- ListControlConvertEventArgs.cs
- SafeHandle.cs
- FileDialogPermission.cs
- EntityDataSourceMemberPath.cs
- NativeObjectSecurity.cs
- AsyncSerializedWorker.cs
- JoinElimination.cs
- FixedPage.cs
- MatrixCamera.cs
- XmlSortKeyAccumulator.cs
- ToolboxItemAttribute.cs
- SoapExtension.cs
- XmlSchemaGroup.cs
- ListViewItem.cs
- _LocalDataStoreMgr.cs
- TextEndOfParagraph.cs
- AccessViolationException.cs
- SystemUnicastIPAddressInformation.cs
- ByeMessage11.cs
- LinkButton.cs
- StrongNamePublicKeyBlob.cs
- ChainOfResponsibility.cs
- CrossSiteScriptingValidation.cs
- XsltConvert.cs
- BaseAppDomainProtocolHandler.cs
- DefaultHttpHandler.cs
- Renderer.cs
- Int32CollectionValueSerializer.cs
- EmulateRecognizeCompletedEventArgs.cs
- ResourceDescriptionAttribute.cs
- RangeValidator.cs
- PropertyGeneratedEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- SEHException.cs
- TraceSource.cs
- SchemaReference.cs
- RelationshipDetailsRow.cs
- tooltip.cs
- SingleResultAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- CompareValidator.cs
- HttpUnhandledOperationInvoker.cs
- ApplicationServiceManager.cs
- BooleanFacetDescriptionElement.cs
- XDRSchema.cs
- EventHandlerList.cs
- OleDbReferenceCollection.cs
- TextSelectionProcessor.cs
- StateDesignerConnector.cs
- ValueSerializerAttribute.cs
- ColumnBinding.cs
- StrokeCollectionDefaultValueFactory.cs
- AppDomainAttributes.cs
- WizardSideBarListControlItem.cs
- DataGridViewCell.cs
- Main.cs
- Tile.cs
- TableRow.cs
- EUCJPEncoding.cs
- DataBindingExpressionBuilder.cs
- WFItemsToSpacerVisibility.cs
- XmlSchemaAnnotated.cs
- Process.cs
- WebPartConnectionsConfigureVerb.cs
- DataIdProcessor.cs
- _SslState.cs
- LabelAutomationPeer.cs
- ClaimSet.cs
- ChameleonKey.cs
- PathGradientBrush.cs
- TargetException.cs
- ThicknessAnimationBase.cs
- FileDataSourceCache.cs
- FontNamesConverter.cs
- DataSourceCollectionBase.cs
- HMACSHA512.cs
- MimeFormImporter.cs
- ScriptingSectionGroup.cs