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
- WebPartDisplayMode.cs
- Line.cs
- MsmqOutputMessage.cs
- UniformGrid.cs
- SvcMapFile.cs
- XmlNamespaceDeclarationsAttribute.cs
- StringUtil.cs
- CheckBoxField.cs
- ListViewDeletedEventArgs.cs
- GlyphShapingProperties.cs
- CatalogPartCollection.cs
- DataDocumentXPathNavigator.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- UIElementIsland.cs
- WebPartDisplayModeCancelEventArgs.cs
- EventTrigger.cs
- FixedPosition.cs
- Resources.Designer.cs
- ScaleTransform3D.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlSchemaProviderAttribute.cs
- TabRenderer.cs
- TimeSpanConverter.cs
- SecureUICommand.cs
- ModuleBuilder.cs
- SqlRewriteScalarSubqueries.cs
- SecurityContext.cs
- SafeArchiveContext.cs
- FileAuthorizationModule.cs
- ContextInformation.cs
- DynamicResourceExtensionConverter.cs
- TemplateComponentConnector.cs
- FunctionImportMapping.cs
- AlignmentYValidation.cs
- ToolBar.cs
- FusionWrap.cs
- SafeRightsManagementHandle.cs
- StubHelpers.cs
- CodeRemoveEventStatement.cs
- WizardSideBarListControlItemEventArgs.cs
- WebScriptMetadataMessage.cs
- CultureInfo.cs
- InternalConfigHost.cs
- XmlnsDictionary.cs
- Empty.cs
- StateWorkerRequest.cs
- SerialPinChanges.cs
- ZipPackagePart.cs
- HtmlShim.cs
- GridViewColumn.cs
- Region.cs
- Documentation.cs
- GeometryCombineModeValidation.cs
- DataRecordInternal.cs
- XmlSerializerFactory.cs
- TableProviderWrapper.cs
- GeometryDrawing.cs
- Rect3DValueSerializer.cs
- SyntaxCheck.cs
- CreateUserWizard.cs
- BamlBinaryWriter.cs
- EqualityArray.cs
- MediaPlayerState.cs
- ToolBar.cs
- EntityProviderServices.cs
- SqlResolver.cs
- RuleSettingsCollection.cs
- DesignerActionListCollection.cs
- InvalidOleVariantTypeException.cs
- WebPartEditorCancelVerb.cs
- UdpContractFilterBehavior.cs
- ActiveXHost.cs
- OLEDB_Util.cs
- ScrollChrome.cs
- EffectiveValueEntry.cs
- ComplexPropertyEntry.cs
- SqlClientPermission.cs
- AdapterUtil.cs
- TextCollapsingProperties.cs
- X509CertificateRecipientClientCredential.cs
- XmlNamespaceMapping.cs
- KeyEventArgs.cs
- XsltInput.cs
- SelectionService.cs
- NameValueCollection.cs
- OrderByBuilder.cs
- SineEase.cs
- HostedBindingBehavior.cs
- DBDataPermissionAttribute.cs
- QueryIntervalOp.cs
- InvalidProgramException.cs
- TileModeValidation.cs
- ImageField.cs
- ApplicationFileParser.cs
- HttpListenerContext.cs
- InternalBufferOverflowException.cs
- CodeStatement.cs
- AttributedMetaModel.cs
- Int64Converter.cs
- CodeSnippetExpression.cs