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
- ConfigXmlCDataSection.cs
- StreamReader.cs
- ConfigXmlText.cs
- _LoggingObject.cs
- ContextMarshalException.cs
- DataGridViewCellValueEventArgs.cs
- FrameAutomationPeer.cs
- MexTcpBindingCollectionElement.cs
- ObjectIDGenerator.cs
- DataControlReferenceCollection.cs
- SpeakInfo.cs
- TypeDelegator.cs
- ToolStrip.cs
- CodeComment.cs
- DataListAutoFormat.cs
- NotFiniteNumberException.cs
- DataList.cs
- SignatureHelper.cs
- GeneralTransformGroup.cs
- TreeWalkHelper.cs
- SemanticKeyElement.cs
- M3DUtil.cs
- SoapCommonClasses.cs
- SaveFileDialog.cs
- HijriCalendar.cs
- ConfigurationPermission.cs
- PrinterSettings.cs
- ScrollItemPatternIdentifiers.cs
- ProfileManager.cs
- Stack.cs
- Vector3DConverter.cs
- QilReference.cs
- WebPartUtil.cs
- AttachedAnnotationChangedEventArgs.cs
- AutomationFocusChangedEventArgs.cs
- LoginUtil.cs
- __Error.cs
- _OSSOCK.cs
- SessionConnectionReader.cs
- Propagator.JoinPropagator.cs
- ReferenceConverter.cs
- HtmlInputControl.cs
- Trace.cs
- CardSpaceException.cs
- CompilationRelaxations.cs
- ElementAction.cs
- QuotedStringWriteStateInfo.cs
- Point3DAnimation.cs
- ConfigurationSectionCollection.cs
- ListControlDataBindingHandler.cs
- EnumCodeDomSerializer.cs
- WebBrowserHelper.cs
- WindowsStatusBar.cs
- BindingNavigatorDesigner.cs
- Icon.cs
- ViewStateException.cs
- ObjectManager.cs
- AssemblyNameProxy.cs
- mediaclock.cs
- StaticResourceExtension.cs
- Utility.cs
- odbcmetadatafactory.cs
- TrustVersion.cs
- MasterPageParser.cs
- SplitterPanel.cs
- DelayedRegex.cs
- Hex.cs
- CodeRemoveEventStatement.cs
- Table.cs
- SemaphoreSecurity.cs
- SharedPerformanceCounter.cs
- SecurityTokenContainer.cs
- TraceUtility.cs
- ZoneIdentityPermission.cs
- ListBoxItemWrapperAutomationPeer.cs
- AppModelKnownContentFactory.cs
- iisPickupDirectory.cs
- mactripleDES.cs
- LineBreakRecord.cs
- OutputScopeManager.cs
- ExpressionEditor.cs
- InstanceOwnerQueryResult.cs
- ViewKeyConstraint.cs
- StreamedWorkflowDefinitionContext.cs
- ComponentDispatcher.cs
- WhileDesigner.cs
- UserMapPath.cs
- PropertyIDSet.cs
- FormattedTextSymbols.cs
- ManagementBaseObject.cs
- UpDownBase.cs
- DispatchOperation.cs
- AutomationAttributeInfo.cs
- basecomparevalidator.cs
- EDesignUtil.cs
- StaticSiteMapProvider.cs
- TreeNodeConverter.cs
- BuildProviderCollection.cs
- TypeDescriptor.cs
- MailAddress.cs