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
- MatrixCamera.cs
- HebrewNumber.cs
- RawKeyboardInputReport.cs
- ListViewAutomationPeer.cs
- FormsAuthenticationUserCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SqlCacheDependencyDatabase.cs
- DataReceivedEventArgs.cs
- ContextMarshalException.cs
- SecureStringHasher.cs
- ToolTip.cs
- CapabilitiesRule.cs
- PageSetupDialog.cs
- TextParaLineResult.cs
- OrderingExpression.cs
- ValidationRuleCollection.cs
- ArgumentNullException.cs
- ServerValidateEventArgs.cs
- AnnotationHelper.cs
- EntityDataSourceChangedEventArgs.cs
- GraphicsContext.cs
- CompositeKey.cs
- invalidudtexception.cs
- querybuilder.cs
- DispatcherExceptionFilterEventArgs.cs
- FormsAuthenticationCredentials.cs
- CatalogPart.cs
- TextEditorSpelling.cs
- TextWriterEngine.cs
- ToolStripTextBox.cs
- Stacktrace.cs
- WebBrowserUriTypeConverter.cs
- RichTextBox.cs
- XmlCharCheckingWriter.cs
- ChangeBlockUndoRecord.cs
- HttpDigestClientElement.cs
- GlyphsSerializer.cs
- TargetInvocationException.cs
- UrlAuthFailedErrorFormatter.cs
- DataFieldConverter.cs
- EventKeyword.cs
- XmlDesignerDataSourceView.cs
- WindowsListViewGroupHelper.cs
- HandlerMappingMemo.cs
- SamlEvidence.cs
- RecommendedAsConfigurableAttribute.cs
- IdentityManager.cs
- URLMembershipCondition.cs
- RightsController.cs
- TreeViewHitTestInfo.cs
- SponsorHelper.cs
- InputLanguageEventArgs.cs
- SystemIPv6InterfaceProperties.cs
- TrailingSpaceComparer.cs
- DuplicateWaitObjectException.cs
- SerializationEventsCache.cs
- PeerNameRecord.cs
- RealizationContext.cs
- QuaternionAnimationBase.cs
- UnionCqlBlock.cs
- WeakReferenceKey.cs
- _ProxyRegBlob.cs
- EventRouteFactory.cs
- DocobjHost.cs
- MobileUITypeEditor.cs
- AssemblyAttributes.cs
- TreeViewItemAutomationPeer.cs
- ClientData.cs
- SmtpReplyReaderFactory.cs
- SQLByteStorage.cs
- basevalidator.cs
- BindingExpressionBase.cs
- RegexMatch.cs
- DbProviderManifest.cs
- CollectionConverter.cs
- QueryOptionExpression.cs
- COM2IDispatchConverter.cs
- SoapSchemaExporter.cs
- CodeTypeReferenceCollection.cs
- ChangeDirector.cs
- BamlCollectionHolder.cs
- LockRenewalTask.cs
- IdentityHolder.cs
- SubMenuStyleCollection.cs
- UnSafeCharBuffer.cs
- HyperLinkColumn.cs
- TextOptionsInternal.cs
- FeatureSupport.cs
- TreeNodeEventArgs.cs
- ZipIOExtraFieldElement.cs
- ISFTagAndGuidCache.cs
- versioninfo.cs
- InvalidCommandTreeException.cs
- ConditionValidator.cs
- CodeAttributeDeclaration.cs
- hebrewshape.cs
- GPRECT.cs
- Debug.cs
- Visual3D.cs
- CommandConverter.cs