Code:
/ 4.0 / 4.0 / 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. 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
- ListViewInsertedEventArgs.cs
- hebrewshape.cs
- MonthChangedEventArgs.cs
- ClientScriptManager.cs
- DocumentScope.cs
- HitTestDrawingContextWalker.cs
- GridViewColumn.cs
- TypeUtils.cs
- DbSourceParameterCollection.cs
- NotImplementedException.cs
- PropertyHelper.cs
- GenerateTemporaryTargetAssembly.cs
- XmlTypeAttribute.cs
- AnimationException.cs
- BindUriHelper.cs
- Application.cs
- ProxyWebPart.cs
- LinqDataSourceContextEventArgs.cs
- SamlSecurityTokenAuthenticator.cs
- DataTemplate.cs
- ComponentEvent.cs
- ProcessingInstructionAction.cs
- MultiAsyncResult.cs
- HitTestWithPointDrawingContextWalker.cs
- OpCopier.cs
- X509CertificateInitiatorServiceCredential.cs
- ScalarConstant.cs
- AsymmetricSignatureDeformatter.cs
- HttpWebRequestElement.cs
- MemoryMappedViewAccessor.cs
- FixedFindEngine.cs
- oledbmetadatacollectionnames.cs
- MSG.cs
- ClientConvert.cs
- PriorityBindingExpression.cs
- PermissionListSet.cs
- FragmentQueryProcessor.cs
- CodeMemberMethod.cs
- SecurityManager.cs
- ClrProviderManifest.cs
- XsdCachingReader.cs
- XmlSchemaObjectTable.cs
- IgnorePropertiesAttribute.cs
- Helpers.cs
- SafeFileMappingHandle.cs
- SequenceRangeCollection.cs
- TableLayoutRowStyleCollection.cs
- EditingCoordinator.cs
- Wrapper.cs
- TreeChangeInfo.cs
- DbDataReader.cs
- SendingRequestEventArgs.cs
- CodeNamespaceCollection.cs
- MultipartIdentifier.cs
- WebPartConnectionCollection.cs
- TcpClientChannel.cs
- XmlReflectionMember.cs
- DSASignatureDeformatter.cs
- ReadOnlyPropertyMetadata.cs
- DeviceOverridableAttribute.cs
- ControlSerializer.cs
- TextBox.cs
- CodeNamespaceCollection.cs
- SortedDictionary.cs
- SqlAliaser.cs
- FastPropertyAccessor.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- DataGridViewTextBoxColumn.cs
- XmlILModule.cs
- IdnElement.cs
- DispatcherHooks.cs
- Int64KeyFrameCollection.cs
- SizeAnimationClockResource.cs
- Border.cs
- Matrix.cs
- WebPartExportVerb.cs
- XmlElement.cs
- SByte.cs
- HttpListenerContext.cs
- GridViewUpdateEventArgs.cs
- InvalidDataException.cs
- _SslStream.cs
- SQLBinary.cs
- SpecularMaterial.cs
- TileModeValidation.cs
- QuadTree.cs
- ReferenceEqualityComparer.cs
- SingleStorage.cs
- BindingElementCollection.cs
- IPAddress.cs
- ToolStripDropDownDesigner.cs
- NetworkAddressChange.cs
- InstancePersistenceEvent.cs
- DaylightTime.cs
- CodePageEncoding.cs
- CheckBoxList.cs
- RootBrowserWindow.cs
- GatewayDefinition.cs
- ZipPackagePart.cs
- Delay.cs