Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. 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
- MarshalByRefObject.cs
- FormViewDeleteEventArgs.cs
- NullableBoolConverter.cs
- WmpBitmapDecoder.cs
- DataReaderContainer.cs
- WebPartEditVerb.cs
- TimelineCollection.cs
- ControlBindingsConverter.cs
- Visual3D.cs
- MarkupCompilePass1.cs
- XmlSchemaAttributeGroupRef.cs
- RemoteWebConfigurationHost.cs
- RectangleGeometry.cs
- AudioDeviceOut.cs
- XmlQueryTypeFactory.cs
- ScriptReference.cs
- FontStyleConverter.cs
- FindCompletedEventArgs.cs
- FontCollection.cs
- FormsAuthenticationConfiguration.cs
- OrderedDictionaryStateHelper.cs
- _AutoWebProxyScriptEngine.cs
- RuntimeResourceSet.cs
- JsonMessageEncoderFactory.cs
- DbConvert.cs
- BypassElementCollection.cs
- DataServiceClientException.cs
- DragDropHelper.cs
- MenuAdapter.cs
- AsyncInvokeOperation.cs
- TextServicesCompartmentEventSink.cs
- EdmComplexTypeAttribute.cs
- CodeComment.cs
- TranslateTransform.cs
- SystemParameters.cs
- XamlParser.cs
- Simplifier.cs
- InternalException.cs
- NavigatorOutput.cs
- DefaultAutoFieldGenerator.cs
- IgnoreSectionHandler.cs
- TextInfo.cs
- XmlNavigatorStack.cs
- ExpressionConverter.cs
- MethodCallTranslator.cs
- LinqToSqlWrapper.cs
- FillBehavior.cs
- PersonalizationState.cs
- COM2ComponentEditor.cs
- Form.cs
- ClientCredentialsSecurityTokenManager.cs
- MonitorWrapper.cs
- WebControl.cs
- ScrollItemPattern.cs
- CodeDomSerializerException.cs
- PassportAuthentication.cs
- WindowsRichEdit.cs
- FormViewUpdatedEventArgs.cs
- WebResourceUtil.cs
- RoleGroup.cs
- Char.cs
- SoapSchemaExporter.cs
- TextTreeText.cs
- HtmlSelect.cs
- DataGridLinkButton.cs
- SingleAnimation.cs
- ListSortDescription.cs
- ApplicationException.cs
- CommunicationException.cs
- UnmanagedMemoryAccessor.cs
- PrivacyNoticeBindingElement.cs
- EntryPointNotFoundException.cs
- MILUtilities.cs
- cookiecollection.cs
- SimpleTypeResolver.cs
- DataGridTable.cs
- BuildProviderAppliesToAttribute.cs
- DrawingGroup.cs
- HMACMD5.cs
- EntityDataSourceDesignerHelper.cs
- SqlDataSourceConfigureSelectPanel.cs
- UIntPtr.cs
- AppSecurityManager.cs
- MemoryResponseElement.cs
- DirectionalLight.cs
- DesignerValidatorAdapter.cs
- QuaternionRotation3D.cs
- WebServiceMethodData.cs
- SplitterCancelEvent.cs
- ButtonChrome.cs
- DetailsViewPageEventArgs.cs
- ExpressionEvaluator.cs
- ClientOptions.cs
- SystemWebSectionGroup.cs
- Rotation3DKeyFrameCollection.cs
- TraceEventCache.cs
- QilPatternFactory.cs
- DispatcherFrame.cs
- ReflectionServiceProvider.cs
- PackageProperties.cs