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
- OutputCacheProfileCollection.cs
- ToolStripManager.cs
- MultiBinding.cs
- AddInStore.cs
- PeerContact.cs
- OdbcConnectionPoolProviderInfo.cs
- ConfigViewGenerator.cs
- Block.cs
- DecimalAverageAggregationOperator.cs
- PtsPage.cs
- EntityDataSourceEntitySetNameItem.cs
- CountdownEvent.cs
- DocumentSchemaValidator.cs
- SqlInternalConnection.cs
- DragDropManager.cs
- UrlPath.cs
- QilInvokeLateBound.cs
- RegexStringValidatorAttribute.cs
- DbConvert.cs
- ToolStripRenderEventArgs.cs
- SynchronizationScope.cs
- EventItfInfo.cs
- ZipFileInfoCollection.cs
- CodeBlockBuilder.cs
- Point3DCollectionConverter.cs
- UniqueIdentifierService.cs
- BooleanConverter.cs
- ObjectListCommandCollection.cs
- GetCryptoTransformRequest.cs
- SystemWebSectionGroup.cs
- SiteMapHierarchicalDataSourceView.cs
- BaseDataBoundControl.cs
- XamlVector3DCollectionSerializer.cs
- InputLanguageProfileNotifySink.cs
- Debug.cs
- LongValidatorAttribute.cs
- PassportAuthentication.cs
- Popup.cs
- SoapProtocolReflector.cs
- XmlElement.cs
- SessionStateUtil.cs
- RolePrincipal.cs
- ObjectQuery_EntitySqlExtensions.cs
- StyleTypedPropertyAttribute.cs
- ForceCopyBuildProvider.cs
- SpecialFolderEnumConverter.cs
- GrabHandleGlyph.cs
- AuthenticationManager.cs
- MethodAccessException.cs
- RtType.cs
- WebBrowser.cs
- SoapSchemaImporter.cs
- XmlSchemaValidationException.cs
- OracleCommandSet.cs
- HostingEnvironmentException.cs
- Codec.cs
- TextViewBase.cs
- TreeNodeStyle.cs
- ParameterCollection.cs
- RepeatInfo.cs
- UiaCoreProviderApi.cs
- EncoderNLS.cs
- Line.cs
- NativeMethods.cs
- DataTemplate.cs
- TextRunCacheImp.cs
- DataControlImageButton.cs
- ConfigXmlAttribute.cs
- StateChangeEvent.cs
- GeneralTransform3DTo2DTo3D.cs
- QueryCacheManager.cs
- SingleTagSectionHandler.cs
- DataGridPageChangedEventArgs.cs
- GeneralTransform3D.cs
- XmlSchemaExternal.cs
- HeaderedItemsControl.cs
- _Semaphore.cs
- PerformanceCounterManager.cs
- MetricEntry.cs
- PropertyOverridesDialog.cs
- SystemThemeKey.cs
- Axis.cs
- ConfigXmlComment.cs
- FontFamily.cs
- AtomContentProperty.cs
- ThrowHelper.cs
- COM2EnumConverter.cs
- DuplicateWaitObjectException.cs
- DbConnectionFactory.cs
- DrawingState.cs
- OrthographicCamera.cs
- KeyConverter.cs
- StateRuntime.cs
- StructuredTypeInfo.cs
- PingOptions.cs
- BufferedStream.cs
- CacheMemory.cs
- DynamicMethod.cs
- StorageComplexPropertyMapping.cs
- DataBinding.cs