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
- CompilationRelaxations.cs
- CellTreeNodeVisitors.cs
- BamlWriter.cs
- ImageAnimator.cs
- WmpBitmapDecoder.cs
- InstanceContextManager.cs
- SystemIPAddressInformation.cs
- ResizeGrip.cs
- EntityDataSourceDataSelectionPanel.cs
- Pick.cs
- StrokeIntersection.cs
- MasterPageParser.cs
- BufferedGraphics.cs
- URLIdentityPermission.cs
- TableItemStyle.cs
- DynamicMethod.cs
- ScopeCompiler.cs
- XmlSerializationGeneratedCode.cs
- X509Certificate2Collection.cs
- FrameworkName.cs
- PropertyMapper.cs
- GridEntryCollection.cs
- RtfFormatStack.cs
- GridViewRowPresenter.cs
- Pointer.cs
- SQLDecimalStorage.cs
- XmlSchemaObjectTable.cs
- ToolStripTextBox.cs
- SiblingIterators.cs
- Margins.cs
- PseudoWebRequest.cs
- FileDialogPermission.cs
- RenamedEventArgs.cs
- ProgressBarAutomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- HyperLink.cs
- URLString.cs
- DatagridviewDisplayedBandsData.cs
- File.cs
- SecurityException.cs
- ConvertersCollection.cs
- CopyAttributesAction.cs
- ExpandSegment.cs
- InheritanceAttribute.cs
- DataExpression.cs
- BindingExpressionUncommonField.cs
- DefaultPropertyAttribute.cs
- FrameworkObject.cs
- DataControlField.cs
- ExpressionBuilder.cs
- TransformConverter.cs
- RegexRunner.cs
- RefreshPropertiesAttribute.cs
- ParagraphResult.cs
- XamlInt32CollectionSerializer.cs
- OdbcCommand.cs
- SchemaSetCompiler.cs
- SpinWait.cs
- EntityDataSourceUtil.cs
- DbConvert.cs
- ContentElementAutomationPeer.cs
- Typeface.cs
- ExtendedPropertyCollection.cs
- MimeTypeAttribute.cs
- RoleManagerModule.cs
- InvalidEnumArgumentException.cs
- HttpCacheVaryByContentEncodings.cs
- ConfigXmlCDataSection.cs
- _IPv6Address.cs
- DataGridViewColumnEventArgs.cs
- ZoneMembershipCondition.cs
- TemplateDefinition.cs
- DocumentViewerAutomationPeer.cs
- DbExpressionRules.cs
- XmlArrayItemAttributes.cs
- CallbackValidator.cs
- SafeThemeHandle.cs
- FrameworkRichTextComposition.cs
- RectAnimation.cs
- TargetParameterCountException.cs
- XmlSignatureManifest.cs
- PageContentAsyncResult.cs
- Operator.cs
- documentsequencetextcontainer.cs
- TextEditorTables.cs
- RsaSecurityKey.cs
- ProgressBarAutomationPeer.cs
- StyleSheet.cs
- TraceContext.cs
- DataServiceExpressionVisitor.cs
- ProfessionalColorTable.cs
- EntityDataReader.cs
- ListParagraph.cs
- Label.cs
- FontWeights.cs
- DrawingVisualDrawingContext.cs
- SqlDataSourceStatusEventArgs.cs
- RecognizedPhrase.cs
- NativeBuffer.cs
- FixedStringLookup.cs