Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1305600 / 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
- FontCacheUtil.cs
- Guid.cs
- VersionUtil.cs
- ReliableSession.cs
- TransportSecurityProtocolFactory.cs
- BinaryMethodMessage.cs
- Viewport2DVisual3D.cs
- DataGridViewRowEventArgs.cs
- ProxyWebPartConnectionCollection.cs
- PolyBezierSegmentFigureLogic.cs
- RecordConverter.cs
- Interlocked.cs
- CompiledQueryCacheEntry.cs
- ZipIOCentralDirectoryFileHeader.cs
- MethodBuilderInstantiation.cs
- IsolatedStoragePermission.cs
- LinkTarget.cs
- AbsoluteQuery.cs
- SystemResources.cs
- SafeNativeMethods.cs
- HttpCookie.cs
- EpmSourcePathSegment.cs
- ThreadNeutralSemaphore.cs
- OdbcError.cs
- WinInetCache.cs
- KeySplineConverter.cs
- UIServiceHelper.cs
- PostBackTrigger.cs
- WebPartConnectionsCancelVerb.cs
- SettingsBase.cs
- MatrixTransform.cs
- DependencyPropertyChangedEventArgs.cs
- GridViewPageEventArgs.cs
- HtmlLinkAdapter.cs
- WinEventQueueItem.cs
- CancellationToken.cs
- Guid.cs
- CompletedAsyncResult.cs
- RegexTree.cs
- GroupBox.cs
- RowType.cs
- SafeNativeMethodsOther.cs
- FixedSOMElement.cs
- HttpFileCollection.cs
- DataGridViewCellValueEventArgs.cs
- CustomTypeDescriptor.cs
- MessageSecurityOverHttp.cs
- WorkflowWebHostingModule.cs
- ComplexPropertyEntry.cs
- SerializationException.cs
- XMLSyntaxException.cs
- DocumentOutline.cs
- InheritanceRules.cs
- ConnectionInterfaceCollection.cs
- ChangeProcessor.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- webeventbuffer.cs
- CellIdBoolean.cs
- XmlIlGenerator.cs
- XmlValueConverter.cs
- NotifyIcon.cs
- DesignObjectWrapper.cs
- ItemCheckedEvent.cs
- AmbientProperties.cs
- RegistrationServices.cs
- ImageListUtils.cs
- CommandHelpers.cs
- ColorTranslator.cs
- _BufferOffsetSize.cs
- QilName.cs
- ReflectionUtil.cs
- FileUpload.cs
- UserControlCodeDomTreeGenerator.cs
- ConfigurationConverterBase.cs
- ProfilePropertySettings.cs
- XmlSchemaDatatype.cs
- SafeReversePInvokeHandle.cs
- AppDomainUnloadedException.cs
- PhysicalOps.cs
- CompoundFileReference.cs
- SqlConnectionHelper.cs
- ObservableDictionary.cs
- PositiveTimeSpanValidator.cs
- AlternateView.cs
- CharacterMetricsDictionary.cs
- _ListenerRequestStream.cs
- Attributes.cs
- ConnectionsZone.cs
- FormViewUpdatedEventArgs.cs
- PathTooLongException.cs
- CdpEqualityComparer.cs
- GroupBoxRenderer.cs
- BindingSource.cs
- XmlUtilWriter.cs
- TraceShell.cs
- ClientSponsor.cs
- GPRECTF.cs
- DynamicDocumentPaginator.cs
- OperatorExpressions.cs
- WebAdminConfigurationHelper.cs