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
- DataObjectCopyingEventArgs.cs
- QuarticEase.cs
- ListViewItemMouseHoverEvent.cs
- MediaContextNotificationWindow.cs
- ZipIOLocalFileHeader.cs
- DPTypeDescriptorContext.cs
- CompiledIdentityConstraint.cs
- BindingList.cs
- ArithmeticException.cs
- SafeBitVector32.cs
- XmlBindingWorker.cs
- COM2ComponentEditor.cs
- CodeChecksumPragma.cs
- BitmapEffectInput.cs
- XmlSchemaObjectTable.cs
- _Connection.cs
- UnauthorizedAccessException.cs
- StructuredType.cs
- HttpListenerResponse.cs
- EventsTab.cs
- RichTextBoxAutomationPeer.cs
- AppliedDeviceFiltersDialog.cs
- BaseComponentEditor.cs
- HtmlInputControl.cs
- OpacityConverter.cs
- EmptyEnumerator.cs
- AuditLogLocation.cs
- StylusPointPropertyInfoDefaults.cs
- TextEditorParagraphs.cs
- IInstanceContextProvider.cs
- Utils.cs
- EmptyControlCollection.cs
- BaseParser.cs
- WebRequestModuleElement.cs
- ToolStripItemTextRenderEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- HealthMonitoringSectionHelper.cs
- DesignerCommandSet.cs
- SimpleTableProvider.cs
- EventPrivateKey.cs
- FileLevelControlBuilderAttribute.cs
- ConfigurationSection.cs
- VersionedStreamOwner.cs
- FixedHyperLink.cs
- UInt16Converter.cs
- InvalidOperationException.cs
- CodeSnippetExpression.cs
- XslException.cs
- JoinTreeSlot.cs
- XmlRootAttribute.cs
- SelectionPatternIdentifiers.cs
- XmlSchemaFacet.cs
- PageOutputColor.cs
- PropertyValueChangedEvent.cs
- XsdDataContractExporter.cs
- Message.cs
- StringUtil.cs
- ToolBarButtonClickEvent.cs
- ActivityMarkupSerializer.cs
- MbpInfo.cs
- DirectionalLight.cs
- ButtonDesigner.cs
- Typeface.cs
- TextEmbeddedObject.cs
- ExpressionList.cs
- JournalEntryStack.cs
- SchemaDeclBase.cs
- MailMessage.cs
- PassportAuthenticationModule.cs
- CopyOnWriteList.cs
- TableRowCollection.cs
- ColorConverter.cs
- FloaterBaseParaClient.cs
- DbParameterCollection.cs
- DataBoundControlAdapter.cs
- WebBrowserNavigatingEventHandler.cs
- EncodingInfo.cs
- BackStopAuthenticationModule.cs
- TypeNameConverter.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- StrokeFIndices.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SymbolType.cs
- RelationshipEndCollection.cs
- FieldTemplateFactory.cs
- SingleStorage.cs
- DelegateBodyWriter.cs
- MetafileHeaderEmf.cs
- DrawingContextWalker.cs
- SecurityContext.cs
- AmbientLight.cs
- EmbeddedMailObject.cs
- TableItemPattern.cs
- RegistryConfigurationProvider.cs
- BigInt.cs
- ItemChangedEventArgs.cs
- IntellisenseTextBox.cs
- ServicesUtilities.cs