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
- LookupBindingPropertiesAttribute.cs
- UIElementIsland.cs
- WinInet.cs
- TagPrefixAttribute.cs
- safemediahandle.cs
- RijndaelManagedTransform.cs
- mediaclock.cs
- ExpressionBuilder.cs
- PageAsyncTask.cs
- DataErrorValidationRule.cs
- LoadWorkflowCommand.cs
- SessionState.cs
- WindowsRegion.cs
- InkCollectionBehavior.cs
- PartitionResolver.cs
- TdsParserStaticMethods.cs
- FrameworkElementFactoryMarkupObject.cs
- xmlsaver.cs
- SectionRecord.cs
- ReadOnlyObservableCollection.cs
- Journaling.cs
- RangeEnumerable.cs
- CharUnicodeInfo.cs
- EntryIndex.cs
- PatternMatcher.cs
- MouseButton.cs
- OrderPreservingSpoolingTask.cs
- ProcessModelSection.cs
- NotifyInputEventArgs.cs
- RankException.cs
- TranslateTransform3D.cs
- CopyAction.cs
- JulianCalendar.cs
- StopStoryboard.cs
- MimeTypeAttribute.cs
- FormsAuthenticationUserCollection.cs
- WebPartDeleteVerb.cs
- WebPartEditVerb.cs
- SqlConnection.cs
- EntityParameter.cs
- WebException.cs
- storagemappingitemcollection.viewdictionary.cs
- SQLCharsStorage.cs
- ColorPalette.cs
- MissingSatelliteAssemblyException.cs
- PinnedBufferMemoryStream.cs
- InvokeHandlers.cs
- GraphicsPath.cs
- TreeView.cs
- InitializerFacet.cs
- DelegatingMessage.cs
- CompositionAdorner.cs
- AttributeProviderAttribute.cs
- LogEntryHeaderDeserializer.cs
- PlatformNotSupportedException.cs
- ObjRef.cs
- MachineKeyConverter.cs
- XmlCDATASection.cs
- HMAC.cs
- RangeContentEnumerator.cs
- XmlElement.cs
- SmiEventSink_DeferedProcessing.cs
- OleDbFactory.cs
- ExplicitDiscriminatorMap.cs
- SiteMapDataSourceView.cs
- StylusPointProperties.cs
- HostingEnvironmentSection.cs
- UnmanagedBitmapWrapper.cs
- CanExecuteRoutedEventArgs.cs
- RowVisual.cs
- XmlTypeAttribute.cs
- TypeKeyValue.cs
- XmlEnumAttribute.cs
- CompilationSection.cs
- MessageDesigner.cs
- FieldNameLookup.cs
- VirtualPathProvider.cs
- DnsPermission.cs
- DelegateBodyWriter.cs
- SimpleHandlerBuildProvider.cs
- SQLChars.cs
- XmlAttributeCache.cs
- ProfileManager.cs
- SettingsSection.cs
- TextElementCollectionHelper.cs
- StateRuntime.cs
- WorkItem.cs
- XPathMultyIterator.cs
- EntityTypeBase.cs
- UriParserTemplates.cs
- Effect.cs
- ClientSponsor.cs
- Compress.cs
- invalidudtexception.cs
- xmlsaver.cs
- CombinedGeometry.cs
- AppendHelper.cs
- WinEventTracker.cs
- ComboBoxRenderer.cs
- CodeTypeDelegate.cs