Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1 / StylusDownEventArgs.cs
using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusDown events. /// public class StylusDownEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusDownEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// public StylusDownEventArgs( StylusDevice stylusDevice, int timestamp) : base(stylusDevice, timestamp) { } ////// Read access to the stylus tap count. /// public int TapCount { get {return StylusDevice.TapCount;} } ///////////////////////////////////////////////////////////////////// ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { StylusDownEventHandler handler = (StylusDownEventHandler)genericHandler; handler(genericTarget, this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusDown events. /// public class StylusDownEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusDownEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// public StylusDownEventArgs( StylusDevice stylusDevice, int timestamp) : base(stylusDevice, timestamp) { } ////// Read access to the stylus tap count. /// public int TapCount { get {return StylusDevice.TapCount;} } ///////////////////////////////////////////////////////////////////// ////// The mechanism used to call the type-specific handler on the /// target. /// /// /// The generic handler to call in a type-specific way. /// /// /// The target to call the handler on. /// protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) { StylusDownEventHandler handler = (StylusDownEventHandler)genericHandler; handler(genericTarget, this); } } } // 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
- DataProtection.cs
- PasswordPropertyTextAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- CodeConditionStatement.cs
- ControlEvent.cs
- AmbientLight.cs
- RightsManagementPermission.cs
- OperationCanceledException.cs
- formatter.cs
- PeerEndPoint.cs
- listitem.cs
- DataFieldConverter.cs
- OdbcCommandBuilder.cs
- MenuItemAutomationPeer.cs
- XamlStream.cs
- SHA384.cs
- TdsEnums.cs
- OdbcStatementHandle.cs
- KnownIds.cs
- SoapSchemaMember.cs
- Keywords.cs
- MenuCommands.cs
- ImageConverter.cs
- NonBatchDirectoryCompiler.cs
- WaitHandle.cs
- ZoneButton.cs
- RequestedSignatureDialog.cs
- XmlUnspecifiedAttribute.cs
- DataControlPagerLinkButton.cs
- VersionedStreamOwner.cs
- GetIndexBinder.cs
- RepeatButtonAutomationPeer.cs
- Context.cs
- BitmapCache.cs
- LiteralLink.cs
- ResourceProviderFactory.cs
- AsymmetricKeyExchangeDeformatter.cs
- BooleanSwitch.cs
- CompilerState.cs
- SymLanguageType.cs
- BitmapScalingModeValidation.cs
- LambdaReference.cs
- OperatorExpressions.cs
- QuaternionValueSerializer.cs
- CounterCreationDataCollection.cs
- AdornerLayer.cs
- Win32Native.cs
- CodeSnippetCompileUnit.cs
- Properties.cs
- Compiler.cs
- CheckoutException.cs
- figurelengthconverter.cs
- RenderContext.cs
- SoapHelper.cs
- formatstringdialog.cs
- EdmError.cs
- XPathArrayIterator.cs
- CriticalHandle.cs
- GacUtil.cs
- DateTimeFormatInfo.cs
- XPathDocumentIterator.cs
- HScrollBar.cs
- SecurityManager.cs
- MemoryStream.cs
- PagesSection.cs
- ListSortDescriptionCollection.cs
- PolicyConversionContext.cs
- TableAdapterManagerMethodGenerator.cs
- InvalidEnumArgumentException.cs
- Publisher.cs
- Int16.cs
- XmlQueryOutput.cs
- ProfilePropertySettings.cs
- CriticalFinalizerObject.cs
- TypeExtensionSerializer.cs
- OleDbCommand.cs
- HeaderCollection.cs
- IdnElement.cs
- RightNameExpirationInfoPair.cs
- HatchBrush.cs
- RenderDataDrawingContext.cs
- VariableQuery.cs
- DiscoveryMessageSequenceCD1.cs
- NameTable.cs
- WorkflowOperationContext.cs
- SqlProviderServices.cs
- XmlSerializationReader.cs
- CustomPopupPlacement.cs
- ApplicationException.cs
- MsmqReceiveParameters.cs
- SystemParameters.cs
- EntityDataSourceContextCreatingEventArgs.cs
- PersonalizationState.cs
- TrackingConditionCollection.cs
- SqlUserDefinedTypeAttribute.cs
- SerializableAuthorizationContext.cs
- SqlCacheDependency.cs
- IpcClientManager.cs
- QilReference.cs
- DistinctQueryOperator.cs