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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Drawing.cs
- WorkflowDesigner.cs
- DataObjectAttribute.cs
- WindowsClaimSet.cs
- SmtpTransport.cs
- SupportsPreviewControlAttribute.cs
- ModuleBuilderData.cs
- SHA512Managed.cs
- RotateTransform.cs
- CheckBoxBaseAdapter.cs
- ConstraintEnumerator.cs
- HtmlImageAdapter.cs
- BoolExpression.cs
- WrapperEqualityComparer.cs
- PointLight.cs
- WindowsEditBoxRange.cs
- GridViewColumnHeader.cs
- GridLength.cs
- Util.cs
- EndpointPerformanceCounters.cs
- coordinatorscratchpad.cs
- ValidationError.cs
- BamlRecordHelper.cs
- RtType.cs
- WebBrowserSiteBase.cs
- Literal.cs
- Highlights.cs
- CatalogPart.cs
- SecondaryViewProvider.cs
- ReflectPropertyDescriptor.cs
- InstanceContext.cs
- SelectionProcessor.cs
- SByteStorage.cs
- SendDesigner.xaml.cs
- ServiceSecurityContext.cs
- ZipIOCentralDirectoryBlock.cs
- NumericUpDownAcceleration.cs
- CommentAction.cs
- Clock.cs
- SqlBinder.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- WebPartEventArgs.cs
- XPathNavigatorReader.cs
- TextTreeTextElementNode.cs
- MouseButtonEventArgs.cs
- CustomWebEventKey.cs
- Rijndael.cs
- BuildProviderInstallComponent.cs
- InProcStateClientManager.cs
- FormViewUpdateEventArgs.cs
- LoginUtil.cs
- HandlerFactoryCache.cs
- XmlSerializerOperationFormatter.cs
- ExpandCollapseProviderWrapper.cs
- TypeLoadException.cs
- MetabaseServerConfig.cs
- TextSelectionProcessor.cs
- GroupDescription.cs
- WinFormsUtils.cs
- Stopwatch.cs
- SslStream.cs
- DataControlFieldTypeEditor.cs
- ScriptModule.cs
- FixedSOMTableCell.cs
- UInt16Converter.cs
- PropertiesTab.cs
- GPStream.cs
- ResourceReader.cs
- TimerEventSubscription.cs
- HttpsTransportElement.cs
- sqlpipe.cs
- Pen.cs
- HandledMouseEvent.cs
- TextTreeUndoUnit.cs
- InputManager.cs
- IndependentAnimationStorage.cs
- UserUseLicenseDictionaryLoader.cs
- ArrangedElement.cs
- ReflectEventDescriptor.cs
- StateBag.cs
- CodeSubDirectoriesCollection.cs
- mansign.cs
- XmlDataSourceNodeDescriptor.cs
- RuleValidation.cs
- QueryComponents.cs
- Matrix.cs
- SqlRetyper.cs
- RayMeshGeometry3DHitTestResult.cs
- EntityConnectionStringBuilder.cs
- StorageModelBuildProvider.cs
- RelatedImageListAttribute.cs
- InvokeHandlers.cs
- SqlDependencyUtils.cs
- TimeIntervalCollection.cs
- InstanceDataCollectionCollection.cs
- OleDbConnectionInternal.cs
- StackBuilderSink.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HScrollProperties.cs
- ItemMap.cs