Code:
/ 4.0 / 4.0 / 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. 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
- NetNamedPipeBinding.cs
- TrackingRecordPreFilter.cs
- webproxy.cs
- _PooledStream.cs
- UpWmlPageAdapter.cs
- NativeCppClassAttribute.cs
- EdmItemError.cs
- SQLDecimal.cs
- TemplateControl.cs
- BuildProvidersCompiler.cs
- SqlIdentifier.cs
- TextViewBase.cs
- FastPropertyAccessor.cs
- ColorConvertedBitmapExtension.cs
- DataGridRowClipboardEventArgs.cs
- ComponentCollection.cs
- JsonStringDataContract.cs
- SimpleFileLog.cs
- BamlTreeMap.cs
- WorkflowView.cs
- ClientConfigPaths.cs
- HtmlInputButton.cs
- PointCollection.cs
- newitemfactory.cs
- XmlCharType.cs
- FacetValueContainer.cs
- IntPtr.cs
- SecurityUtils.cs
- TriggerAction.cs
- FloatUtil.cs
- DbConnectionStringBuilder.cs
- ProxyWebPart.cs
- panel.cs
- PEFileEvidenceFactory.cs
- SessionStateUtil.cs
- MappableObjectManager.cs
- Win32.cs
- xmlfixedPageInfo.cs
- ClientConfigurationHost.cs
- TouchDevice.cs
- MD5HashHelper.cs
- BindingWorker.cs
- X509CertificateValidationMode.cs
- LayoutExceptionEventArgs.cs
- ProxyAttribute.cs
- infer.cs
- QueryOutputWriter.cs
- PathFigureCollection.cs
- SelectedDatesCollection.cs
- List.cs
- PerfCounters.cs
- NameValuePair.cs
- FormatConvertedBitmap.cs
- ObjectParameterCollection.cs
- COM2EnumConverter.cs
- DataServiceRequestArgs.cs
- DocumentPageView.cs
- CachedFontFamily.cs
- BuildProvider.cs
- BindingElementCollection.cs
- FieldDescriptor.cs
- DataGridViewImageColumn.cs
- Point.cs
- ComboBoxAutomationPeer.cs
- IItemContainerGenerator.cs
- PrimitiveCodeDomSerializer.cs
- VarRefManager.cs
- SqlInternalConnectionTds.cs
- SpeechAudioFormatInfo.cs
- ZipIOBlockManager.cs
- HtmlTableCellCollection.cs
- ParseHttpDate.cs
- ReadOnlyHierarchicalDataSource.cs
- XmlDeclaration.cs
- OrthographicCamera.cs
- OlePropertyStructs.cs
- SmtpNetworkElement.cs
- XmlNodeReader.cs
- BlobPersonalizationState.cs
- FusionWrap.cs
- SoapException.cs
- LeftCellWrapper.cs
- SelectionRangeConverter.cs
- EmptyQuery.cs
- InputMethodStateChangeEventArgs.cs
- DataTransferEventArgs.cs
- HyperLink.cs
- SqlCommandBuilder.cs
- HostSecurityManager.cs
- AdCreatedEventArgs.cs
- ImageDrawing.cs
- DispatcherSynchronizationContext.cs
- TablePatternIdentifiers.cs
- CryptoStream.cs
- StylusDownEventArgs.cs
- FormViewDeleteEventArgs.cs
- TemplatePropertyEntry.cs
- Stackframe.cs
- DataGridRowDetailsEventArgs.cs
- WebSysDisplayNameAttribute.cs