Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- KeyTime.cs
- ComplexType.cs
- PingOptions.cs
- EncodingTable.cs
- SystemKeyConverter.cs
- DllNotFoundException.cs
- ClockController.cs
- StreamingContext.cs
- RecognizerInfo.cs
- PropertyGridEditorPart.cs
- Privilege.cs
- MsmqIntegrationReceiveParameters.cs
- XmlWellformedWriter.cs
- CSharpCodeProvider.cs
- sortedlist.cs
- ComponentFactoryHelpers.cs
- DomainConstraint.cs
- ISO2022Encoding.cs
- CodeTypeDeclarationCollection.cs
- XmlBufferReader.cs
- HostnameComparisonMode.cs
- SharedPerformanceCounter.cs
- RealProxy.cs
- MultipartIdentifier.cs
- ProviderException.cs
- RewritingProcessor.cs
- BamlRecords.cs
- EllipseGeometry.cs
- DbProviderServices.cs
- PackageRelationshipSelector.cs
- XmlSchemaCompilationSettings.cs
- ControllableStoryboardAction.cs
- MenuAdapter.cs
- PlanCompilerUtil.cs
- ConfigurationSectionGroup.cs
- LayoutEvent.cs
- MeasureItemEvent.cs
- ISAPIApplicationHost.cs
- SmtpReplyReaderFactory.cs
- PageThemeParser.cs
- DataPager.cs
- ModuleConfigurationInfo.cs
- SourceSwitch.cs
- XmlBindingWorker.cs
- RelationshipFixer.cs
- Rectangle.cs
- InvalidProgramException.cs
- InfoCardRSACryptoProvider.cs
- CollectionEditor.cs
- Utils.cs
- Pair.cs
- ComplexLine.cs
- OdbcReferenceCollection.cs
- WinFormsSecurity.cs
- SystemInformation.cs
- Cast.cs
- FileSystemEventArgs.cs
- EndpointBehaviorElementCollection.cs
- RegisteredDisposeScript.cs
- SqlRemoveConstantOrderBy.cs
- WMIInterop.cs
- SubMenuStyleCollection.cs
- XmlSchemaObjectTable.cs
- ExpressionLexer.cs
- DataColumnMapping.cs
- DynamicQueryStringParameter.cs
- EditorZoneBase.cs
- StructuredProperty.cs
- FontNamesConverter.cs
- PageSettings.cs
- CacheVirtualItemsEvent.cs
- LeaseManager.cs
- Point3DAnimationUsingKeyFrames.cs
- LinqDataSourceSelectEventArgs.cs
- StylusCollection.cs
- ReflectTypeDescriptionProvider.cs
- TextEditorSpelling.cs
- StrongName.cs
- DbException.cs
- ToolboxComponentsCreatedEventArgs.cs
- ResourcePermissionBaseEntry.cs
- ExpressionWriter.cs
- ApplicationTrust.cs
- SQLInt32.cs
- ObjectStateManager.cs
- _LocalDataStore.cs
- DataGridViewHeaderCell.cs
- _BasicClient.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataTransferEventArgs.cs
- MetabaseSettings.cs
- ButtonDesigner.cs
- XmlSchemaAnyAttribute.cs
- RPIdentityRequirement.cs
- ShaderRenderModeValidation.cs
- CustomError.cs
- XmlSchemaSet.cs
- FilterEventArgs.cs
- TemplateControlParser.cs
- Image.cs