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
- BitHelper.cs
- HTTPNotFoundHandler.cs
- LogManagementAsyncResult.cs
- SlotInfo.cs
- ListViewInsertionMark.cs
- PermissionSet.cs
- DirectionalLight.cs
- ResourceExpressionBuilder.cs
- TextParagraphView.cs
- IdentityModelStringsVersion1.cs
- RequiredFieldValidator.cs
- SelectionUIHandler.cs
- HostedElements.cs
- IListConverters.cs
- OleDbMetaDataFactory.cs
- LayoutEvent.cs
- TextCompositionEventArgs.cs
- ListenerPerfCounters.cs
- EncoderFallback.cs
- _DigestClient.cs
- HtmlImage.cs
- RequestTimeoutManager.cs
- RelationshipEnd.cs
- BitmapSource.cs
- OdbcStatementHandle.cs
- AddInAdapter.cs
- MarkupCompiler.cs
- XamlSerializerUtil.cs
- ApplicationFileParser.cs
- AssemblyInfo.cs
- BaseDataBoundControlDesigner.cs
- Journal.cs
- JpegBitmapDecoder.cs
- FontFamilyConverter.cs
- TypeElement.cs
- DocumentXmlWriter.cs
- HtmlImage.cs
- XsltFunctions.cs
- _IPv4Address.cs
- Attachment.cs
- PopOutPanel.cs
- UnknownMessageReceivedEventArgs.cs
- AspCompat.cs
- AsyncContentLoadedEventArgs.cs
- PointValueSerializer.cs
- RemoteWebConfigurationHostStream.cs
- ConfigurationManager.cs
- CodeVariableDeclarationStatement.cs
- NumberFunctions.cs
- DrawingBrush.cs
- XmlEntityReference.cs
- JoinElimination.cs
- Matrix3DStack.cs
- ProtectedUri.cs
- ReflectTypeDescriptionProvider.cs
- WebPartAddingEventArgs.cs
- Style.cs
- FormsAuthentication.cs
- StateInitialization.cs
- GuidelineCollection.cs
- SerialPort.cs
- PropertyManager.cs
- WebPartAuthorizationEventArgs.cs
- SmtpReplyReaderFactory.cs
- XamlValidatingReader.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlEventCache.cs
- CatalogPartChrome.cs
- SinglePageViewer.cs
- EntityKey.cs
- UndoEngine.cs
- XslAstAnalyzer.cs
- XmlSchemaSequence.cs
- AvTraceDetails.cs
- OleDbReferenceCollection.cs
- BindingCompleteEventArgs.cs
- XhtmlBasicControlAdapter.cs
- LoginView.cs
- MsmqInputChannelListener.cs
- MemberDescriptor.cs
- OutputCacheSettings.cs
- DescriptionAttribute.cs
- FontCollection.cs
- As.cs
- IImplicitResourceProvider.cs
- PrimitiveSchema.cs
- ResponseStream.cs
- HtmlHead.cs
- DataTableReaderListener.cs
- ScrollBarRenderer.cs
- PagesSection.cs
- CompilationSection.cs
- SymDocumentType.cs
- ValidationUtility.cs
- LicenseContext.cs
- Int64KeyFrameCollection.cs
- XmlHierarchyData.cs
- Expressions.cs
- GenerateTemporaryTargetAssembly.cs
- SqlBuffer.cs