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
- XsdDateTime.cs
- CodeIndexerExpression.cs
- _CookieModule.cs
- DataGridViewRowHeaderCell.cs
- OperationAbortedException.cs
- DataGridViewLinkCell.cs
- UrlMappingsModule.cs
- ProxyWebPartManager.cs
- Graphics.cs
- ClientBuildManagerCallback.cs
- IxmlLineInfo.cs
- FillBehavior.cs
- HtmlInputImage.cs
- StrokeFIndices.cs
- Control.cs
- CodeMemberMethod.cs
- FigureParaClient.cs
- arabicshape.cs
- NamespaceListProperty.cs
- HttpAsyncResult.cs
- QueryOperator.cs
- IRCollection.cs
- ProcessInfo.cs
- NavigationPropertyEmitter.cs
- CustomTrackingQuery.cs
- IDQuery.cs
- HttpRawResponse.cs
- SpellerInterop.cs
- BamlWriter.cs
- KerberosSecurityTokenAuthenticator.cs
- DbConnectionStringCommon.cs
- cookiecontainer.cs
- ContextInformation.cs
- SafeFileMappingHandle.cs
- DefaultValueTypeConverter.cs
- StringSource.cs
- SkinBuilder.cs
- BadImageFormatException.cs
- XmlAtomicValue.cs
- TypeGeneratedEventArgs.cs
- ButtonPopupAdapter.cs
- FileInfo.cs
- XmlQueryTypeFactory.cs
- SqlSelectStatement.cs
- SourceElementsCollection.cs
- ComponentManagerBroker.cs
- BuildProvidersCompiler.cs
- AutoScrollHelper.cs
- FontNameEditor.cs
- PropertyManager.cs
- Ops.cs
- DynamicMethod.cs
- LogPolicy.cs
- SqlBuffer.cs
- SymbolMethod.cs
- DatatypeImplementation.cs
- ConsumerConnectionPointCollection.cs
- ApplicationDirectory.cs
- TextBoxView.cs
- EmptyEnumerator.cs
- HorizontalAlignConverter.cs
- ConfigXmlReader.cs
- HtmlListAdapter.cs
- EncoderReplacementFallback.cs
- JapaneseCalendar.cs
- ClientRoleProvider.cs
- ScriptResourceInfo.cs
- UTF8Encoding.cs
- Image.cs
- TabItem.cs
- FileUpload.cs
- EtwTrace.cs
- EntityContainerRelationshipSetEnd.cs
- IDReferencePropertyAttribute.cs
- NavigationEventArgs.cs
- CodeMethodInvokeExpression.cs
- bidPrivateBase.cs
- PaginationProgressEventArgs.cs
- AuthorizationRule.cs
- IIS7WorkerRequest.cs
- StylusButton.cs
- SystemTcpStatistics.cs
- AttributeEmitter.cs
- NonParentingControl.cs
- DrawingCollection.cs
- BasicExpressionVisitor.cs
- HierarchicalDataSourceConverter.cs
- DataListItem.cs
- SubMenuStyleCollection.cs
- PatternMatchRules.cs
- ModifiableIteratorCollection.cs
- DefaultBinder.cs
- ValueOfAction.cs
- ValidatorUtils.cs
- IsolatedStorageFilePermission.cs
- ScriptRegistrationManager.cs
- Validator.cs
- FontCacheUtil.cs
- CompiledRegexRunner.cs
- Int16.cs