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
- Module.cs
- DesignerAdRotatorAdapter.cs
- IndexerNameAttribute.cs
- SimplePropertyEntry.cs
- TargetFrameworkAttribute.cs
- HierarchicalDataBoundControlAdapter.cs
- DependencyPropertyValueSerializer.cs
- ConditionalDesigner.cs
- HttpHandlersSection.cs
- EntityDesignerDataSourceView.cs
- AdCreatedEventArgs.cs
- VideoDrawing.cs
- RuleConditionDialog.cs
- WebPartConnectionsCloseVerb.cs
- prompt.cs
- TileModeValidation.cs
- ObjectStorage.cs
- followingsibling.cs
- RijndaelManagedTransform.cs
- Helpers.cs
- RecoverInstanceLocksCommand.cs
- TailCallAnalyzer.cs
- TransactionInterop.cs
- PermissionToken.cs
- ApplicationDirectoryMembershipCondition.cs
- Utils.cs
- ExtendedProtectionPolicyElement.cs
- MenuItemStyleCollection.cs
- TextServicesCompartmentEventSink.cs
- XmlSignatureProperties.cs
- FontResourceCache.cs
- XmlResolver.cs
- AffineTransform3D.cs
- X509CertificateChain.cs
- Bidi.cs
- ExpressionBuilder.cs
- BrowserCapabilitiesFactory35.cs
- HelloMessage11.cs
- DateTimeValueSerializerContext.cs
- HttpListenerException.cs
- LineBreak.cs
- _ConnectOverlappedAsyncResult.cs
- IdleTimeoutMonitor.cs
- SetIterators.cs
- OptimizedTemplateContentHelper.cs
- BmpBitmapEncoder.cs
- KnownBoxes.cs
- DocumentViewerBase.cs
- ProvidersHelper.cs
- TableStyle.cs
- DictionarySectionHandler.cs
- safelink.cs
- MaskedTextBoxDesigner.cs
- SyndicationPerson.cs
- XsltException.cs
- SystemUnicastIPAddressInformation.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RepeaterItemCollection.cs
- DateTimeOffset.cs
- ItemAutomationPeer.cs
- KeyProperty.cs
- HttpConfigurationContext.cs
- BaseCodeDomTreeGenerator.cs
- Codec.cs
- ContentElement.cs
- TextBoxDesigner.cs
- HttpClientCertificate.cs
- TrustExchangeException.cs
- PhoneCallDesigner.cs
- DynamicQueryableWrapper.cs
- AutoSizeComboBox.cs
- TemplateXamlTreeBuilder.cs
- WorkflowApplicationCompletedException.cs
- Function.cs
- CodeTypeReferenceCollection.cs
- CatalogPartDesigner.cs
- WebMethodAttribute.cs
- SHA384.cs
- ClientCultureInfo.cs
- WebPartConnectionCollection.cs
- SqlOuterApplyReducer.cs
- SHA1CryptoServiceProvider.cs
- MenuBindingsEditor.cs
- SqlGenerator.cs
- Shape.cs
- PointKeyFrameCollection.cs
- XmlTextReaderImplHelpers.cs
- Pen.cs
- FileDialogCustomPlaces.cs
- IEnumerable.cs
- XmlSchemaDocumentation.cs
- IntSecurity.cs
- Accessible.cs
- EncoderExceptionFallback.cs
- SQLBytesStorage.cs
- SingleObjectCollection.cs
- UnsafeNativeMethodsTablet.cs
- IdleTimeoutMonitor.cs
- ScriptControl.cs
- DelegatingConfigHost.cs