Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RecordsAffectedEventArgs.cs
- OraclePermissionAttribute.cs
- DescendantQuery.cs
- PathFigure.cs
- CompilerErrorCollection.cs
- ExtractedStateEntry.cs
- WindowsFormsSectionHandler.cs
- EnumerableCollectionView.cs
- GeometryValueSerializer.cs
- GridViewColumnHeaderAutomationPeer.cs
- SafeReadContext.cs
- XmlSortKey.cs
- TextDecorations.cs
- ObjectDisposedException.cs
- WindowsGraphics2.cs
- UnconditionalPolicy.cs
- documentsequencetextcontainer.cs
- TreeViewBindingsEditorForm.cs
- Error.cs
- IndexingContentUnit.cs
- WebPartZoneBase.cs
- ViewKeyConstraint.cs
- MethodExpr.cs
- AppDomainManager.cs
- QualifierSet.cs
- PropertyMapper.cs
- CodeDomSerializationProvider.cs
- TypeListConverter.cs
- DataGridViewCellConverter.cs
- FamilyMap.cs
- Tag.cs
- DataGridTextBox.cs
- _HeaderInfo.cs
- TypeLibConverter.cs
- SerializableAttribute.cs
- Region.cs
- Socket.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- X509Certificate.cs
- RoutedPropertyChangedEventArgs.cs
- KeyboardDevice.cs
- CachedResourceDictionaryExtension.cs
- Interlocked.cs
- CommandHelper.cs
- BaseDataBoundControl.cs
- FamilyTypefaceCollection.cs
- nulltextnavigator.cs
- elementinformation.cs
- DtdParser.cs
- HtmlPhoneCallAdapter.cs
- XPathCompileException.cs
- AggregationMinMaxHelpers.cs
- AppDomainAttributes.cs
- ModelFunctionTypeElement.cs
- ContentWrapperAttribute.cs
- ColumnBinding.cs
- WebPartTransformerCollection.cs
- DebugView.cs
- HtmlInputText.cs
- CallContext.cs
- RelatedCurrencyManager.cs
- DataSet.cs
- XmlQueryStaticData.cs
- XmlSchemaChoice.cs
- PopupRootAutomationPeer.cs
- PropertyReferenceExtension.cs
- ScrollData.cs
- WindowsFormsSynchronizationContext.cs
- SettingsPropertyValueCollection.cs
- WebPartTransformer.cs
- ValidationResults.cs
- EntitySqlQueryBuilder.cs
- CryptoConfig.cs
- XmlAttributeOverrides.cs
- FontInfo.cs
- WebRequest.cs
- PropertyBuilder.cs
- DesignTable.cs
- CrossSiteScriptingValidation.cs
- DataColumnChangeEvent.cs
- Brush.cs
- TimeSpanConverter.cs
- DeclaredTypeValidator.cs
- MultiPropertyDescriptorGridEntry.cs
- DocumentSequence.cs
- KnownBoxes.cs
- FilteredAttributeCollection.cs
- PageParserFilter.cs
- UnsafeNativeMethods.cs
- webproxy.cs
- MultiBindingExpression.cs
- AutoScrollHelper.cs
- Decorator.cs
- ApplyImportsAction.cs
- CodeThrowExceptionStatement.cs
- PrintPreviewGraphics.cs
- _ConnectOverlappedAsyncResult.cs
- CompiledScopeCriteria.cs
- SplineKeyFrames.cs
- Action.cs