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
- BaseInfoTable.cs
- HierarchicalDataSourceControl.cs
- SQLBytesStorage.cs
- Int32Rect.cs
- PagesChangedEventArgs.cs
- DesignerSerializerAttribute.cs
- AssemblyNameProxy.cs
- DataGridViewMethods.cs
- SqlInternalConnectionSmi.cs
- XmlElementAttribute.cs
- ComponentConverter.cs
- TreeNodeCollection.cs
- AdCreatedEventArgs.cs
- IndexedString.cs
- DataGridColumn.cs
- ExtensionSimplifierMarkupObject.cs
- KeyToListMap.cs
- SmiConnection.cs
- DeflateStream.cs
- AppModelKnownContentFactory.cs
- ButtonBaseAutomationPeer.cs
- LogAppendAsyncResult.cs
- CollectionType.cs
- EnumerableRowCollectionExtensions.cs
- EventWaitHandle.cs
- ListItemConverter.cs
- FormViewPagerRow.cs
- UTF32Encoding.cs
- WebSysDescriptionAttribute.cs
- StyleBamlTreeBuilder.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TcpProcessProtocolHandler.cs
- Ray3DHitTestResult.cs
- X509ThumbprintKeyIdentifierClause.cs
- DragSelectionMessageFilter.cs
- ConfigXmlWhitespace.cs
- AttributeParameterInfo.cs
- NativeRecognizer.cs
- StrokeRenderer.cs
- PathFigureCollection.cs
- XsltSettings.cs
- LinqDataSourceInsertEventArgs.cs
- PathGeometry.cs
- TemplatedWizardStep.cs
- ReadWriteObjectLock.cs
- ExpressionVisitor.cs
- PrintPreviewGraphics.cs
- BrushMappingModeValidation.cs
- EventProviderWriter.cs
- ManagementQuery.cs
- DataBoundControl.cs
- ClientTarget.cs
- AllMembershipCondition.cs
- ISAPIWorkerRequest.cs
- Cloud.cs
- CompoundFileStreamReference.cs
- SafeEventLogReadHandle.cs
- DocumentApplicationJournalEntry.cs
- LayoutEngine.cs
- SelectionChangedEventArgs.cs
- LinqMaximalSubtreeNominator.cs
- ControlBuilder.cs
- DataGridViewRowHeaderCell.cs
- DtrList.cs
- SettingsPropertyValue.cs
- ValueChangedEventManager.cs
- XmlCompatibilityReader.cs
- EventlogProvider.cs
- Zone.cs
- RequestCacheManager.cs
- SqlVisitor.cs
- UpWmlMobileTextWriter.cs
- _SSPISessionCache.cs
- StringExpressionSet.cs
- SpeechEvent.cs
- SizeKeyFrameCollection.cs
- AndCondition.cs
- CryptoConfig.cs
- DeobfuscatingStream.cs
- XPathItem.cs
- DebugTracing.cs
- DynamicDataResources.Designer.cs
- ObjectDataSourceView.cs
- ListControl.cs
- UIElementCollection.cs
- figurelengthconverter.cs
- EntityRecordInfo.cs
- ProfilePropertyNameValidator.cs
- DataRowExtensions.cs
- xml.cs
- EdmFunction.cs
- Thickness.cs
- SspiHelper.cs
- ToolStripDesignerAvailabilityAttribute.cs
- PenContext.cs
- DrawingVisual.cs
- XmlBoundElement.cs
- IgnoreFileBuildProvider.cs
- TimeoutException.cs
- ConstraintConverter.cs