Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DbConnectionOptions.cs
- SubMenuStyle.cs
- WaitHandleCannotBeOpenedException.cs
- RightsManagementPermission.cs
- EventWaitHandleSecurity.cs
- SessionParameter.cs
- RecognizerInfo.cs
- ExtractedStateEntry.cs
- webbrowsersite.cs
- DateTimeConstantAttribute.cs
- ThousandthOfEmRealPoints.cs
- Menu.cs
- ContainerFilterService.cs
- XD.cs
- WebPermission.cs
- DesignerLinkAdapter.cs
- PenContexts.cs
- BaseProcessor.cs
- ChildTable.cs
- Emitter.cs
- _OSSOCK.cs
- BuildProviderAppliesToAttribute.cs
- CodeNamespaceCollection.cs
- ObjectAnimationBase.cs
- XmlDictionaryReaderQuotas.cs
- ConditionCollection.cs
- ImageSource.cs
- PerfCounterSection.cs
- IItemContainerGenerator.cs
- BigInt.cs
- ListDictionaryInternal.cs
- PrintSchema.cs
- BasePropertyDescriptor.cs
- MsmqReceiveHelper.cs
- Site.cs
- Comparer.cs
- DataSourceBooleanViewSchemaConverter.cs
- AssemblyResolver.cs
- ErrorProvider.cs
- SortableBindingList.cs
- OLEDB_Util.cs
- RegistryExceptionHelper.cs
- CatalogPartCollection.cs
- FileVersion.cs
- CaretElement.cs
- SecureStringHasher.cs
- URIFormatException.cs
- Root.cs
- SByteConverter.cs
- SoapSchemaImporter.cs
- UniqueEventHelper.cs
- Size3D.cs
- ValidationErrorEventArgs.cs
- XmlSchemaGroupRef.cs
- Volatile.cs
- PluralizationService.cs
- PropertyAccessVisitor.cs
- PriorityItem.cs
- DiscoveryReference.cs
- Pkcs9Attribute.cs
- HttpApplication.cs
- ScrollableControl.cs
- ControlCachePolicy.cs
- EntityReference.cs
- WeakReferenceList.cs
- LinkButton.cs
- AttributeEmitter.cs
- CultureTableRecord.cs
- DesignerGenericWebPart.cs
- ButtonField.cs
- PasswordDeriveBytes.cs
- InvalidCastException.cs
- SuppressMessageAttribute.cs
- BackStopAuthenticationModule.cs
- XhtmlBasicSelectionListAdapter.cs
- GPPOINT.cs
- RuleSettings.cs
- RoleManagerModule.cs
- BamlLocalizer.cs
- FacetValueContainer.cs
- RootDesignerSerializerAttribute.cs
- OutputCacheModule.cs
- FixedSOMSemanticBox.cs
- AmbientEnvironment.cs
- UpdateCompiler.cs
- ParallelEnumerableWrapper.cs
- FormClosedEvent.cs
- AtomMaterializerLog.cs
- XmlCustomFormatter.cs
- DelayedRegex.cs
- Events.cs
- PieceNameHelper.cs
- OutArgument.cs
- References.cs
- EndpointAddress.cs
- SplitterPanel.cs
- DiscoveryClient.cs
- InputScope.cs
- AudioException.cs
- LinqDataSourceStatusEventArgs.cs