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
- PcmConverter.cs
- DiagnosticSection.cs
- NullableLongAverageAggregationOperator.cs
- NumericUpDownAccelerationCollection.cs
- HwndSubclass.cs
- HttpValueCollection.cs
- SqlSelectStatement.cs
- PasswordRecovery.cs
- MethodCallExpression.cs
- TdsParserHelperClasses.cs
- DatatypeImplementation.cs
- SerialErrors.cs
- RectangleF.cs
- SqlMethodTransformer.cs
- XmlSchemaImport.cs
- XmlNotation.cs
- Conditional.cs
- PropertyInformationCollection.cs
- DurationConverter.cs
- SessionStateUtil.cs
- CompositeCollection.cs
- DataFormats.cs
- HttpTransportBindingElement.cs
- DesignerActionList.cs
- SecuritySessionSecurityTokenProvider.cs
- FormatPage.cs
- DragDropHelper.cs
- PointConverter.cs
- DynamicDocumentPaginator.cs
- CodeExporter.cs
- PriorityBindingExpression.cs
- DataColumnPropertyDescriptor.cs
- XmlSchemaImporter.cs
- ExceptionUtil.cs
- TextChange.cs
- PaperSize.cs
- FactoryGenerator.cs
- RegexReplacement.cs
- RtfToXamlReader.cs
- PersistenceException.cs
- BeginEvent.cs
- DelegateBodyWriter.cs
- ReferentialConstraint.cs
- TagElement.cs
- SafeSecurityHelper.cs
- DbReferenceCollection.cs
- OdbcFactory.cs
- HttpHandlersSection.cs
- ConfigurationSchemaErrors.cs
- DataRelationCollection.cs
- WebConfigurationManager.cs
- DataViewSettingCollection.cs
- infer.cs
- GridPatternIdentifiers.cs
- GlyphCache.cs
- BitmapEffectDrawing.cs
- ErrorWebPart.cs
- SystemNetHelpers.cs
- DBSchemaTable.cs
- IgnoreFileBuildProvider.cs
- CodeDomLoader.cs
- ConfigXmlComment.cs
- BinaryObjectReader.cs
- X509SubjectKeyIdentifierClause.cs
- XamlTypeWithExplicitNamespace.cs
- SqlParameter.cs
- DefaultBinder.cs
- FileVersionInfo.cs
- ImmutableAssemblyCacheEntry.cs
- AutoSizeToolBoxItem.cs
- Tracer.cs
- WindowsGrip.cs
- SpnEndpointIdentity.cs
- SimpleHandlerBuildProvider.cs
- RpcCryptoRequest.cs
- XmlSchemaAll.cs
- DiscoveryService.cs
- FixUpCollection.cs
- TypeReference.cs
- HostProtectionException.cs
- Compiler.cs
- ReflectTypeDescriptionProvider.cs
- GeneralTransform.cs
- ListCollectionView.cs
- TargetFrameworkAttribute.cs
- OleDbDataAdapter.cs
- SqlRemoveConstantOrderBy.cs
- ActivityExecutionContext.cs
- NamedPipeHostedTransportConfiguration.cs
- WizardPanel.cs
- BitVector32.cs
- UpdatePanelTrigger.cs
- StorageInfo.cs
- StringAnimationUsingKeyFrames.cs
- StatusBarDrawItemEvent.cs
- WsrmFault.cs
- VariableDesigner.xaml.cs
- SqlBuilder.cs
- ReadOnlyObservableCollection.cs
- ActivityExecutionContextCollection.cs