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
- DataFieldEditor.cs
- DetailsViewCommandEventArgs.cs
- ConnectionModeReader.cs
- wgx_render.cs
- XmlSchemaSimpleContentExtension.cs
- PagedDataSource.cs
- PackWebRequestFactory.cs
- ResourceDisplayNameAttribute.cs
- XmlSchemaElement.cs
- SiteMap.cs
- SmiMetaDataProperty.cs
- CollectionViewSource.cs
- HttpGetServerProtocol.cs
- FormsIdentity.cs
- DocumentEventArgs.cs
- StylusButtonCollection.cs
- ListControlBuilder.cs
- BindingExpression.cs
- PolygonHotSpot.cs
- SiteMapPathDesigner.cs
- StateManagedCollection.cs
- DirectoryObjectSecurity.cs
- MouseEventArgs.cs
- Translator.cs
- AudioStateChangedEventArgs.cs
- SimpleTypeResolver.cs
- Pool.cs
- FileNotFoundException.cs
- TrailingSpaceComparer.cs
- LinqMaximalSubtreeNominator.cs
- Viewport3DVisual.cs
- Win32Exception.cs
- InputLanguageEventArgs.cs
- SqlNodeTypeOperators.cs
- ProxyRpc.cs
- PointAnimationUsingKeyFrames.cs
- XPathNavigator.cs
- HelpFileFileNameEditor.cs
- DataColumnCollection.cs
- CorrelationToken.cs
- DocumentViewerBaseAutomationPeer.cs
- SoapMessage.cs
- VariableQuery.cs
- WebPartDisplayModeCollection.cs
- SqlDependencyListener.cs
- PerformanceCounterManager.cs
- FlagPanel.cs
- PerspectiveCamera.cs
- Pair.cs
- RewritingValidator.cs
- SelectionProcessor.cs
- Int64AnimationUsingKeyFrames.cs
- StringPropertyBuilder.cs
- TaiwanLunisolarCalendar.cs
- Boolean.cs
- ACL.cs
- InputReport.cs
- QilVisitor.cs
- EventLogPermissionEntry.cs
- SimpleParser.cs
- SqlXmlStorage.cs
- HttpListenerTimeoutManager.cs
- QueryOperationResponseOfT.cs
- ProcessManager.cs
- DesignerTransaction.cs
- RepeaterItemEventArgs.cs
- NetSectionGroup.cs
- NamedPipeConnectionPool.cs
- NumericUpDownAcceleration.cs
- AnimationStorage.cs
- Frame.cs
- AssemblyName.cs
- View.cs
- SqlBooleanizer.cs
- WindowPatternIdentifiers.cs
- CapabilitiesState.cs
- ConstraintCollection.cs
- SemanticBasicElement.cs
- SapiAttributeParser.cs
- IncomingWebResponseContext.cs
- PeerNameResolver.cs
- ProvideValueServiceProvider.cs
- ChildrenQuery.cs
- WizardPanelChangingEventArgs.cs
- SecurityTokenContainer.cs
- ErrorsHelper.cs
- SharedPerformanceCounter.cs
- DiffuseMaterial.cs
- AnimationClock.cs
- FamilyMap.cs
- HMACSHA1.cs
- TimeZoneNotFoundException.cs
- TraceContextEventArgs.cs
- DotAtomReader.cs
- ErasingStroke.cs
- TextEditorCopyPaste.cs
- DefaultObjectSerializer.cs
- ConsoleCancelEventArgs.cs
- ByteStreamGeometryContext.cs
- ConstraintCollection.cs