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
- OperationSelectorBehavior.cs
- TraceContextEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- FileDialog_Vista_Interop.cs
- SafeNativeMethods.cs
- TabRenderer.cs
- ProvidersHelper.cs
- WaitForChangedResult.cs
- AutoGeneratedFieldProperties.cs
- PenThread.cs
- SchemaMerger.cs
- ObjectMemberMapping.cs
- SharedDp.cs
- WindowsIPAddress.cs
- TextUtf8RawTextWriter.cs
- CodeDomConfigurationHandler.cs
- SharedStatics.cs
- InternalConfigConfigurationFactory.cs
- FieldAccessException.cs
- ServiceCredentialsSecurityTokenManager.cs
- DataGridViewButtonCell.cs
- ProfilePropertyNameValidator.cs
- Focus.cs
- NativeObjectSecurity.cs
- SoapClientProtocol.cs
- WindowsTooltip.cs
- SqlDesignerDataSourceView.cs
- AnnotationHighlightLayer.cs
- WindowsGrip.cs
- StringUtil.cs
- GeometryCollection.cs
- UIElement.cs
- PingReply.cs
- DeviceContext.cs
- SAPIEngineTypes.cs
- StringInfo.cs
- LocationReferenceValue.cs
- VBCodeProvider.cs
- CloudCollection.cs
- SqlProvider.cs
- SqlIdentifier.cs
- TrustManagerMoreInformation.cs
- XmlSchemaException.cs
- String.cs
- XPathBuilder.cs
- CapiHashAlgorithm.cs
- MailMessage.cs
- bidPrivateBase.cs
- ObfuscateAssemblyAttribute.cs
- SiteMapDataSource.cs
- SQLDateTime.cs
- InvalidComObjectException.cs
- XmlSchemaCollection.cs
- ForEach.cs
- WebRequest.cs
- SQLUtility.cs
- PrintPreviewDialog.cs
- CodeAttributeArgument.cs
- ReaderWriterLock.cs
- MultiTrigger.cs
- CompilerWrapper.cs
- securitycriticaldataClass.cs
- EmptyEnumerator.cs
- FormsAuthenticationUserCollection.cs
- VectorCollection.cs
- ExpressionValueEditor.cs
- CatalogPart.cs
- LicFileLicenseProvider.cs
- TreeWalker.cs
- SamlConditions.cs
- ValidationHelper.cs
- GrammarBuilderRuleRef.cs
- NetStream.cs
- AlphaSortedEnumConverter.cs
- Section.cs
- ContextMenuAutomationPeer.cs
- CollectionDataContractAttribute.cs
- StickyNoteAnnotations.cs
- ListItemCollection.cs
- TypeNameHelper.cs
- DataObjectEventArgs.cs
- DesignerTransaction.cs
- IPAddress.cs
- HttpModule.cs
- ContractReference.cs
- FigureParagraph.cs
- ProxyWebPartManager.cs
- LocationChangedEventArgs.cs
- Substitution.cs
- AssemblyContextControlItem.cs
- FontInfo.cs
- QilXmlWriter.cs
- MorphHelper.cs
- dtdvalidator.cs
- ObjectPersistData.cs
- CommonProperties.cs
- ScriptBehaviorDescriptor.cs
- ExpressionBindingCollection.cs
- PaperSize.cs
- QueryResult.cs