Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SecureUICommand.cs
- LayoutEvent.cs
- ScanQueryOperator.cs
- ParallelQuery.cs
- DBConnectionString.cs
- ContractMapping.cs
- ImageCollectionEditor.cs
- X509WindowsSecurityToken.cs
- CachedBitmap.cs
- ServiceModelSectionGroup.cs
- TypeConverter.cs
- ResolveMatchesCD1.cs
- ResourceWriter.cs
- SubMenuStyle.cs
- FontTypeConverter.cs
- _KerberosClient.cs
- InheritedPropertyChangedEventArgs.cs
- storepermission.cs
- ErrorStyle.cs
- ReadOnlyCollectionBase.cs
- _RequestCacheProtocol.cs
- FrameworkElement.cs
- EntityDataSourceContainerNameConverter.cs
- ListMarkerLine.cs
- HierarchicalDataBoundControl.cs
- XPathNavigator.cs
- StyleReferenceConverter.cs
- SHA512.cs
- X509PeerCertificateAuthentication.cs
- ZipFileInfo.cs
- PLINQETWProvider.cs
- ExpressionBuilderContext.cs
- ManagementClass.cs
- SqlFlattener.cs
- FtpWebResponse.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridCell.cs
- CodeTypeParameterCollection.cs
- XPathArrayIterator.cs
- ValidatingReaderNodeData.cs
- SecureUICommand.cs
- SiteMapHierarchicalDataSourceView.cs
- CleanUpVirtualizedItemEventArgs.cs
- HttpCookiesSection.cs
- CaseCqlBlock.cs
- HeaderedContentControl.cs
- BooleanAnimationUsingKeyFrames.cs
- XmlEncodedRawTextWriter.cs
- CustomWebEventKey.cs
- _SecureChannel.cs
- FileEnumerator.cs
- DispatchRuntime.cs
- TabletDeviceInfo.cs
- EventLogPermissionAttribute.cs
- SizeLimitedCache.cs
- StatusBarDrawItemEvent.cs
- SqlEnums.cs
- SynchronizedInputAdaptor.cs
- XmlCustomFormatter.cs
- EntityChangedParams.cs
- Timer.cs
- EncoderFallback.cs
- ChannelFactory.cs
- MoveSizeWinEventHandler.cs
- RequiredAttributeAttribute.cs
- Base64WriteStateInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- ByteRangeDownloader.cs
- Tool.cs
- QilXmlReader.cs
- UrlPath.cs
- SqlDataSourceWizardForm.cs
- TagPrefixCollection.cs
- safelinkcollection.cs
- SecurityDocument.cs
- Mutex.cs
- EtwTrace.cs
- WebControlsSection.cs
- OrderByBuilder.cs
- JoinTreeNode.cs
- ResourcePermissionBase.cs
- XmlAttribute.cs
- DictionaryBase.cs
- QilNode.cs
- _FtpDataStream.cs
- CurrencyWrapper.cs
- IPPacketInformation.cs
- LostFocusEventManager.cs
- TransformCollection.cs
- DataSourceControlBuilder.cs
- Terminate.cs
- DynamicFilterExpression.cs
- StorageEntityContainerMapping.cs
- TargetPerspective.cs
- SqlRowUpdatedEvent.cs
- CodeGenerationManager.cs
- IResourceProvider.cs
- ObjectKeyFrameCollection.cs
- ListControlConvertEventArgs.cs
- IgnoreFlushAndCloseStream.cs