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
- Composition.cs
- DynamicArgumentDialog.cs
- GZipStream.cs
- HtmlInputControl.cs
- TrackingRecord.cs
- SessionIDManager.cs
- TreeViewCancelEvent.cs
- AppLevelCompilationSectionCache.cs
- WindowsIPAddress.cs
- HelpInfo.cs
- XmlLanguage.cs
- FloatMinMaxAggregationOperator.cs
- DomNameTable.cs
- NodeInfo.cs
- DataGridItemCollection.cs
- RowUpdatedEventArgs.cs
- Msec.cs
- HtmlHead.cs
- SearchForVirtualItemEventArgs.cs
- ContextDataSourceView.cs
- Metafile.cs
- FullTextLine.cs
- Message.cs
- TypeInitializationException.cs
- XmlBaseReader.cs
- OptimizedTemplateContent.cs
- ComponentChangedEvent.cs
- SequenceNumber.cs
- DataRecordInfo.cs
- CustomActivityDesigner.cs
- ConfigurationValidatorBase.cs
- SafeArrayRankMismatchException.cs
- SurrogateEncoder.cs
- TimelineGroup.cs
- oledbmetadatacolumnnames.cs
- FixedFlowMap.cs
- SimpleApplicationHost.cs
- ThreadStaticAttribute.cs
- ContentPathSegment.cs
- WinInetCache.cs
- SqlComparer.cs
- PropertyManager.cs
- TileBrush.cs
- ConnectionConsumerAttribute.cs
- WindowsRichEditRange.cs
- AsyncResult.cs
- InputLanguageCollection.cs
- CodeSubDirectory.cs
- SequenceDesigner.xaml.cs
- ToolStripItemEventArgs.cs
- PathTooLongException.cs
- MissingManifestResourceException.cs
- StreamWriter.cs
- SimpleRecyclingCache.cs
- CancellableEnumerable.cs
- ImportFileRequest.cs
- CookieHandler.cs
- OleDbMetaDataFactory.cs
- QilBinary.cs
- Int32KeyFrameCollection.cs
- InfoCardProofToken.cs
- SqlDataSourceEnumerator.cs
- SelectedDatesCollection.cs
- SQLGuid.cs
- ToolStripItemTextRenderEventArgs.cs
- CatalogPartChrome.cs
- PropertyRef.cs
- WebPartCollection.cs
- TailCallAnalyzer.cs
- NavigationFailedEventArgs.cs
- TypedTableBaseExtensions.cs
- COM2AboutBoxPropertyDescriptor.cs
- ServerType.cs
- ConnectionPool.cs
- ValidationEventArgs.cs
- ListBindingHelper.cs
- IPHostEntry.cs
- PolicyManager.cs
- BufferedOutputStream.cs
- CodeLabeledStatement.cs
- TemplateBamlRecordReader.cs
- ToolStripContentPanel.cs
- CompilationUtil.cs
- ComplexLine.cs
- _SSPIWrapper.cs
- XPathDescendantIterator.cs
- ImageButton.cs
- HTMLTagNameToTypeMapper.cs
- TableSectionStyle.cs
- DefaultEventAttribute.cs
- MsmqIntegrationInputMessage.cs
- RowSpanVector.cs
- FormParameter.cs
- UrlPropertyAttribute.cs
- BulletDecorator.cs
- ClientViaElement.cs
- DictionaryContent.cs
- ServiceObjectContainer.cs
- AsyncMethodInvoker.cs
- CqlIdentifiers.cs