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
- _FtpControlStream.cs
- UInt64Storage.cs
- OAVariantLib.cs
- BulletChrome.cs
- MethodExpr.cs
- ScriptReference.cs
- AdPostCacheSubstitution.cs
- BigInt.cs
- DataGridViewCellValueEventArgs.cs
- ThreadStateException.cs
- LocationSectionRecord.cs
- dataobject.cs
- EntryWrittenEventArgs.cs
- Model3D.cs
- TemplateControlCodeDomTreeGenerator.cs
- InkSerializer.cs
- ScriptRef.cs
- UntypedNullExpression.cs
- VisualStyleTypesAndProperties.cs
- WhitespaceRule.cs
- SQLInt64.cs
- PingReply.cs
- PassportAuthentication.cs
- CodeCompiler.cs
- FlowLayoutPanel.cs
- ProtocolsConfigurationHandler.cs
- ResourceReferenceExpressionConverter.cs
- SafeLocalAllocation.cs
- ReflectPropertyDescriptor.cs
- CompilerResults.cs
- MonthChangedEventArgs.cs
- ListBoxItemWrapperAutomationPeer.cs
- SessionIDManager.cs
- ImageSourceConverter.cs
- TargetPerspective.cs
- EmptyQuery.cs
- CmsInterop.cs
- FontWeights.cs
- Transform3DGroup.cs
- ListViewTableCell.cs
- XmlName.cs
- AffineTransform3D.cs
- EncryptedPackageFilter.cs
- DeclarativeConditionsCollection.cs
- ColorConverter.cs
- TakeQueryOptionExpression.cs
- XmlQueryCardinality.cs
- CompleteWizardStep.cs
- HttpRawResponse.cs
- XmlExpressionDumper.cs
- SupportsEventValidationAttribute.cs
- EntityClassGenerator.cs
- TypeUtils.cs
- PageBreakRecord.cs
- ContentPlaceHolder.cs
- DataControlLinkButton.cs
- GridViewCancelEditEventArgs.cs
- OTFRasterizer.cs
- Control.cs
- initElementDictionary.cs
- DataGridColumnFloatingHeader.cs
- ToolStripContextMenu.cs
- DecimalSumAggregationOperator.cs
- SplineKeyFrames.cs
- XmlAutoDetectWriter.cs
- DesignerOptions.cs
- MultiTouchSystemGestureLogic.cs
- TypeListConverter.cs
- SqlXmlStorage.cs
- EntitySetBase.cs
- MetricEntry.cs
- StringConverter.cs
- DetailsViewUpdatedEventArgs.cs
- MultiAsyncResult.cs
- regiisutil.cs
- PixelFormat.cs
- WebPartConnectionsCancelVerb.cs
- Type.cs
- X509Certificate2.cs
- CacheOutputQuery.cs
- NoneExcludedImageIndexConverter.cs
- CheckBoxField.cs
- DataGridViewAutoSizeModeEventArgs.cs
- LinkConverter.cs
- Directory.cs
- ParallelTimeline.cs
- CreateUserWizardStep.cs
- ProtocolsConfigurationHandler.cs
- SortFieldComparer.cs
- AspCompat.cs
- TypeKeyValue.cs
- HitTestResult.cs
- CommunicationException.cs
- BlurEffect.cs
- ThicknessConverter.cs
- ServiceInfo.cs
- UpdateException.cs
- GroupStyle.cs
- Compiler.cs
- Win32SafeHandles.cs