Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1 / StylusDownEventArgs.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Windows.Media;
namespace System.Windows.Input
{
/////////////////////////////////////////////////////////////////////////
///
///Event argument used to subscribe to StylusDown events.
///
public class StylusDownEventArgs : StylusEventArgs
{
/////////////////////////////////////////////////////////////////////
///
/// Initializes a new instance of the StylusDownEventArgs class.
///
///
/// The logical Stylus device associated with this event.
///
///
/// The time when the input occured.
///
public StylusDownEventArgs(
StylusDevice stylusDevice, int timestamp)
:
base(stylusDevice, timestamp)
{
}
///
/// Read access to the stylus tap count.
///
public int TapCount
{
get {return StylusDevice.TapCount;}
}
/////////////////////////////////////////////////////////////////////
///
/// 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)
{
StylusDownEventHandler handler = (StylusDownEventHandler)genericHandler;
handler(genericTarget, this);
}
}
}
// 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
- SafeEventLogReadHandle.cs
- DataControlField.cs
- XmlEntity.cs
- NativeRecognizer.cs
- GuidConverter.cs
- BitmapEffectDrawingContextWalker.cs
- SecurityHelper.cs
- PrimaryKeyTypeConverter.cs
- Win32Exception.cs
- CharAnimationUsingKeyFrames.cs
- OleAutBinder.cs
- IsolatedStorageFilePermission.cs
- PresentationSource.cs
- XhtmlConformanceSection.cs
- EnumType.cs
- CanExecuteRoutedEventArgs.cs
- FormattedTextSymbols.cs
- Site.cs
- ConditionCollection.cs
- RijndaelManagedTransform.cs
- VerificationException.cs
- WebSysDefaultValueAttribute.cs
- GridViewCellAutomationPeer.cs
- ConfigurationManagerInternal.cs
- TypeUtil.cs
- TypeEnumerableViewSchema.cs
- URL.cs
- Activity.cs
- TraceUtility.cs
- ClientProtocol.cs
- LoginDesigner.cs
- TCPClient.cs
- TimersDescriptionAttribute.cs
- AssemblyName.cs
- SessionParameter.cs
- PropertyPath.cs
- SyndicationSerializer.cs
- ScriptResourceInfo.cs
- ElementHostAutomationPeer.cs
- InkCanvasSelection.cs
- HtmlValidationSummaryAdapter.cs
- TextSchema.cs
- FrameAutomationPeer.cs
- DesignSurfaceEvent.cs
- SchemaTableColumn.cs
- ManagementEventArgs.cs
- Int64Converter.cs
- WhitespaceRule.cs
- XmlNodeList.cs
- WindowsComboBox.cs
- ConvertEvent.cs
- WebSysDescriptionAttribute.cs
- DataServiceQueryProvider.cs
- FastEncoder.cs
- UiaCoreProviderApi.cs
- TransformDescriptor.cs
- ArrangedElement.cs
- XPathNavigatorKeyComparer.cs
- DataObject.cs
- BitmapEffectvisualstate.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- IisTraceListener.cs
- HyperlinkAutomationPeer.cs
- SqlSupersetValidator.cs
- BlobPersonalizationState.cs
- DocComment.cs
- DbExpressionVisitor_TResultType.cs
- DesignTableCollection.cs
- ValidationHelper.cs
- StackSpiller.Bindings.cs
- MtomMessageEncodingBindingElement.cs
- ProxyGenerator.cs
- ComplexTypeEmitter.cs
- ReverseInheritProperty.cs
- OracleParameterBinding.cs
- TextTreeInsertElementUndoUnit.cs
- IndexOutOfRangeException.cs
- SQLBinaryStorage.cs
- HttpPostLocalhostServerProtocol.cs
- LocalizabilityAttribute.cs
- TdsParameterSetter.cs
- RecognizerInfo.cs
- FileDialog.cs
- IntegerValidatorAttribute.cs
- ListControl.cs
- Typeface.cs
- FormsAuthenticationEventArgs.cs
- ConsoleTraceListener.cs
- PropertyCondition.cs
- SequentialUshortCollection.cs
- StateMachineWorkflow.cs
- PointCollectionConverter.cs
- RangeBaseAutomationPeer.cs
- BinaryNegotiation.cs
- BitmapEffectOutputConnector.cs
- OdbcHandle.cs
- HostingEnvironmentException.cs
- GiveFeedbackEventArgs.cs
- PropVariant.cs
- SchemaNamespaceManager.cs