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
- OdbcInfoMessageEvent.cs
- GridViewColumnHeader.cs
- CookielessHelper.cs
- RelativeSource.cs
- ToolboxComponentsCreatingEventArgs.cs
- DynamicVirtualDiscoSearcher.cs
- DrawingCollection.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- ImageConverter.cs
- followingquery.cs
- PeerInputChannelListener.cs
- PackUriHelper.cs
- TableCellCollection.cs
- FormsIdentity.cs
- ExtensionQuery.cs
- ProxyManager.cs
- DecimalAnimation.cs
- CodeDirectoryCompiler.cs
- ProxyBuilder.cs
- TextBox.cs
- glyphs.cs
- Annotation.cs
- QuadraticBezierSegment.cs
- BinarySerializer.cs
- DataGridViewCellValueEventArgs.cs
- TrackingServices.cs
- Win32KeyboardDevice.cs
- C14NUtil.cs
- MemberProjectionIndex.cs
- TextParagraph.cs
- WindowsImpersonationContext.cs
- Set.cs
- CharEntityEncoderFallback.cs
- IPHostEntry.cs
- DiagnosticTrace.cs
- IntPtr.cs
- OleDbDataReader.cs
- EditorZone.cs
- _SpnDictionary.cs
- OraclePermission.cs
- TemplateBindingExpression.cs
- ToolStripGrip.cs
- WebPartZoneAutoFormat.cs
- Bezier.cs
- TableCellCollection.cs
- PropertyMappingExceptionEventArgs.cs
- EncoderExceptionFallback.cs
- ComponentDispatcherThread.cs
- JulianCalendar.cs
- SqlDataSourceStatusEventArgs.cs
- FileDataSourceCache.cs
- TemplateBindingExpression.cs
- ScriptControlDescriptor.cs
- ExpressionWriter.cs
- XmlDataProvider.cs
- SmtpTransport.cs
- GetMemberBinder.cs
- ObjRef.cs
- ImageAnimator.cs
- SqlDataRecord.cs
- CodeSnippetExpression.cs
- ContainerVisual.cs
- RewritingValidator.cs
- KeyValuePairs.cs
- EndpointConfigContainer.cs
- IOException.cs
- ComponentResourceKey.cs
- BCryptHashAlgorithm.cs
- DateBoldEvent.cs
- IntSecurity.cs
- XPathParser.cs
- SchemaCollectionCompiler.cs
- PerspectiveCamera.cs
- ContextMenuStrip.cs
- PathGradientBrush.cs
- ScriptingJsonSerializationSection.cs
- ComponentChangedEvent.cs
- RSAPKCS1SignatureFormatter.cs
- WsdlInspector.cs
- WindowExtensionMethods.cs
- RequestBringIntoViewEventArgs.cs
- InitializerFacet.cs
- ArrayElementGridEntry.cs
- HashCryptoHandle.cs
- HwndHostAutomationPeer.cs
- TextDecorationCollection.cs
- ScrollProperties.cs
- XMLSyntaxException.cs
- ScrollEvent.cs
- EntitySqlQueryCacheEntry.cs
- RadioButtonFlatAdapter.cs
- SocketException.cs
- ImageCodecInfoPrivate.cs
- LocationUpdates.cs
- IndexedString.cs
- TraceAsyncResult.cs
- AssociationEndMember.cs
- WSDualHttpBinding.cs
- EUCJPEncoding.cs
- Attributes.cs