Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. 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
- XmlFormatWriterGenerator.cs
- xdrvalidator.cs
- ConsumerConnectionPointCollection.cs
- WebPartVerbCollection.cs
- ProtectedConfiguration.cs
- TemplateParser.cs
- MetadataResolver.cs
- CreateUserWizard.cs
- EntityWithKeyStrategy.cs
- LoginView.cs
- oledbmetadatacollectionnames.cs
- XPathNodeHelper.cs
- RotationValidation.cs
- Misc.cs
- DrawItemEvent.cs
- GenericsInstances.cs
- ProxyAssemblyNotLoadedException.cs
- DefaultDialogButtons.cs
- Quaternion.cs
- BrowserCapabilitiesFactory.cs
- ByteAnimation.cs
- XmlExceptionHelper.cs
- BlurBitmapEffect.cs
- FilteredDataSetHelper.cs
- mda.cs
- ReadOnlyHierarchicalDataSourceView.cs
- WebReference.cs
- WebPartConnectionsConnectVerb.cs
- XmlDataSourceView.cs
- ListViewEditEventArgs.cs
- ToolboxItemFilterAttribute.cs
- RelationshipEndMember.cs
- RecipientIdentity.cs
- SqlConnectionHelper.cs
- FrameSecurityDescriptor.cs
- DataBindingExpressionBuilder.cs
- Menu.cs
- CqlErrorHelper.cs
- ItemList.cs
- RegexCompilationInfo.cs
- ConfigurationStrings.cs
- AmbiguousMatchException.cs
- propertyentry.cs
- CharEnumerator.cs
- FilterQuery.cs
- Constraint.cs
- PngBitmapEncoder.cs
- NamespaceTable.cs
- FigureParagraph.cs
- MessageQueueInstaller.cs
- HostingEnvironmentSection.cs
- DNS.cs
- DocumentGrid.cs
- ResXResourceWriter.cs
- AppSettingsReader.cs
- LOSFormatter.cs
- PerfService.cs
- RetrieveVirtualItemEventArgs.cs
- HashMembershipCondition.cs
- TargetFrameworkAttribute.cs
- AttachedPropertyInfo.cs
- HttpApplication.cs
- SeverityFilter.cs
- MappingItemCollection.cs
- XmlMtomWriter.cs
- DesignTimeParseData.cs
- DataGridRelationshipRow.cs
- XmlSchemaSimpleContent.cs
- ElementNotAvailableException.cs
- Label.cs
- SystemMulticastIPAddressInformation.cs
- CodePageUtils.cs
- PathFigure.cs
- DesignerSerializerAttribute.cs
- CompModSwitches.cs
- ForeignConstraint.cs
- KnownTypeAttribute.cs
- AsyncResult.cs
- ServiceEndpointAssociationProvider.cs
- ProjectionPathSegment.cs
- XmlArrayAttribute.cs
- Item.cs
- DurableServiceAttribute.cs
- FormViewModeEventArgs.cs
- securitycriticaldataClass.cs
- TypeCodeDomSerializer.cs
- EarlyBoundInfo.cs
- SwitchLevelAttribute.cs
- TextTrailingWordEllipsis.cs
- PathData.cs
- Delegate.cs
- ConfigXmlText.cs
- URLIdentityPermission.cs
- OutputScopeManager.cs
- BulletChrome.cs
- ResourceBinder.cs
- ChildrenQuery.cs
- OdbcConnectionStringbuilder.cs
- XLinq.cs
- PartialCachingAttribute.cs