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
- XmlArrayItemAttributes.cs
- ArcSegment.cs
- DataShape.cs
- TaskHelper.cs
- CodeExporter.cs
- EntityDataSourceChangingEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- ArrayWithOffset.cs
- GraphicsPath.cs
- Contracts.cs
- InfoCardRequestException.cs
- TemplateControl.cs
- ErrorWebPart.cs
- WrapperEqualityComparer.cs
- GestureRecognizer.cs
- HttpCacheVaryByContentEncodings.cs
- PreDigestedSignedInfo.cs
- ParallelRangeManager.cs
- RootBrowserWindow.cs
- DocumentReferenceCollection.cs
- DbQueryCommandTree.cs
- FlagsAttribute.cs
- AsyncContentLoadedEventArgs.cs
- ChannelBinding.cs
- TableItemPatternIdentifiers.cs
- IRCollection.cs
- OdbcRowUpdatingEvent.cs
- CodeIdentifiers.cs
- ReachBasicContext.cs
- IconEditor.cs
- CompiledELinqQueryState.cs
- DateTimeValueSerializerContext.cs
- OciHandle.cs
- ClientTargetCollection.cs
- DebugView.cs
- SessionIDManager.cs
- CultureTable.cs
- XmlSchemaProviderAttribute.cs
- WorkflowRequestContext.cs
- XmlSchemaExporter.cs
- ExceptionUtility.cs
- IssuedTokenClientBehaviorsElement.cs
- Deflater.cs
- DateTimeConstantAttribute.cs
- ExpressionWriter.cs
- Compiler.cs
- LowerCaseStringConverter.cs
- EntitySet.cs
- ObjectNavigationPropertyMapping.cs
- UmAlQuraCalendar.cs
- SoapHeaders.cs
- Rule.cs
- MarkupCompilePass1.cs
- Misc.cs
- PolicyException.cs
- ExpressionQuoter.cs
- ping.cs
- Win32Exception.cs
- ManualResetEvent.cs
- RequiredFieldValidator.cs
- ChunkedMemoryStream.cs
- TextTreeInsertUndoUnit.cs
- ClientScriptManager.cs
- AdRotator.cs
- Color.cs
- HitTestDrawingContextWalker.cs
- HtmlLinkAdapter.cs
- AlternateView.cs
- ColumnResizeUndoUnit.cs
- BehaviorEditorPart.cs
- FileDialogCustomPlace.cs
- HtmlWindowCollection.cs
- ClassDataContract.cs
- StrokeNodeOperations2.cs
- RangeValuePatternIdentifiers.cs
- SubpageParaClient.cs
- SqlCharStream.cs
- WeakReferenceKey.cs
- XmlValidatingReaderImpl.cs
- MultiTargetingUtil.cs
- ZeroOpNode.cs
- ComplexType.cs
- IgnoreSectionHandler.cs
- DesignerUtility.cs
- Rotation3D.cs
- DragCompletedEventArgs.cs
- FloaterBaseParaClient.cs
- OletxTransactionFormatter.cs
- CapiHashAlgorithm.cs
- BrowserCapabilitiesFactoryBase.cs
- IssuanceTokenProviderBase.cs
- CodeTypeReferenceExpression.cs
- DefaultPrintController.cs
- MasterPage.cs
- FontCollection.cs
- PointLightBase.cs
- ObjectMemberMapping.cs
- TemplateBamlRecordReader.cs
- DataSysAttribute.cs
- DropDownList.cs