Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HotCommands.cs
- SQLMoney.cs
- StatusBarPanelClickEvent.cs
- MexHttpBindingElement.cs
- ScriptControlDescriptor.cs
- TCEAdapterGenerator.cs
- DeobfuscatingStream.cs
- PropertyCondition.cs
- SoapMessage.cs
- GeneralTransform3D.cs
- ListBase.cs
- SyndicationElementExtensionCollection.cs
- Attributes.cs
- GuidTagList.cs
- TransactionScope.cs
- EventsTab.cs
- SignatureDescription.cs
- FigureParaClient.cs
- Rect.cs
- DocumentReferenceCollection.cs
- HttpCookie.cs
- CharUnicodeInfo.cs
- MultiAsyncResult.cs
- __FastResourceComparer.cs
- InvokePatternIdentifiers.cs
- PocoPropertyAccessorStrategy.cs
- Imaging.cs
- DynamicDiscoSearcher.cs
- AutoResizedEvent.cs
- OdbcReferenceCollection.cs
- TransformerTypeCollection.cs
- Encoder.cs
- UnsafeNativeMethods.cs
- FileEnumerator.cs
- LowerCaseStringConverter.cs
- DrawingBrush.cs
- SymmetricCryptoHandle.cs
- WindowsPen.cs
- GenericXmlSecurityToken.cs
- LocatorPart.cs
- EventMap.cs
- TreeNodeSelectionProcessor.cs
- DiscoveryExceptionDictionary.cs
- FileSecurity.cs
- XmlAttributeCollection.cs
- WebPartDisplayMode.cs
- SignedInfo.cs
- WebPartConnectionsConfigureVerb.cs
- ArraySubsetEnumerator.cs
- IgnoreFlushAndCloseStream.cs
- PerformanceCounterManager.cs
- WmpBitmapDecoder.cs
- ValidationErrorCollection.cs
- ParserExtension.cs
- HtmlAnchor.cs
- SortedDictionary.cs
- ExpanderAutomationPeer.cs
- TextRangeAdaptor.cs
- AvTrace.cs
- NativeMethods.cs
- TextAction.cs
- ToolConsole.cs
- X509CertificateEndpointIdentity.cs
- ListViewItemSelectionChangedEvent.cs
- SaveFileDialog.cs
- TransformProviderWrapper.cs
- SspiSafeHandles.cs
- TemplatedMailWebEventProvider.cs
- SchemaImporterExtensionElement.cs
- Stack.cs
- EventData.cs
- XmlSchemaAttributeGroup.cs
- Sentence.cs
- documentsequencetextcontainer.cs
- KoreanCalendar.cs
- ReturnEventArgs.cs
- WebServiceBindingAttribute.cs
- XomlDesignerLoader.cs
- AccessDataSource.cs
- WindowsTooltip.cs
- WorkflowIdleBehavior.cs
- XmlCharType.cs
- Form.cs
- TypeDependencyAttribute.cs
- DataGridViewCellFormattingEventArgs.cs
- FormViewPageEventArgs.cs
- EventSinkHelperWriter.cs
- RelatedCurrencyManager.cs
- XsdBuilder.cs
- ToolStripItemBehavior.cs
- InvokeMethodActivity.cs
- WebConfigurationFileMap.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ImageDrawing.cs
- AssertFilter.cs
- EventSinkHelperWriter.cs
- ConstructorNeedsTagAttribute.cs
- HtmlInputHidden.cs
- SectionUpdates.cs
- QilGenerator.cs