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
- SerializationInfoEnumerator.cs
- BuildProviderUtils.cs
- CornerRadius.cs
- Activity.cs
- DiagnosticsElement.cs
- AvTraceDetails.cs
- FrameworkTextComposition.cs
- UiaCoreApi.cs
- ZipIOLocalFileBlock.cs
- ValidatingReaderNodeData.cs
- DataGridViewButtonColumn.cs
- LocalBuilder.cs
- HighlightVisual.cs
- CodeDomSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- SqlDataSourceQuery.cs
- SQLSingle.cs
- SystemTcpConnection.cs
- DotExpr.cs
- WebPartEditorApplyVerb.cs
- ArithmeticLiteral.cs
- PolyQuadraticBezierSegment.cs
- GridViewDeleteEventArgs.cs
- CacheModeConverter.cs
- NameScope.cs
- CodeTypeDeclaration.cs
- XamlSerializationHelper.cs
- HtmlFormWrapper.cs
- WinFormsUtils.cs
- WorkflowPageSetupDialog.cs
- ToolBarButtonClickEvent.cs
- StreamInfo.cs
- ConfigurationElementProperty.cs
- LayoutTable.cs
- precedingsibling.cs
- EditingCommands.cs
- WSDualHttpBindingElement.cs
- ClientBuildManagerCallback.cs
- DbInsertCommandTree.cs
- MetadataArtifactLoader.cs
- URLAttribute.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SecondaryViewProvider.cs
- __ConsoleStream.cs
- StreamMarshaler.cs
- EnvironmentPermission.cs
- XmlBindingWorker.cs
- ProcessHostMapPath.cs
- wpf-etw.cs
- AutomationElement.cs
- ToolStripTextBox.cs
- ConnectAlgorithms.cs
- XmlTypeMapping.cs
- IResourceProvider.cs
- DataBindingCollectionEditor.cs
- SqlDataSourceCustomCommandPanel.cs
- UniqueTransportManagerRegistration.cs
- FixedPage.cs
- CapabilitiesAssignment.cs
- DomainUpDown.cs
- Socket.cs
- ScrollableControl.cs
- WindowsGrip.cs
- ActivityDesigner.cs
- ToolBarButtonClickEvent.cs
- ControlPropertyNameConverter.cs
- JournalEntryListConverter.cs
- XmlDocumentFragment.cs
- UnsafeNativeMethods.cs
- TreeViewImageKeyConverter.cs
- EncoderReplacementFallback.cs
- ResourcesBuildProvider.cs
- HMACSHA1.cs
- MachineKeyConverter.cs
- SatelliteContractVersionAttribute.cs
- LicFileLicenseProvider.cs
- XmlMapping.cs
- WindowsFormsHostAutomationPeer.cs
- XmlAttributeCollection.cs
- ConsoleTraceListener.cs
- SkewTransform.cs
- ServiceModelSectionGroup.cs
- DataGridViewButtonCell.cs
- Clock.cs
- NeedSkipTokenVisitor.cs
- EventLogPermissionEntry.cs
- InfoCardTraceRecord.cs
- DataGridCaption.cs
- ExclusiveCanonicalizationTransform.cs
- GeneralEndpointIdentity.cs
- BitmapEffectCollection.cs
- FormsAuthenticationCredentials.cs
- Timer.cs
- ButtonBase.cs
- MSG.cs
- Process.cs
- ServiceProviders.cs
- ButtonColumn.cs
- ControlParameter.cs
- HitTestDrawingContextWalker.cs