Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Primitives / DragDeltaEventArgs.cs / 1 / DragDeltaEventArgs.cs
using System;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows;
namespace System.Windows.Controls.Primitives
{
///
/// This DragDeltaEventArgs class contains additional information about the
/// DragDeltaEvent event.
///
///
///
public class DragDeltaEventArgs: RoutedEventArgs
{
///
/// This is an instance constructor for the DragDeltaEventArgs class. It
/// is constructed with a reference to the event being raised.
///
/// Nothing.
public DragDeltaEventArgs(double horizontalChange, double verticalChange) : base()
{
_horizontalChange = horizontalChange;
_verticalChange = verticalChange;
RoutedEvent=Thumb.DragDeltaEvent;
}
///
/// Read-only access to the horizontal change.
///
public double HorizontalChange
{
get { return _horizontalChange; }
}
///
/// Read-only access to the vertical change.
///
public double VerticalChange
{
get { return _verticalChange; }
}
///
/// This method is used to perform the proper type casting in order to
/// call the type-safe DragDeltaEventHandler delegate for the DragDeltaEvent event.
///
/// The handler to invoke.
/// The current object along the event's route.
/// Nothing.
///
///
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
{
DragDeltaEventHandler handler = (DragDeltaEventHandler)genericHandler;
handler(genericTarget, this);
}
private double _horizontalChange;
private double _verticalChange;
}
///
/// This delegate must used by handlers of the DragDeltaEvent event.
///
/// The current element along the event's route.
/// The event arguments containing additional information about the event.
/// Nothing.
public delegate void DragDeltaEventHandler(object sender, DragDeltaEventArgs 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
- QuestionEventArgs.cs
- ExpressionEditor.cs
- peernodestatemanager.cs
- SessionSwitchEventArgs.cs
- NativeMethods.cs
- lengthconverter.cs
- XmlCodeExporter.cs
- BatchParser.cs
- CustomTokenProvider.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- RectAnimation.cs
- SqlDataRecord.cs
- SatelliteContractVersionAttribute.cs
- WebBaseEventKeyComparer.cs
- SecurityPolicySection.cs
- ObjectStateFormatter.cs
- WriterOutput.cs
- SqlConnection.cs
- DurableInstanceManager.cs
- ToolStripPanelRow.cs
- SuppressMergeCheckAttribute.cs
- StreamInfo.cs
- Context.cs
- GenerateScriptTypeAttribute.cs
- ObjectNavigationPropertyMapping.cs
- OdbcException.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Socket.cs
- HtmlTextArea.cs
- QueryNode.cs
- parserscommon.cs
- ZipIOExtraFieldZip64Element.cs
- TypedRowGenerator.cs
- SiteMapHierarchicalDataSourceView.cs
- PngBitmapEncoder.cs
- DataGridViewTextBoxEditingControl.cs
- AdornerLayer.cs
- SqlConnectionManager.cs
- PeerNameResolver.cs
- PenThreadPool.cs
- OdbcParameter.cs
- ChangeInterceptorAttribute.cs
- StructuredTypeEmitter.cs
- ObsoleteAttribute.cs
- SetIterators.cs
- TypedReference.cs
- MimeBasePart.cs
- ListQueryResults.cs
- SignedPkcs7.cs
- ClientFormsIdentity.cs
- Line.cs
- CapabilitiesUse.cs
- storepermission.cs
- DetailsViewDesigner.cs
- PropertyExpression.cs
- StructuredCompositeActivityDesigner.cs
- TcpClientChannel.cs
- DataGridViewRowsRemovedEventArgs.cs
- MimeXmlReflector.cs
- Parser.cs
- SqlVisitor.cs
- GroupBoxAutomationPeer.cs
- DefaultBindingPropertyAttribute.cs
- GenerateHelper.cs
- ListItem.cs
- TriState.cs
- IconHelper.cs
- Triangle.cs
- shaper.cs
- PersistenceProviderFactory.cs
- UnsafeNativeMethods.cs
- ToolStripLocationCancelEventArgs.cs
- RuleSettings.cs
- hwndwrapper.cs
- StreamGeometryContext.cs
- KeyFrames.cs
- RegexParser.cs
- OleDbRowUpdatedEvent.cs
- Tag.cs
- WindowsTokenRoleProvider.cs
- ProtocolViolationException.cs
- ServiceHttpHandlerFactory.cs
- ScrollableControl.cs
- XmlSchemaCollection.cs
- xml.cs
- SupportingTokenListenerFactory.cs
- FontFaceLayoutInfo.cs
- coordinator.cs
- Vector3DCollection.cs
- PowerStatus.cs
- EntityContainerAssociationSetEnd.cs
- AddInProcess.cs
- ValidationService.cs
- TransformerInfoCollection.cs
- DefaultPrintController.cs
- ExceptQueryOperator.cs
- HttpConfigurationSystem.cs
- Match.cs
- RuntimeArgument.cs
- SymmetricKeyWrap.cs