Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOExtraFieldPaddingElement.cs
- PageContentCollection.cs
- SecurityDocument.cs
- XsdSchemaFileEditor.cs
- Material.cs
- FocusManager.cs
- DataServiceRequestOfT.cs
- UInt16Converter.cs
- TabItem.cs
- Point3DCollection.cs
- XmlSerializerFactory.cs
- NativeRecognizer.cs
- AuthenticationConfig.cs
- XmlSchemaIdentityConstraint.cs
- HtmlValidatorAdapter.cs
- HandlerBase.cs
- StatusBarItemAutomationPeer.cs
- ReflectionTypeLoadException.cs
- FloaterParagraph.cs
- ExtenderProvidedPropertyAttribute.cs
- FunctionQuery.cs
- PeerReferralPolicy.cs
- Transform.cs
- PageCatalogPart.cs
- AppearanceEditorPart.cs
- TextContainerHelper.cs
- MouseDevice.cs
- TagMapInfo.cs
- SmtpException.cs
- CodeIdentifiers.cs
- MetabaseSettings.cs
- LinqDataSourceDisposeEventArgs.cs
- DataGridViewCellEventArgs.cs
- SafeRegistryKey.cs
- ConnectionAcceptor.cs
- Crc32.cs
- ToolBar.cs
- DesignObjectWrapper.cs
- InheritablePropertyChangeInfo.cs
- CodeSpit.cs
- StaticSiteMapProvider.cs
- DynamicDocumentPaginator.cs
- UnsafeNetInfoNativeMethods.cs
- SpellerInterop.cs
- NgenServicingAttributes.cs
- ObjectListFieldsPage.cs
- DataListDesigner.cs
- SystemTcpConnection.cs
- QueuePathEditor.cs
- MenuItem.cs
- RelatedEnd.cs
- AutoGeneratedField.cs
- SelectionWordBreaker.cs
- AsyncContentLoadedEventArgs.cs
- CodeMemberEvent.cs
- XslTransform.cs
- XmlWrappingWriter.cs
- ViewStateException.cs
- SmtpNtlmAuthenticationModule.cs
- HMACSHA1.cs
- Profiler.cs
- ParenExpr.cs
- DebugView.cs
- Window.cs
- GlobalEventManager.cs
- DispatcherEventArgs.cs
- EventPrivateKey.cs
- InstanceData.cs
- AsnEncodedData.cs
- SqlBooleanizer.cs
- Overlapped.cs
- MappingModelBuildProvider.cs
- StylusPointCollection.cs
- GifBitmapDecoder.cs
- ToolStripGrip.cs
- XmlSchemaAttribute.cs
- TypeValidationEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- DateTimeConstantAttribute.cs
- EllipticalNodeOperations.cs
- CodeNamespaceCollection.cs
- Point3DCollectionConverter.cs
- XPathSelectionIterator.cs
- MouseGestureValueSerializer.cs
- BooleanAnimationUsingKeyFrames.cs
- ClientViaElement.cs
- BaseValidator.cs
- List.cs
- WorkItem.cs
- EntityCommand.cs
- SqlFactory.cs
- LineInfo.cs
- CollectionChangeEventArgs.cs
- XmlSchemaSimpleTypeUnion.cs
- ValidatingReaderNodeData.cs
- MatrixTransform.cs
- ElementHostPropertyMap.cs
- ErrorFormatterPage.cs
- ErrorHandlerFaultInfo.cs
- RuntimeIdentifierPropertyAttribute.cs