Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StringConverter.cs
- LongValidator.cs
- UpdatePanelControlTrigger.cs
- Rect3D.cs
- QilGeneratorEnv.cs
- ValidationHelpers.cs
- WebHttpSecurityElement.cs
- UnmanagedMemoryStreamWrapper.cs
- HttpHostedTransportConfiguration.cs
- TemplateXamlParser.cs
- Sql8ExpressionRewriter.cs
- TranslateTransform3D.cs
- PropertyGridView.cs
- HtmlInputImage.cs
- UnauthorizedAccessException.cs
- DynamicDataRoute.cs
- DBSqlParserColumn.cs
- CriticalExceptions.cs
- RC2.cs
- SSmlParser.cs
- AutoGeneratedFieldProperties.cs
- ExtenderProvidedPropertyAttribute.cs
- MissingFieldException.cs
- X509RawDataKeyIdentifierClause.cs
- WindowsEditBox.cs
- PropertyEmitterBase.cs
- XslCompiledTransform.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ProcessHostMapPath.cs
- SmiTypedGetterSetter.cs
- _ListenerAsyncResult.cs
- SecurityContext.cs
- filewebresponse.cs
- RoleGroup.cs
- QilNode.cs
- ByteConverter.cs
- ToolBar.cs
- DataGridViewRowsRemovedEventArgs.cs
- mediaclock.cs
- StylusPointPropertyInfoDefaults.cs
- ZoneLinkButton.cs
- DataRow.cs
- ContainerSelectorBehavior.cs
- CleanUpVirtualizedItemEventArgs.cs
- PixelFormats.cs
- ToolboxDataAttribute.cs
- XsdBuildProvider.cs
- WorkflowApplicationCompletedEventArgs.cs
- ISO2022Encoding.cs
- PartManifestEntry.cs
- CapabilitiesRule.cs
- TextBox.cs
- CodeChecksumPragma.cs
- DbProviderServices.cs
- XmlStreamNodeWriter.cs
- TimeStampChecker.cs
- TextStore.cs
- DataShape.cs
- EventLogStatus.cs
- InstanceLockLostException.cs
- SmtpNetworkElement.cs
- EditorZoneBase.cs
- SHA512.cs
- PageEventArgs.cs
- CngKey.cs
- SoapHeader.cs
- ReadOnlyDataSource.cs
- XmlProcessingInstruction.cs
- SymmetricSecurityBindingElement.cs
- Compiler.cs
- NamespaceEmitter.cs
- DataServiceEntityAttribute.cs
- JsonDataContract.cs
- SR.Designer.cs
- MetadataItem.cs
- CryptographicAttribute.cs
- WinInetCache.cs
- ElementAction.cs
- FormattedTextSymbols.cs
- OpenTypeLayout.cs
- AnimationClockResource.cs
- ToolStripContentPanel.cs
- ListView.cs
- TouchEventArgs.cs
- ToolStripDropTargetManager.cs
- ViewGenResults.cs
- PanelStyle.cs
- Utilities.cs
- DelegatingTypeDescriptionProvider.cs
- StringSorter.cs
- ProxyWebPartManagerDesigner.cs
- Thumb.cs
- StylusTouchDevice.cs
- ExceptionUtil.cs
- handlecollector.cs
- SyndicationFeedFormatter.cs
- CatalogZoneBase.cs
- WebServiceEnumData.cs
- StylusDownEventArgs.cs
- PathFigure.cs