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
- TextBreakpoint.cs
- MenuBindingsEditorForm.cs
- RouteTable.cs
- MessageQueueTransaction.cs
- SqlDataSourceCommandEventArgs.cs
- WindowsFormsSectionHandler.cs
- ColorAnimationBase.cs
- UInt16Converter.cs
- PassportPrincipal.cs
- PointCollection.cs
- _WebProxyDataBuilder.cs
- TransformPattern.cs
- ManagedFilter.cs
- BulletChrome.cs
- ArrangedElementCollection.cs
- DBConnectionString.cs
- RenameRuleObjectDialog.cs
- ManipulationLogic.cs
- WebConvert.cs
- HttpProtocolReflector.cs
- ListControlDesigner.cs
- CollectionChangedEventManager.cs
- ControlAdapter.cs
- DataGridViewRowHeaderCell.cs
- DragDrop.cs
- LinearQuaternionKeyFrame.cs
- DataGridRelationshipRow.cs
- QilNode.cs
- AsynchronousChannel.cs
- UserPreferenceChangingEventArgs.cs
- AssertSection.cs
- OdbcPermission.cs
- AnimationClockResource.cs
- BrowserTree.cs
- DesignerView.Commands.cs
- HostAdapter.cs
- PrinterSettings.cs
- HtmlElementErrorEventArgs.cs
- AnnotationResourceCollection.cs
- CaseCqlBlock.cs
- EditingScopeUndoUnit.cs
- FormatterServicesNoSerializableCheck.cs
- XmlSerializerOperationFormatter.cs
- DynamicUpdateCommand.cs
- CodeChecksumPragma.cs
- SqlRowUpdatedEvent.cs
- BitmapEffectInput.cs
- BrowserDefinitionCollection.cs
- StretchValidation.cs
- KeyFrames.cs
- OletxTransactionManager.cs
- DigestComparer.cs
- WindowsIPAddress.cs
- CompositeTypefaceMetrics.cs
- ContextBase.cs
- TracingConnection.cs
- BindingsCollection.cs
- PeerNodeAddress.cs
- ModuleElement.cs
- Panel.cs
- XmlSchemaAnnotated.cs
- BindingExpression.cs
- SiteMapNodeItemEventArgs.cs
- FlowDocumentPage.cs
- StrokeIntersection.cs
- ListViewContainer.cs
- SctClaimSerializer.cs
- XmlnsDictionary.cs
- SizeConverter.cs
- DoubleAnimationUsingPath.cs
- CssClassPropertyAttribute.cs
- DPAPIProtectedConfigurationProvider.cs
- WebControlsSection.cs
- ToolStripEditorManager.cs
- SelectQueryOperator.cs
- GridLengthConverter.cs
- View.cs
- RuntimeArgumentHandle.cs
- PrimitiveXmlSerializers.cs
- NetCodeGroup.cs
- WebPartMovingEventArgs.cs
- XmlSchemaInferenceException.cs
- AutoSizeComboBox.cs
- CalendarDay.cs
- SmtpMail.cs
- ImmutableClientRuntime.cs
- BinaryReader.cs
- MemberPath.cs
- CodeTypeDeclaration.cs
- DataContractFormatAttribute.cs
- ResourceSetExpression.cs
- XmlSerializableServices.cs
- WindowsScrollBarBits.cs
- AmbientValueAttribute.cs
- BaseTreeIterator.cs
- _UncName.cs
- Model3D.cs
- PathFigureCollectionValueSerializer.cs
- HttpsHostedTransportConfiguration.cs
- Decimal.cs