Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Primitives / DragCompletedEventArgs.cs / 1 / DragCompletedEventArgs.cs
using System; using System.Windows.Controls; using System.Windows; namespace System.Windows.Controls.Primitives { ////// This DragCompletedEventArgs class contains additional information about the /// DragCompleted event. /// ////// public class DragCompletedEventArgs: RoutedEventArgs { /// /// This is an instance constructor for the DragCompletedEventArgs class. It /// is constructed with a reference to the event being raised. /// ///Nothing. public DragCompletedEventArgs(double horizontalChange, double verticalChange, bool canceled) : base() { _horizontalChange = horizontalChange; _verticalChange = verticalChange; _wasCanceled = canceled; RoutedEvent=Thumb.DragCompletedEvent; } ////// Read-only access to the horizontal distance between the point where mouse's left-button /// was pressed and the point where mouse's left-button was released /// public double HorizontalChange { get { return _horizontalChange; } } ////// Read-only access to the vertical distance between the point where mouse's left-button /// was pressed and the point where mouse's left-button was released /// public double VerticalChange { get { return _verticalChange; } } ////// Read-only access to boolean states whether the drag operation was canceled or not. /// ///public bool Canceled { get { return _wasCanceled; } } /// /// This method is used to perform the proper type casting in order to /// call the type-safe DragCompletedEventHandler delegate for the DragCompletedEvent event. /// /// The handler to invoke. /// The current object along the event's route. ///Nothing. ////// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { DragCompletedEventHandler handler = (DragCompletedEventHandler)genericHandler; handler(genericTarget, this); } private double _horizontalChange; private double _verticalChange; private bool _wasCanceled; } /// /// This delegate must used by handlers of the DragCompleted event. /// /// The current element along the event's route. /// The event arguments containing additional information about the event. ///Nothing. public delegate void DragCompletedEventHandler(object sender, DragCompletedEventArgs 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
- SolidBrush.cs
- CompilerGlobalScopeAttribute.cs
- SerializationSectionGroup.cs
- SiteMembershipCondition.cs
- ViewgenGatekeeper.cs
- EdmMember.cs
- GreenMethods.cs
- UInt32.cs
- SoapFault.cs
- XmlDocumentFragment.cs
- PropertyRef.cs
- SelectionRange.cs
- WindowsIdentity.cs
- BaseTemplateBuildProvider.cs
- ConfigurationSettings.cs
- CategoryNameCollection.cs
- DataServiceKeyAttribute.cs
- AlphabetConverter.cs
- EncoderParameters.cs
- ShapingEngine.cs
- ListViewInsertionMark.cs
- UdpChannelListener.cs
- StringKeyFrameCollection.cs
- UxThemeWrapper.cs
- XmlQueryType.cs
- DataControlField.cs
- CustomAttributeFormatException.cs
- FragmentNavigationEventArgs.cs
- SchemaType.cs
- XmlSchemaSet.cs
- SQLConvert.cs
- X509SecurityTokenProvider.cs
- DoubleAverageAggregationOperator.cs
- RadioButtonAutomationPeer.cs
- ImageAutomationPeer.cs
- OrthographicCamera.cs
- ProfilePropertySettingsCollection.cs
- XmlDocument.cs
- HandleRef.cs
- InlineObject.cs
- AppModelKnownContentFactory.cs
- WebPartConnectionsDisconnectVerb.cs
- SQLBinaryStorage.cs
- FormsAuthenticationUserCollection.cs
- SingleStorage.cs
- SelectionRangeConverter.cs
- TraceUtility.cs
- EventProxy.cs
- CounterSampleCalculator.cs
- CodeCastExpression.cs
- GridViewRow.cs
- COM2ColorConverter.cs
- XmlSchemaDatatype.cs
- WebProxyScriptElement.cs
- WebPartEditorCancelVerb.cs
- PenLineJoinValidation.cs
- TypeForwardedToAttribute.cs
- WebColorConverter.cs
- TimeSpanSecondsConverter.cs
- StylusPointDescription.cs
- SqlUtil.cs
- WizardPanel.cs
- Vector3DCollectionValueSerializer.cs
- DbConnectionPool.cs
- OpenFileDialog.cs
- MappingException.cs
- ZipIOCentralDirectoryFileHeader.cs
- CodeBinaryOperatorExpression.cs
- SQLInt64Storage.cs
- EmptyWorkItem.cs
- HtmlTernaryTree.cs
- DataGridViewCellLinkedList.cs
- HMAC.cs
- RawUIStateInputReport.cs
- HwndKeyboardInputProvider.cs
- Soap.cs
- ToolBar.cs
- IdentityVerifier.cs
- DesignerActionUIStateChangeEventArgs.cs
- DesignerActionHeaderItem.cs
- TimeSpanValidator.cs
- DataSourceHelper.cs
- ProcessModuleDesigner.cs
- SchemaHelper.cs
- DesignTimeVisibleAttribute.cs
- WindowsUpDown.cs
- QueryStringParameter.cs
- ApplicationSettingsBase.cs
- SendSecurityHeader.cs
- SafeNativeMethods.cs
- ListViewCommandEventArgs.cs
- Panel.cs
- X509ChainElement.cs
- TimeSpanConverter.cs
- PackageProperties.cs
- Binding.cs
- ResourceReferenceKeyNotFoundException.cs
- Floater.cs
- TabControlDesigner.cs
- OdbcConnectionHandle.cs