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
- ResourceKey.cs
- DataViewSetting.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- SmiRecordBuffer.cs
- IApplicationTrustManager.cs
- WindowVisualStateTracker.cs
- MouseOverProperty.cs
- DataContractAttribute.cs
- ProvideValueServiceProvider.cs
- TraceInternal.cs
- FileEnumerator.cs
- HttpPostedFileWrapper.cs
- MemberInfoSerializationHolder.cs
- VirtualizedItemProviderWrapper.cs
- InputMethodStateTypeInfo.cs
- RoleManagerEventArgs.cs
- Pen.cs
- FontWeightConverter.cs
- WebServiceParameterData.cs
- SafeArrayTypeMismatchException.cs
- CacheSection.cs
- SqlDataReaderSmi.cs
- TextServicesPropertyRanges.cs
- Int32Collection.cs
- InertiaExpansionBehavior.cs
- PeerNameRecordCollection.cs
- WebPartConnectionCollection.cs
- ArrayConverter.cs
- DuplicateMessageDetector.cs
- DtrList.cs
- File.cs
- GeometryCollection.cs
- LocalsItemDescription.cs
- MenuItem.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ForeignConstraint.cs
- BookmarkScopeHandle.cs
- RegistrationServices.cs
- MainMenu.cs
- XamlVector3DCollectionSerializer.cs
- AsynchronousChannel.cs
- UserControl.cs
- AccessKeyManager.cs
- TreeViewAutomationPeer.cs
- EntityEntry.cs
- CommandField.cs
- UnsafeNativeMethods.cs
- SqlParameter.cs
- CustomPeerResolverService.cs
- ProjectionAnalyzer.cs
- DataContractJsonSerializerOperationFormatter.cs
- XmlTypeMapping.cs
- IssuedTokenParametersElement.cs
- XPathNodePointer.cs
- Filter.cs
- FrameworkContentElementAutomationPeer.cs
- FirewallWrapper.cs
- AttachmentCollection.cs
- XomlCompilerResults.cs
- KeyFrames.cs
- XPathNodeList.cs
- WebRequest.cs
- BodyWriter.cs
- TdsParameterSetter.cs
- HashLookup.cs
- FamilyCollection.cs
- WebMethodAttribute.cs
- DesignColumnCollection.cs
- XmlSchemaIdentityConstraint.cs
- XmlSchemaSequence.cs
- SerializationFieldInfo.cs
- DataGridToolTip.cs
- WebPartConnectionsCloseVerb.cs
- NTAccount.cs
- LineMetrics.cs
- ExpandCollapsePattern.cs
- RayHitTestParameters.cs
- DataGridCellInfo.cs
- AspNetHostingPermission.cs
- ShapingWorkspace.cs
- SmiMetaData.cs
- CodePageUtils.cs
- FixedTextView.cs
- ProxyHwnd.cs
- BamlTreeUpdater.cs
- HttpServerChannel.cs
- SubMenuStyle.cs
- ManualResetEventSlim.cs
- cookiecollection.cs
- GroupItem.cs
- mactripleDES.cs
- SHA384.cs
- WindowsTooltip.cs
- DefinitionBase.cs
- IntPtr.cs
- EventLog.cs
- ClientScriptManagerWrapper.cs
- OrderByQueryOptionExpression.cs
- TextServicesPropertyRanges.cs
- EmulateRecognizeCompletedEventArgs.cs