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
- TransformerTypeCollection.cs
- ColorAnimationUsingKeyFrames.cs
- CodeAttributeDeclaration.cs
- TreeNodeMouseHoverEvent.cs
- DeflateStream.cs
- ArrayConverter.cs
- PermissionSet.cs
- LateBoundBitmapDecoder.cs
- RowBinding.cs
- DPTypeDescriptorContext.cs
- WebAdminConfigurationHelper.cs
- Select.cs
- _StreamFramer.cs
- TreeNodeBinding.cs
- SQLCharsStorage.cs
- IdentityReference.cs
- MetadataItemSerializer.cs
- RemoteCryptoDecryptRequest.cs
- AutoCompleteStringCollection.cs
- DNS.cs
- XMLUtil.cs
- XmlWriter.cs
- ControlIdConverter.cs
- SystemEvents.cs
- WsdlInspector.cs
- ToolStripProgressBar.cs
- SqlNode.cs
- ErrorFormatterPage.cs
- TreeViewImageGenerator.cs
- AuthenticatedStream.cs
- SendMessageChannelCache.cs
- BezierSegment.cs
- OrderPreservingPipeliningSpoolingTask.cs
- XmlDomTextWriter.cs
- MarginCollapsingState.cs
- SafeRegistryKey.cs
- GridViewCellAutomationPeer.cs
- DataGridViewColumnHeaderCell.cs
- ToolStripTextBox.cs
- _ConnectionGroup.cs
- TransformerInfo.cs
- AudioBase.cs
- WindowsImpersonationContext.cs
- GenericAuthenticationEventArgs.cs
- GridToolTip.cs
- _UncName.cs
- CompilerError.cs
- XMLSyntaxException.cs
- Vector3DCollection.cs
- SchemaTableColumn.cs
- Tag.cs
- UseManagedPresentationBindingElement.cs
- SignatureDescription.cs
- ContentHostHelper.cs
- RSAPKCS1SignatureFormatter.cs
- Bits.cs
- DataGridViewRowPrePaintEventArgs.cs
- ChunkedMemoryStream.cs
- ParentUndoUnit.cs
- MissingSatelliteAssemblyException.cs
- IdentityHolder.cs
- WebPartExportVerb.cs
- NameSpaceExtractor.cs
- DropShadowBitmapEffect.cs
- DbConnectionPoolCounters.cs
- ControlBuilder.cs
- DotExpr.cs
- TopClause.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- TextSelectionProcessor.cs
- CodeFieldReferenceExpression.cs
- ToolstripProfessionalRenderer.cs
- Options.cs
- TextChangedEventArgs.cs
- TextBoxAutoCompleteSourceConverter.cs
- PropertyMetadata.cs
- MatrixCamera.cs
- ServiceDescriptionImporter.cs
- ToolboxItem.cs
- DataViewListener.cs
- DelegatingHeader.cs
- TextBoxBaseDesigner.cs
- TableItemPattern.cs
- DescriptionCreator.cs
- ListBoxAutomationPeer.cs
- WpfSharedXamlSchemaContext.cs
- TaskFileService.cs
- DesignerDataSourceView.cs
- ExpandButtonVisibilityConverter.cs
- QueryResponse.cs
- AliasGenerator.cs
- PeerToPeerException.cs
- RankException.cs
- XsltInput.cs
- Point3DCollection.cs
- PackUriHelper.cs
- ChildrenQuery.cs
- ByteAnimationUsingKeyFrames.cs
- HotSpotCollection.cs
- XPathDocumentBuilder.cs