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
- SystemIcmpV4Statistics.cs
- DbMetaDataCollectionNames.cs
- RulePatternOps.cs
- SafeRsaProviderHandle.cs
- NameValueFileSectionHandler.cs
- SqlIdentifier.cs
- RectangleConverter.cs
- Exception.cs
- MgmtConfigurationRecord.cs
- EntityType.cs
- PropertyDescriptorComparer.cs
- CompositeDataBoundControl.cs
- DataControlFieldHeaderCell.cs
- SspiWrapper.cs
- DodSequenceMerge.cs
- RegexStringValidatorAttribute.cs
- ActiveXHost.cs
- X509ClientCertificateCredentialsElement.cs
- HttpsTransportBindingElement.cs
- PageParserFilter.cs
- FillRuleValidation.cs
- __Error.cs
- BoundColumn.cs
- HtmlInputImage.cs
- CookieProtection.cs
- DynamicControlParameter.cs
- SelectionProcessor.cs
- ValidationError.cs
- CodeValidator.cs
- RowsCopiedEventArgs.cs
- DeclarativeCatalogPart.cs
- ProviderUtil.cs
- GradientStop.cs
- XPathMultyIterator.cs
- EndEvent.cs
- DictionaryItemsCollection.cs
- DesignerView.xaml.cs
- StylusSystemGestureEventArgs.cs
- BreakRecordTable.cs
- AppModelKnownContentFactory.cs
- DoubleLink.cs
- Activity.cs
- MarkupCompilePass1.cs
- DataMemberConverter.cs
- ContentValidator.cs
- ViewBase.cs
- GenericEnumerator.cs
- HistoryEventArgs.cs
- IncrementalHitTester.cs
- AssemblyBuilder.cs
- TimelineGroup.cs
- Filter.cs
- ClusterRegistryConfigurationProvider.cs
- PropertyToken.cs
- BlobPersonalizationState.cs
- KeyFrames.cs
- DependencyPropertyChangedEventArgs.cs
- XmlSchemaCompilationSettings.cs
- DbParameterCollection.cs
- SmiEventSink_Default.cs
- CircleHotSpot.cs
- Point3DCollectionValueSerializer.cs
- QuarticEase.cs
- ManagementObjectCollection.cs
- ConfigurationStrings.cs
- ContentTextAutomationPeer.cs
- CodeAccessSecurityEngine.cs
- BaseCAMarshaler.cs
- DataGrid.cs
- Popup.cs
- Line.cs
- AssemblyBuilder.cs
- DataListItemEventArgs.cs
- RectKeyFrameCollection.cs
- MobileControlsSectionHandler.cs
- OuterGlowBitmapEffect.cs
- CodeSubDirectoriesCollection.cs
- WebPartTracker.cs
- StandardBindingReliableSessionElement.cs
- HiddenField.cs
- OdbcDataAdapter.cs
- XamlUtilities.cs
- RequestCache.cs
- ValidationEventArgs.cs
- ClientBuildManagerCallback.cs
- WasHostedComPlusFactory.cs
- HotCommands.cs
- XhtmlConformanceSection.cs
- KnownTypesHelper.cs
- SendActivityDesignerTheme.cs
- PermissionSetEnumerator.cs
- DrawItemEvent.cs
- ConstructorBuilder.cs
- SchemaCollectionCompiler.cs
- X509Certificate2.cs
- ContractHandle.cs
- Site.cs
- SubMenuStyle.cs
- SpanIndex.cs
- ZipArchive.cs