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
- AvTrace.cs
- FormattedText.cs
- GridViewDeletedEventArgs.cs
- TreeNodeSelectionProcessor.cs
- SetState.cs
- ICollection.cs
- TableProviderWrapper.cs
- AdCreatedEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- MappingMetadataHelper.cs
- SortQuery.cs
- SmtpAuthenticationManager.cs
- Brush.cs
- ObjectCloneHelper.cs
- SafeSystemMetrics.cs
- CapabilitiesState.cs
- MetadataItemCollectionFactory.cs
- SchemaNames.cs
- QilStrConcatenator.cs
- RichTextBoxConstants.cs
- SafeArrayRankMismatchException.cs
- DirectoryInfo.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- precedingquery.cs
- ClientConfigurationSystem.cs
- CalendarData.cs
- WebRequest.cs
- TextEditorCharacters.cs
- TreeViewItemAutomationPeer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SamlAction.cs
- XmlSerializationGeneratedCode.cs
- ResourceReferenceExpression.cs
- LayoutEditorPart.cs
- BinaryReader.cs
- RTTypeWrapper.cs
- SqlRetyper.cs
- CodeDelegateInvokeExpression.cs
- StringBuilder.cs
- FrameworkContentElement.cs
- Bind.cs
- ColumnResizeUndoUnit.cs
- ClientSettingsSection.cs
- Exception.cs
- ArgumentValueSerializer.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MaskDescriptor.cs
- TextBox.cs
- WsdlInspector.cs
- CompositeFontFamily.cs
- StreamGeometryContext.cs
- Select.cs
- CompilationUnit.cs
- NamedPipeProcessProtocolHandler.cs
- StateWorkerRequest.cs
- CompositeFontFamily.cs
- SettingsSection.cs
- ArgumentOutOfRangeException.cs
- ResourceAssociationSetEnd.cs
- TemplatePropertyEntry.cs
- HostSecurityManager.cs
- TracePayload.cs
- AssertSection.cs
- WsdlInspector.cs
- StructuredProperty.cs
- ExtenderProvidedPropertyAttribute.cs
- StateRuntime.cs
- SapiRecoInterop.cs
- HashCryptoHandle.cs
- DataGridLinkButton.cs
- DataGridViewRowConverter.cs
- ValueTypeFixupInfo.cs
- TypeResolver.cs
- ILGenerator.cs
- DataPagerFieldItem.cs
- UniqueTransportManagerRegistration.cs
- Cursors.cs
- WebReferencesBuildProvider.cs
- BamlRecordHelper.cs
- InputProviderSite.cs
- OdbcEnvironmentHandle.cs
- RepeaterItemEventArgs.cs
- CapacityStreamGeometryContext.cs
- DataGrid.cs
- ConstNode.cs
- iisPickupDirectory.cs
- WorkItem.cs
- EntityObject.cs
- WebSysDefaultValueAttribute.cs
- BuildProviderAppliesToAttribute.cs
- LifetimeServices.cs
- DataGridViewColumnDesigner.cs
- ToolboxItemSnapLineBehavior.cs
- WarningException.cs
- BaseCodeDomTreeGenerator.cs
- HttpHandlerAction.cs
- GeneralTransformGroup.cs
- DataTablePropertyDescriptor.cs
- ToolboxBitmapAttribute.cs
- SchemaElementDecl.cs