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
- ColorTranslator.cs
- PairComparer.cs
- OleDbTransaction.cs
- CircleHotSpot.cs
- SqlProviderUtilities.cs
- DataGridColumnCollection.cs
- CodePrimitiveExpression.cs
- DEREncoding.cs
- LogAppendAsyncResult.cs
- ItemList.cs
- GeneralTransformCollection.cs
- FrugalMap.cs
- DocumentPageView.cs
- SelfIssuedAuthAsymmetricKey.cs
- BaseResourcesBuildProvider.cs
- Metafile.cs
- GroupBox.cs
- TextRenderingModeValidation.cs
- QueryPageSettingsEventArgs.cs
- PrimitiveDataContract.cs
- DocobjHost.cs
- sqlser.cs
- UrlMappingsSection.cs
- ExceptionRoutedEventArgs.cs
- PointAnimationClockResource.cs
- RegionData.cs
- CompoundFileReference.cs
- CustomAssemblyResolver.cs
- ConnectorDragDropGlyph.cs
- WebPartCatalogAddVerb.cs
- GridSplitterAutomationPeer.cs
- SamlAttributeStatement.cs
- ToolStripDropDown.cs
- PortCache.cs
- Variable.cs
- MemberDescriptor.cs
- CopyNamespacesAction.cs
- RequestCachingSection.cs
- HostSecurityManager.cs
- WeakRefEnumerator.cs
- TypeBinaryExpression.cs
- WithParamAction.cs
- EdgeModeValidation.cs
- ChannelEndpointElementCollection.cs
- XmlAggregates.cs
- Base64Decoder.cs
- FontResourceCache.cs
- JoinCqlBlock.cs
- NavigationPropertyEmitter.cs
- InstanceCreationEditor.cs
- FacetValues.cs
- DisplayInformation.cs
- WorkflowNamespace.cs
- ReachPageContentCollectionSerializerAsync.cs
- ListViewGroupConverter.cs
- WpfWebRequestHelper.cs
- backend.cs
- RayMeshGeometry3DHitTestResult.cs
- WindowsListViewItemStartMenu.cs
- SpnEndpointIdentity.cs
- SqlException.cs
- Inline.cs
- DoubleAnimationBase.cs
- SqlStatistics.cs
- XmlChildEnumerator.cs
- WindowsTreeView.cs
- Thread.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- RuntimeHelpers.cs
- RotationValidation.cs
- ElementNotEnabledException.cs
- ExplicitDiscriminatorMap.cs
- WpfWebRequestHelper.cs
- AlternateViewCollection.cs
- TextPatternIdentifiers.cs
- BridgeDataRecord.cs
- X509SubjectKeyIdentifierClause.cs
- ManagementQuery.cs
- XXXOnTypeBuilderInstantiation.cs
- PnrpPermission.cs
- BodyGlyph.cs
- PenContext.cs
- RangeValidator.cs
- QuaternionAnimation.cs
- Light.cs
- SmtpFailedRecipientsException.cs
- DynamicObjectAccessor.cs
- RuntimeHelpers.cs
- WebSysDefaultValueAttribute.cs
- HttpProfileBase.cs
- StreamProxy.cs
- AdjustableArrowCap.cs
- TcpClientCredentialType.cs
- DummyDataSource.cs
- OdbcError.cs
- ObjectContextServiceProvider.cs
- SchemaNames.cs
- DataGridViewCellStyleConverter.cs
- ConfigurationSection.cs
- EventLogPermissionAttribute.cs