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
- RootBrowserWindowProxy.cs
- CrossSiteScriptingValidation.cs
- ListViewGroupConverter.cs
- Socket.cs
- CatalogPartCollection.cs
- ContextItem.cs
- URI.cs
- SmiRequestExecutor.cs
- RadioButtonFlatAdapter.cs
- NavigationHelper.cs
- ProtocolElementCollection.cs
- InvokeMethodActivityDesigner.cs
- AccessDataSourceView.cs
- EdmMember.cs
- LogManagementAsyncResult.cs
- EntitySet.cs
- MailAddressCollection.cs
- SplayTreeNode.cs
- PinnedBufferMemoryStream.cs
- SecureUICommand.cs
- BitSet.cs
- InputGestureCollection.cs
- StyleHelper.cs
- AdapterDictionary.cs
- DesignerForm.cs
- BridgeDataReader.cs
- StyleModeStack.cs
- XmlTextWriter.cs
- DbMetaDataFactory.cs
- Literal.cs
- MonthCalendarDesigner.cs
- CompiledQueryCacheEntry.cs
- ServerProtocol.cs
- WorkerRequest.cs
- _RequestCacheProtocol.cs
- ToolStripLabel.cs
- VirtualPath.cs
- StatusBar.cs
- CurrentChangingEventArgs.cs
- MouseCaptureWithinProperty.cs
- IPCCacheManager.cs
- ToolBarTray.cs
- MenuItemBindingCollection.cs
- InstallHelper.cs
- CaseInsensitiveHashCodeProvider.cs
- MetafileEditor.cs
- securitycriticaldataformultiplegetandset.cs
- MsmqInputChannelListener.cs
- CookielessData.cs
- CompilerResults.cs
- MsmqIntegrationReceiveParameters.cs
- SafeArchiveContext.cs
- TabItemWrapperAutomationPeer.cs
- OleCmdHelper.cs
- Schema.cs
- OracleInfoMessageEventArgs.cs
- IChannel.cs
- Hash.cs
- ConfigXmlElement.cs
- KeyConstraint.cs
- TemplatedWizardStep.cs
- HtmlButton.cs
- SelectedDatesCollection.cs
- SettingsAttributeDictionary.cs
- CodeSnippetExpression.cs
- MachineKeyConverter.cs
- AlignmentXValidation.cs
- BamlLocalizationDictionary.cs
- WebCategoryAttribute.cs
- OdbcConnectionFactory.cs
- GC.cs
- ThreadInterruptedException.cs
- RoutedEventHandlerInfo.cs
- ErrorHandlingAcceptor.cs
- DataServiceClientException.cs
- Token.cs
- IxmlLineInfo.cs
- RectValueSerializer.cs
- Int32CollectionValueSerializer.cs
- SyndicationDeserializer.cs
- DockPatternIdentifiers.cs
- CollectionViewGroupInternal.cs
- SqlDataSourceView.cs
- DSACryptoServiceProvider.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridSortCommandEventArgs.cs
- XPathSelectionIterator.cs
- StorageEntityTypeMapping.cs
- SmiGettersStream.cs
- NameNode.cs
- ActiveXContainer.cs
- UserPreferenceChangingEventArgs.cs
- CompositeFontInfo.cs
- AutoGeneratedField.cs
- CompilerResults.cs
- DependencyPropertyKey.cs
- XamlRtfConverter.cs
- PolyQuadraticBezierSegment.cs
- Accessible.cs
- EditorBrowsableAttribute.cs