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
- StringComparer.cs
- CodePrimitiveExpression.cs
- OleDbRowUpdatingEvent.cs
- FilterableAttribute.cs
- PolyLineSegment.cs
- CodeSpit.cs
- ThreadStartException.cs
- TitleStyle.cs
- TimeIntervalCollection.cs
- listviewsubitemcollectioneditor.cs
- ExclusiveHandleList.cs
- KoreanCalendar.cs
- HitTestResult.cs
- DBCommandBuilder.cs
- Rotation3DKeyFrameCollection.cs
- ParseHttpDate.cs
- FormClosedEvent.cs
- ProvidePropertyAttribute.cs
- MouseButtonEventArgs.cs
- TextEditorSelection.cs
- Visitor.cs
- ScriptResourceAttribute.cs
- MetadataCollection.cs
- COM2Enum.cs
- ScriptHandlerFactory.cs
- FilteredDataSetHelper.cs
- XmlCollation.cs
- SQLGuidStorage.cs
- rsa.cs
- ChildChangedEventArgs.cs
- BuilderInfo.cs
- ContextMenuStrip.cs
- HostingEnvironment.cs
- FixUp.cs
- Int16KeyFrameCollection.cs
- HtmlEncodedRawTextWriter.cs
- MDIWindowDialog.cs
- TdsParameterSetter.cs
- ActivityExecutionContextCollection.cs
- RawMouseInputReport.cs
- XmlNamespaceManager.cs
- WebPartEditVerb.cs
- StorageMappingFragment.cs
- GridView.cs
- HandlerMappingMemo.cs
- RegexCompilationInfo.cs
- QuaternionKeyFrameCollection.cs
- Nodes.cs
- _Rfc2616CacheValidators.cs
- Point3DAnimationUsingKeyFrames.cs
- DataObjectMethodAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- Condition.cs
- Adorner.cs
- AudioStateChangedEventArgs.cs
- ActivityCodeDomSerializationManager.cs
- FixedPosition.cs
- Brush.cs
- NetTcpSection.cs
- WeakReadOnlyCollection.cs
- VerificationAttribute.cs
- Quaternion.cs
- DbProviderConfigurationHandler.cs
- GridViewRowPresenterBase.cs
- TrackingRecord.cs
- OdbcCommandBuilder.cs
- SqlDeflator.cs
- TemplatedWizardStep.cs
- BamlLocalizer.cs
- EdmConstants.cs
- cache.cs
- TypeBuilder.cs
- MemoryPressure.cs
- TaskSchedulerException.cs
- __ComObject.cs
- RelationshipEndMember.cs
- Socket.cs
- SqlVisitor.cs
- XsltException.cs
- OperatingSystem.cs
- SemanticAnalyzer.cs
- unsafenativemethodsother.cs
- FontInfo.cs
- ThicknessKeyFrameCollection.cs
- FixedDocumentSequencePaginator.cs
- IPipelineRuntime.cs
- XmlSchemaType.cs
- ImageField.cs
- ClientApiGenerator.cs
- RayMeshGeometry3DHitTestResult.cs
- IRCollection.cs
- ImageList.cs
- ArrayConverter.cs
- AddInEnvironment.cs
- Knowncolors.cs
- NumericExpr.cs
- ProgressBarBrushConverter.cs
- XmlResolver.cs
- FileIOPermission.cs
- InputEventArgs.cs