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
![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
- SmtpFailedRecipientException.cs
- Application.cs
- ArrangedElementCollection.cs
- OracleDateTime.cs
- ToolStripItemCollection.cs
- DrawingBrush.cs
- ConnectorMovedEventArgs.cs
- XmlSchemaChoice.cs
- ResourceReferenceExpressionConverter.cs
- DataGridRowHeader.cs
- ClientConfigurationHost.cs
- SqlCacheDependencyDatabase.cs
- DictionaryBase.cs
- SlotInfo.cs
- DoneReceivingAsyncResult.cs
- RootBrowserWindowAutomationPeer.cs
- ServiceEndpointElementCollection.cs
- CustomLineCap.cs
- OdbcConnectionFactory.cs
- RoleManagerSection.cs
- XmlDataSourceNodeDescriptor.cs
- UnsafeNativeMethods.cs
- SynchronizedInputPattern.cs
- HwndTarget.cs
- DesignSurfaceManager.cs
- XmlParserContext.cs
- DataRow.cs
- OleDbDataReader.cs
- FixedFlowMap.cs
- BindingSourceDesigner.cs
- StringDictionary.cs
- TagNameToTypeMapper.cs
- HttpBrowserCapabilitiesWrapper.cs
- BehaviorDragDropEventArgs.cs
- PseudoWebRequest.cs
- AdobeCFFWrapper.cs
- ComponentChangingEvent.cs
- CodeMethodInvokeExpression.cs
- ControlUtil.cs
- ProviderConnectionPoint.cs
- InputMethod.cs
- ViewStateModeByIdAttribute.cs
- FilteredAttributeCollection.cs
- OleDbMetaDataFactory.cs
- AppDomainUnloadedException.cs
- DoubleLinkList.cs
- X509UI.cs
- AttachedPropertyBrowsableAttribute.cs
- StylusPointCollection.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- NotFiniteNumberException.cs
- XmlSchemaSimpleContentExtension.cs
- FormsAuthenticationConfiguration.cs
- CancellationTokenRegistration.cs
- XmlReflectionImporter.cs
- CriticalFinalizerObject.cs
- TemplateModeChangedEventArgs.cs
- DotExpr.cs
- SpecularMaterial.cs
- DataGridViewCellPaintingEventArgs.cs
- ProviderSettingsCollection.cs
- PropertyInformationCollection.cs
- CancelEventArgs.cs
- SQLInt64Storage.cs
- InstanceData.cs
- HtmlMeta.cs
- HostingPreferredMapPath.cs
- ProviderIncompatibleException.cs
- CachedTypeface.cs
- SelectionChangedEventArgs.cs
- DictionarySurrogate.cs
- Util.cs
- SystemIPv4InterfaceProperties.cs
- CheckBoxDesigner.cs
- BaseResourcesBuildProvider.cs
- TransactedBatchingElement.cs
- SequenceDesigner.cs
- ExtendedProtectionPolicyElement.cs
- DataRowChangeEvent.cs
- EllipseGeometry.cs
- DocComment.cs
- DataGridViewControlCollection.cs
- UserControlAutomationPeer.cs
- RemoteWebConfigurationHostServer.cs
- JoinSymbol.cs
- DisplayInformation.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DynamicFilterExpression.cs
- SchemaDeclBase.cs
- dbdatarecord.cs
- WorkflowDesignerMessageFilter.cs
- XsltQilFactory.cs
- AuthorizationContext.cs
- LayoutEditorPart.cs
- XmlSerializableServices.cs
- QueryCorrelationInitializer.cs
- RadioButton.cs
- AuthorizationRule.cs
- RequiredFieldValidator.cs
- KeyMatchBuilder.cs