Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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.
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
- TextRunCacheImp.cs
- PeerResolverSettings.cs
- Content.cs
- _ProxyChain.cs
- LocalizationCodeDomSerializer.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- ConfigXmlComment.cs
- BitmapCache.cs
- DataObject.cs
- MDIControlStrip.cs
- HGlobalSafeHandle.cs
- WindowAutomationPeer.cs
- HostVisual.cs
- PropertyHelper.cs
- ConfigurationElement.cs
- ArraySegment.cs
- IInstanceTable.cs
- BinHexDecoder.cs
- COM2IDispatchConverter.cs
- ServiceDeploymentInfo.cs
- ResourceWriter.cs
- WriteFileContext.cs
- SymmetricCryptoHandle.cs
- ImpersonateTokenRef.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PlacementWorkspace.cs
- GeneralTransformGroup.cs
- UrlSyndicationContent.cs
- DataServiceRequest.cs
- CompiledQueryCacheEntry.cs
- MD5HashHelper.cs
- PackWebRequestFactory.cs
- DataSourceControl.cs
- DetailsViewPagerRow.cs
- ProfilePropertyNameValidator.cs
- XmlSubtreeReader.cs
- CodeCompileUnit.cs
- PointConverter.cs
- UInt64Converter.cs
- WindowsAltTab.cs
- Sql8ConformanceChecker.cs
- DataControlLinkButton.cs
- DiscoveryClientProtocol.cs
- TimeManager.cs
- HighlightComponent.cs
- PropertyGridDesigner.cs
- XmlNavigatorStack.cs
- Point.cs
- IgnorePropertiesAttribute.cs
- RNGCryptoServiceProvider.cs
- QueueException.cs
- PropertyStore.cs
- Italic.cs
- TabControlToolboxItem.cs
- InputBindingCollection.cs
- SqlCrossApplyToCrossJoin.cs
- StatusBarPanelClickEvent.cs
- RequestSecurityTokenForGetBrowserToken.cs
- IteratorFilter.cs
- Preprocessor.cs
- SqlDelegatedTransaction.cs
- ReferenceConverter.cs
- TypeListConverter.cs
- ExceptionUtil.cs
- ISFClipboardData.cs
- PropertyEmitter.cs
- DataSourceControlBuilder.cs
- WebPartEditorCancelVerb.cs
- BindingExpressionBase.cs
- RijndaelManaged.cs
- RectAnimationBase.cs
- SqlDataSourceEnumerator.cs
- ProfileEventArgs.cs
- Win32Interop.cs
- UserPreferenceChangingEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- IssuanceLicense.cs
- ConnectionConsumerAttribute.cs
- TypefaceCollection.cs
- RegionIterator.cs
- XmlSerializerAssemblyAttribute.cs
- VisualStyleTypesAndProperties.cs
- CommonDialog.cs
- HttpEncoderUtility.cs
- SID.cs
- ReadOnlyMetadataCollection.cs
- UnionCodeGroup.cs
- AuthenticationService.cs
- ButtonAutomationPeer.cs
- RichTextBox.cs
- TemplateBamlRecordReader.cs
- DSASignatureDeformatter.cs
- _RequestCacheProtocol.cs
- AssemblyBuilder.cs
- PageSetupDialog.cs
- ThreadBehavior.cs
- _SafeNetHandles.cs
- OleDbPropertySetGuid.cs
- MobileContainerDesigner.cs
- CngKey.cs