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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Error.cs
- InputBinder.cs
- FixUpCollection.cs
- HandleExceptionArgs.cs
- SystemIPv4InterfaceProperties.cs
- NativeMethods.cs
- PkcsMisc.cs
- FormsAuthenticationCredentials.cs
- WindowsScrollBar.cs
- SpeakProgressEventArgs.cs
- DataObjectFieldAttribute.cs
- CurrentChangingEventArgs.cs
- DataTableMapping.cs
- ModelTreeEnumerator.cs
- XmlSchemaDatatype.cs
- EntitySqlQueryBuilder.cs
- StrokeIntersection.cs
- ProcessModuleCollection.cs
- HandlerMappingMemo.cs
- ResolveNameEventArgs.cs
- LookupNode.cs
- FastEncoderWindow.cs
- DataGridViewSortCompareEventArgs.cs
- HwndAppCommandInputProvider.cs
- DocumentViewer.cs
- PropertyKey.cs
- FontInfo.cs
- ListViewContainer.cs
- CompiledXpathExpr.cs
- ComponentResourceKey.cs
- altserialization.cs
- ShadowGlyph.cs
- IPAddress.cs
- Slider.cs
- AsymmetricSignatureFormatter.cs
- MenuItemStyle.cs
- ReadWriteObjectLock.cs
- ImageAutomationPeer.cs
- DataGridBeginningEditEventArgs.cs
- TrailingSpaceComparer.cs
- HoistedLocals.cs
- DataGridViewCellFormattingEventArgs.cs
- GACMembershipCondition.cs
- SqlDataRecord.cs
- XmlSchemaSubstitutionGroup.cs
- KeyValueSerializer.cs
- SignedXmlDebugLog.cs
- ComponentDispatcher.cs
- WorkItem.cs
- LinkLabelLinkClickedEvent.cs
- RowParagraph.cs
- OleDbDataReader.cs
- UIElement3D.cs
- TransformGroup.cs
- XamlStackWriter.cs
- CompilerWrapper.cs
- FieldValue.cs
- ServicePointManagerElement.cs
- ReadWriteSpinLock.cs
- DigitShape.cs
- SnapLine.cs
- DataGridCommandEventArgs.cs
- ButtonBaseAdapter.cs
- ProtocolsConfigurationEntry.cs
- EntityContainerAssociationSetEnd.cs
- uribuilder.cs
- WebPartZone.cs
- ZipIOCentralDirectoryBlock.cs
- TreeNodeCollection.cs
- Repeater.cs
- RelationshipDetailsRow.cs
- HwndMouseInputProvider.cs
- QilInvoke.cs
- WeakReferenceKey.cs
- ReversePositionQuery.cs
- DetailsViewRow.cs
- TransformCollection.cs
- StylusPointProperties.cs
- FixedFlowMap.cs
- DbConnectionPoolOptions.cs
- Overlapped.cs
- RewritingValidator.cs
- ViewManager.cs
- FileRecordSequenceHelper.cs
- DataSourceHelper.cs
- EraserBehavior.cs
- ReliabilityContractAttribute.cs
- BitStream.cs
- PartialCachingControl.cs
- HtmlElementErrorEventArgs.cs
- DesignerTransactionCloseEvent.cs
- CompilationPass2Task.cs
- tibetanshape.cs
- ComponentManagerBroker.cs
- GridViewColumnCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- DataGridItemEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CreateInstanceBinder.cs
- EventLogSession.cs