Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1 / 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
- TcpClientSocketManager.cs
- XmlSchemaSet.cs
- IFormattable.cs
- UserControl.cs
- BindingSourceDesigner.cs
- Vector3DCollectionConverter.cs
- UdpDuplexChannel.cs
- CodeRemoveEventStatement.cs
- PublishLicense.cs
- _PooledStream.cs
- QueryAccessibilityHelpEvent.cs
- PolyLineSegment.cs
- ByeOperationAsyncResult.cs
- BaseDataListPage.cs
- SingletonConnectionReader.cs
- X509RawDataKeyIdentifierClause.cs
- DataGridViewRowsAddedEventArgs.cs
- SubMenuStyleCollection.cs
- HttpHandlerAction.cs
- MailDefinition.cs
- FixedSOMLineRanges.cs
- ScaleTransform.cs
- QuaternionIndependentAnimationStorage.cs
- Point3D.cs
- ISAPIWorkerRequest.cs
- DateTimePickerDesigner.cs
- path.cs
- InterleavedZipPartStream.cs
- odbcmetadatacollectionnames.cs
- DocumentGridContextMenu.cs
- BindingRestrictions.cs
- WebBrowserHelper.cs
- NotificationContext.cs
- Hex.cs
- ColumnHeader.cs
- Model3D.cs
- DataBindingCollection.cs
- CacheEntry.cs
- CodeExpressionStatement.cs
- ResourceDictionary.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RoleManagerEventArgs.cs
- GridItemPattern.cs
- FrameDimension.cs
- TaskCanceledException.cs
- DesignTimeTemplateParser.cs
- XhtmlBasicTextBoxAdapter.cs
- WebConfigurationFileMap.cs
- EntityContainer.cs
- ParameterModifier.cs
- CodeDomConfigurationHandler.cs
- Encoding.cs
- EllipseGeometry.cs
- Misc.cs
- TextTreeTextBlock.cs
- DataAdapter.cs
- DataGridCommandEventArgs.cs
- SuppressMergeCheckAttribute.cs
- DateTime.cs
- FileEnumerator.cs
- CompilerError.cs
- Formatter.cs
- MailBnfHelper.cs
- EditorPartChrome.cs
- DbConvert.cs
- DataGridViewImageCell.cs
- GZipStream.cs
- ScriptIgnoreAttribute.cs
- OutputCacheProfileCollection.cs
- EntityDataSourceContainerNameConverter.cs
- CodeNamespaceImportCollection.cs
- CustomErrorCollection.cs
- BamlWriter.cs
- PackagePart.cs
- ServiceProviders.cs
- DuplicateWaitObjectException.cs
- RoutedUICommand.cs
- DocumentPaginator.cs
- PreviewKeyDownEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- XsdCachingReader.cs
- SerializationAttributes.cs
- JavaScriptString.cs
- KeyInterop.cs
- MultiAsyncResult.cs
- StorageMappingItemLoader.cs
- RawUIStateInputReport.cs
- ImageIndexConverter.cs
- TextEffectResolver.cs
- DataGridViewCellCollection.cs
- DocumentCollection.cs
- __Filters.cs
- ActivityCodeDomSerializationManager.cs
- CodeTypeParameter.cs
- PerformanceCounterCategory.cs
- SoapServerMethod.cs
- OrthographicCamera.cs
- SettingsAttributes.cs
- DynamicMethod.cs
- CommandDevice.cs