Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1305600 / 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
- SetIterators.cs
- SmiConnection.cs
- ScriptManagerProxy.cs
- ClientSession.cs
- StreamUpdate.cs
- DynamicResourceExtension.cs
- InkCanvasSelection.cs
- NameTable.cs
- Encoder.cs
- BehaviorEditorPart.cs
- TableRow.cs
- ObjectQueryProvider.cs
- FormatterServices.cs
- IIS7UserPrincipal.cs
- SystemIcmpV6Statistics.cs
- LookupNode.cs
- PropagationProtocolsTracing.cs
- BorderGapMaskConverter.cs
- DataKeyArray.cs
- FormsAuthenticationModule.cs
- ParserExtension.cs
- GrammarBuilderPhrase.cs
- SubqueryRules.cs
- WebPartDescription.cs
- _NetworkingPerfCounters.cs
- ServiceNameCollection.cs
- PatternMatcher.cs
- WindowsToolbar.cs
- Int32Rect.cs
- ToolStripEditorManager.cs
- AppManager.cs
- AvTrace.cs
- ByeMessage11.cs
- HitTestWithPointDrawingContextWalker.cs
- JoinTreeSlot.cs
- DomNameTable.cs
- MessageContractExporter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DoubleCollection.cs
- XmlAttributeCollection.cs
- OpacityConverter.cs
- ResourcePool.cs
- XPathPatternBuilder.cs
- LocatorGroup.cs
- SuppressMergeCheckAttribute.cs
- SimpleWorkerRequest.cs
- PageParserFilter.cs
- CodeTypeDeclaration.cs
- UnsafeNativeMethods.cs
- CombinedTcpChannel.cs
- MergeLocalizationDirectives.cs
- FileVersionInfo.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlSubtreeReader.cs
- HttpRawResponse.cs
- BinaryFormatter.cs
- SqlDataSource.cs
- UnaryNode.cs
- SeparatorAutomationPeer.cs
- WebPartsPersonalizationAuthorization.cs
- SingleAnimationUsingKeyFrames.cs
- ListManagerBindingsCollection.cs
- RequestUriProcessor.cs
- PropertyFilterAttribute.cs
- SystemIPInterfaceProperties.cs
- Tracer.cs
- UpDownBaseDesigner.cs
- SqlRemoveConstantOrderBy.cs
- CallbackValidatorAttribute.cs
- PropertyTab.cs
- DecoderNLS.cs
- RectAnimation.cs
- RangeBase.cs
- WebSysDisplayNameAttribute.cs
- TypedServiceChannelBuilder.cs
- XmlSchemaChoice.cs
- ToolBarOverflowPanel.cs
- LinkLabelLinkClickedEvent.cs
- SvcMapFileSerializer.cs
- WebResourceUtil.cs
- ScrollProperties.cs
- ExtensionsSection.cs
- HexParser.cs
- ViewCellRelation.cs
- CompositeFontInfo.cs
- SecureStringHasher.cs
- MergeFailedEvent.cs
- SmiContext.cs
- DateTimeFormatInfo.cs
- GridViewColumnHeaderAutomationPeer.cs
- SatelliteContractVersionAttribute.cs
- ReplacementText.cs
- WinFormsUtils.cs
- ScrollBarAutomationPeer.cs
- TabletDevice.cs
- HttpListenerResponse.cs
- ColorConverter.cs
- _ProxyChain.cs
- FileDialog_Vista.cs
- AdministrationHelpers.cs