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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XsdBuildProvider.cs
- XmlSchemaChoice.cs
- GPRECT.cs
- RunWorkerCompletedEventArgs.cs
- DatatypeImplementation.cs
- SqlConnectionStringBuilder.cs
- WebPartMinimizeVerb.cs
- Rotation3DAnimationBase.cs
- SymLanguageType.cs
- ImmComposition.cs
- XmlSchemaException.cs
- PathStreamGeometryContext.cs
- BamlTreeMap.cs
- LeftCellWrapper.cs
- SocketAddress.cs
- PtsHost.cs
- BackgroundWorker.cs
- TreeViewItem.cs
- ArrayList.cs
- Keywords.cs
- SoapElementAttribute.cs
- QilName.cs
- BasicExpandProvider.cs
- SingleKeyFrameCollection.cs
- SecurityResources.cs
- _DisconnectOverlappedAsyncResult.cs
- SqlNode.cs
- HttpFileCollectionWrapper.cs
- DocumentViewerConstants.cs
- CheckBoxRenderer.cs
- NoClickablePointException.cs
- SourceItem.cs
- ReadContentAsBinaryHelper.cs
- InternalBufferOverflowException.cs
- ComponentCodeDomSerializer.cs
- PaperSource.cs
- TypeSource.cs
- LabelAutomationPeer.cs
- RoutedUICommand.cs
- UserValidatedEventArgs.cs
- XmlReader.cs
- AudioLevelUpdatedEventArgs.cs
- SortKey.cs
- FontStretches.cs
- StateElementCollection.cs
- HtmlEmptyTagControlBuilder.cs
- DetailsViewRowCollection.cs
- _AutoWebProxyScriptEngine.cs
- PkcsUtils.cs
- RenderDataDrawingContext.cs
- CodeAssignStatement.cs
- CompilationPass2Task.cs
- MatrixCamera.cs
- FormViewPagerRow.cs
- HandlerFactoryWrapper.cs
- OutOfMemoryException.cs
- NetworkInformationException.cs
- SimpleType.cs
- RpcCryptoRequest.cs
- UrlAuthorizationModule.cs
- CodeCommentStatement.cs
- AsnEncodedData.cs
- UnsafeNativeMethods.cs
- COM2PropertyPageUITypeConverter.cs
- InvalidContentTypeException.cs
- TextStore.cs
- StringCollection.cs
- WebServiceEnumData.cs
- EntityViewGenerationConstants.cs
- IDispatchConstantAttribute.cs
- XmlSchema.cs
- XmlObjectSerializerWriteContext.cs
- QueryExpression.cs
- ZoneMembershipCondition.cs
- PingOptions.cs
- SqlVisitor.cs
- Process.cs
- WebConfigurationHost.cs
- HashSetDebugView.cs
- BaseDataListDesigner.cs
- Range.cs
- EventPrivateKey.cs
- RecognizedPhrase.cs
- SafePointer.cs
- MetadataLocation.cs
- CompressStream.cs
- ConstructorExpr.cs
- ModuleConfigurationInfo.cs
- RootContext.cs
- BaseInfoTable.cs
- TextShapeableCharacters.cs
- LowerCaseStringConverter.cs
- DirectionalLight.cs
- LocatorPart.cs
- FacetChecker.cs
- VolatileEnlistmentMultiplexing.cs
- ThreadAbortException.cs
- DefaultValueTypeConverter.cs
- DataBindingCollectionConverter.cs
- DocumentXPathNavigator.cs