Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1305600 / StylusButtonEventArgs.cs
using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusButtonDown/Up events. ///The only information required to be passed by this argument is which button had the state change. /// public class StylusButtonEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusButtonEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// /// /// The button. /// public StylusButtonEventArgs( StylusDevice stylusDevice, int timestamp, StylusButton button) : base(stylusDevice, timestamp) { // ISSUE_XiaoTu: Do we need any validation here? _button = button; } ////// Get the StylusButton /// public StylusButton StylusButton { get { return _button; } } ///////////////////////////////////////////////////////////////////// ////// 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) { StylusButtonEventHandler handler = (StylusButtonEventHandler)genericHandler; handler(genericTarget, this); } ///////////////////////////////////////////////////////////////////// /// StylusButton _button; } } // 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
- XmlNode.cs
- ColorConverter.cs
- AssemblyHash.cs
- XmlElement.cs
- DesignerActionService.cs
- StylusPlugin.cs
- CompensatableSequenceActivity.cs
- Page.cs
- Token.cs
- Maps.cs
- GridViewDeleteEventArgs.cs
- ExpressionContext.cs
- ExpressionBuilder.cs
- RelationshipDetailsCollection.cs
- BasicExpressionVisitor.cs
- SQLChars.cs
- FrameworkTextComposition.cs
- Touch.cs
- GradientStop.cs
- ArrangedElementCollection.cs
- DeflateInput.cs
- ClientData.cs
- IdentityNotMappedException.cs
- InvalidPipelineStoreException.cs
- RectKeyFrameCollection.cs
- cookieexception.cs
- AnnotationResourceCollection.cs
- CompatibleIComparer.cs
- ProgressBarRenderer.cs
- LinkedList.cs
- MenuItemCollectionEditorDialog.cs
- UserPersonalizationStateInfo.cs
- SafeRightsManagementSessionHandle.cs
- LocatorManager.cs
- TypeBuilder.cs
- DataBindingList.cs
- DispatcherExceptionFilterEventArgs.cs
- EntityStoreSchemaFilterEntry.cs
- NaturalLanguageHyphenator.cs
- Clipboard.cs
- UpdatableGenericsFeature.cs
- TextMessageEncodingElement.cs
- DbInsertCommandTree.cs
- SqlProfileProvider.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SqlDeflator.cs
- ResXResourceWriter.cs
- DataBoundControlAdapter.cs
- TCPClient.cs
- HopperCache.cs
- DesigntimeLicenseContext.cs
- List.cs
- GridViewCellAutomationPeer.cs
- RangeValueProviderWrapper.cs
- DescendentsWalker.cs
- OleDbMetaDataFactory.cs
- GridEntry.cs
- AuthenticateEventArgs.cs
- SQLByte.cs
- IgnoreSectionHandler.cs
- Application.cs
- TextPattern.cs
- NetNamedPipeBindingCollectionElement.cs
- CodeSubDirectory.cs
- SQLCharsStorage.cs
- OleDbReferenceCollection.cs
- DesigntimeLicenseContextSerializer.cs
- DbParameterHelper.cs
- Socket.cs
- UrlMappingsSection.cs
- SyndicationDeserializer.cs
- TextDecorationLocationValidation.cs
- ThicknessAnimation.cs
- SByte.cs
- OdbcConnectionString.cs
- ProjectionQueryOptionExpression.cs
- SettingsPropertyWrongTypeException.cs
- ScrollChrome.cs
- CompatibleIComparer.cs
- MatrixKeyFrameCollection.cs
- ColorBlend.cs
- DataTemplateSelector.cs
- SmtpNtlmAuthenticationModule.cs
- StretchValidation.cs
- XmlSiteMapProvider.cs
- TimerElapsedEvenArgs.cs
- ActivityDelegate.cs
- Wizard.cs
- TemplateControl.cs
- DatatypeImplementation.cs
- HandleExceptionArgs.cs
- LockedAssemblyCache.cs
- InheritablePropertyChangeInfo.cs
- BoundingRectTracker.cs
- SoapFormatterSinks.cs
- ModuleBuilder.cs
- SingleBodyParameterMessageFormatter.cs
- UpdateTracker.cs
- ColorConvertedBitmap.cs
- XPathMessageFilterElement.cs