Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- HttpHeaderCollection.cs
- BaseDataListActionList.cs
- ReversePositionQuery.cs
- ManualResetEvent.cs
- ObjectSet.cs
- UidManager.cs
- HandleTable.cs
- DynamicMethod.cs
- HtmlInputHidden.cs
- WindowsBrush.cs
- TreeViewHitTestInfo.cs
- OleDbCommand.cs
- FormViewPagerRow.cs
- ParameterReplacerVisitor.cs
- HttpDictionary.cs
- XmlNamespaceMappingCollection.cs
- MemberAccessException.cs
- InkSerializer.cs
- InkCanvas.cs
- GlobalDataBindingHandler.cs
- SqlDependencyUtils.cs
- SQLDouble.cs
- DoubleUtil.cs
- LocationUpdates.cs
- UnknownWrapper.cs
- IndicShape.cs
- StringAnimationBase.cs
- ParagraphVisual.cs
- Reference.cs
- ConsoleCancelEventArgs.cs
- XmlWrappingReader.cs
- NativeMethods.cs
- ArrangedElement.cs
- UInt64.cs
- WriteableOnDemandStream.cs
- AspNetHostingPermission.cs
- Transform3DCollection.cs
- ListSourceHelper.cs
- DBCommand.cs
- TextMetrics.cs
- ObjectDataProvider.cs
- DynamicDiscoSearcher.cs
- TextureBrush.cs
- UrlMappingsSection.cs
- CollectionChangeEventArgs.cs
- ProfileGroupSettings.cs
- EdmFunction.cs
- WebExceptionStatus.cs
- WCFBuildProvider.cs
- TransformerConfigurationWizardBase.cs
- Single.cs
- linebase.cs
- HtmlElementCollection.cs
- KnownTypesProvider.cs
- SchemaImporterExtensionElementCollection.cs
- Base64Encoder.cs
- DocumentViewer.cs
- HandoffBehavior.cs
- TextProviderWrapper.cs
- HttpServerProtocol.cs
- FunctionImportMapping.cs
- SpeechSynthesizer.cs
- BulletedList.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MetabaseServerConfig.cs
- OpenFileDialog.cs
- StylusPoint.cs
- ItemList.cs
- XmlBinaryReaderSession.cs
- selecteditemcollection.cs
- StorageModelBuildProvider.cs
- MetadataItemEmitter.cs
- Util.cs
- WindowsServiceElement.cs
- LogExtentCollection.cs
- WebPartVerbsEventArgs.cs
- NamedPipeChannelListener.cs
- _SslSessionsCache.cs
- PropertyGroupDescription.cs
- Window.cs
- Graphics.cs
- safex509handles.cs
- Rules.cs
- XmlSchemaSimpleContentRestriction.cs
- DataViewManager.cs
- DragEvent.cs
- WindowsToolbar.cs
- ImageSource.cs
- MyContact.cs
- TypeAccessException.cs
- IERequestCache.cs
- SafeRsaProviderHandle.cs
- XmlSerializerFactory.cs
- Error.cs
- TraceContextRecord.cs
- ObjectConverter.cs
- Invariant.cs
- remotingproxy.cs
- Misc.cs
- COM2ExtendedUITypeEditor.cs