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
- Point3DAnimationUsingKeyFrames.cs
- QilStrConcatenator.cs
- Content.cs
- QilStrConcat.cs
- ImportRequest.cs
- MobileRedirect.cs
- HtmlTableCellCollection.cs
- BindableAttribute.cs
- DataGridViewUtilities.cs
- ToolZone.cs
- Pair.cs
- GlobalItem.cs
- TableLayoutColumnStyleCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- WindowsPen.cs
- AssemblyBuilder.cs
- TemplateManager.cs
- DSASignatureDeformatter.cs
- WebBrowser.cs
- RectAnimationClockResource.cs
- PackagePart.cs
- OracleSqlParser.cs
- ThicknessConverter.cs
- Parameter.cs
- InProcStateClientManager.cs
- AdRotator.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DesignTimeTemplateParser.cs
- VSDExceptions.cs
- ListItemDetailViewAttribute.cs
- ElementAction.cs
- Renderer.cs
- X509Certificate2Collection.cs
- smtpconnection.cs
- Types.cs
- PassportIdentity.cs
- DataGridViewLinkColumn.cs
- PrintDialog.cs
- DependencyObject.cs
- RadialGradientBrush.cs
- LinqDataSource.cs
- securitycriticaldataClass.cs
- VersionUtil.cs
- SystemFonts.cs
- WebBrowserNavigatingEventHandler.cs
- X509Certificate.cs
- FullTrustAssemblyCollection.cs
- WebConfigurationHost.cs
- ServiceContractGenerationContext.cs
- SimpleMailWebEventProvider.cs
- SystemIPGlobalStatistics.cs
- Int16.cs
- DynamicExpression.cs
- WorkflowCreationContext.cs
- ErrorStyle.cs
- QueryPageSettingsEventArgs.cs
- RotationValidation.cs
- FixedDocumentSequencePaginator.cs
- DesignerTransactionCloseEvent.cs
- ScrollViewerAutomationPeer.cs
- PreDigestedSignedInfo.cs
- Grammar.cs
- ISAPIRuntime.cs
- RoleServiceManager.cs
- UnsafeMethods.cs
- SpecialNameAttribute.cs
- ValueCollectionParameterReader.cs
- Iis7Helper.cs
- UndoEngine.cs
- Helpers.cs
- PriorityItem.cs
- Hex.cs
- ObjectConverter.cs
- DataGridState.cs
- EntityDataSourceColumn.cs
- ConfigurationException.cs
- EUCJPEncoding.cs
- TextContainerHelper.cs
- DrawingAttributes.cs
- TypeSystem.cs
- DockPanel.cs
- _RequestCacheProtocol.cs
- ManagementInstaller.cs
- ExtentKey.cs
- ToolBarOverflowPanel.cs
- ButtonPopupAdapter.cs
- AsyncContentLoadedEventArgs.cs
- DataTableTypeConverter.cs
- Comparer.cs
- SizeFConverter.cs
- WebConfigurationManager.cs
- TripleDES.cs
- ScriptIgnoreAttribute.cs
- MessageBox.cs
- Geometry.cs
- ObjectReaderCompiler.cs
- MD5CryptoServiceProvider.cs
- TemplateColumn.cs
- ScrollBarRenderer.cs
- OleDbParameterCollection.cs