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
- FontNamesConverter.cs
- ScrollBar.cs
- TextTreeNode.cs
- Transform3D.cs
- ManifestResourceInfo.cs
- WebServicesDescriptionAttribute.cs
- WebPartEditorCancelVerb.cs
- ProcessModelSection.cs
- TogglePattern.cs
- HMACMD5.cs
- SimpleHandlerBuildProvider.cs
- Token.cs
- RectangleHotSpot.cs
- HttpHandlerAction.cs
- latinshape.cs
- ResourceManagerWrapper.cs
- IntellisenseTextBox.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ConcurrencyMode.cs
- TreeBuilderXamlTranslator.cs
- DatatypeImplementation.cs
- ObjectPropertyMapping.cs
- WebControl.cs
- DesignerActionPropertyItem.cs
- Viewport3DAutomationPeer.cs
- TableRowGroup.cs
- PageThemeParser.cs
- MimeTextImporter.cs
- RegexMatch.cs
- SqlCachedBuffer.cs
- BinaryObjectWriter.cs
- BuildProvider.cs
- InvalidateEvent.cs
- HtmlInputRadioButton.cs
- ActivityBindForm.Designer.cs
- ConfigPathUtility.cs
- DataSourceCache.cs
- HTMLTagNameToTypeMapper.cs
- __Filters.cs
- ClosableStream.cs
- HtmlContainerControl.cs
- DataTemplateKey.cs
- TextBoxAutoCompleteSourceConverter.cs
- AsyncPostBackErrorEventArgs.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- _ConnectStream.cs
- AesCryptoServiceProvider.cs
- ConfigXmlSignificantWhitespace.cs
- Baml2006ReaderContext.cs
- GrammarBuilder.cs
- PowerModeChangedEventArgs.cs
- FrameworkElementAutomationPeer.cs
- TrustLevel.cs
- GridLengthConverter.cs
- DispatcherSynchronizationContext.cs
- OutputCacheProfile.cs
- NonSerializedAttribute.cs
- Quad.cs
- MembershipUser.cs
- TypeName.cs
- SHA384Managed.cs
- LightweightCodeGenerator.cs
- PartialCachingControl.cs
- _NativeSSPI.cs
- HttpStreamFormatter.cs
- ResourcePool.cs
- SqlUtils.cs
- PanelDesigner.cs
- DynamicILGenerator.cs
- TrustLevelCollection.cs
- GeometryDrawing.cs
- PreservationFileWriter.cs
- MatrixTransform3D.cs
- XmlUTF8TextReader.cs
- RadioButtonRenderer.cs
- TypeUnloadedException.cs
- ServiceControllerDesigner.cs
- ValidationPropertyAttribute.cs
- EventPrivateKey.cs
- DbProviderSpecificTypePropertyAttribute.cs
- WebServiceReceiveDesigner.cs
- RtfFormatStack.cs
- SemanticBasicElement.cs
- SafeCancelMibChangeNotify.cs
- BindingElementExtensionElement.cs
- BrushMappingModeValidation.cs
- DataGridViewColumnCollection.cs
- DbConnectionHelper.cs
- PageRanges.cs
- SamlDelegatingWriter.cs
- SafeNativeMethods.cs
- Domain.cs
- Menu.cs
- TemplateComponentConnector.cs
- ApplicationDirectory.cs
- CompiledAction.cs
- CaretElement.cs
- DropSource.cs
- MetadataSource.cs
- DatagridviewDisplayedBandsData.cs