Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1305600 / 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.
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
- HtmlElementEventArgs.cs
- CustomAttribute.cs
- ToolStripSplitButton.cs
- DataTemplate.cs
- SchemaElementDecl.cs
- AspCompat.cs
- PageParserFilter.cs
- SourceFilter.cs
- Codec.cs
- StandardCommandToolStripMenuItem.cs
- NumericUpDownAccelerationCollection.cs
- AssemblyAttributes.cs
- DirectoryRedirect.cs
- WebFormDesignerActionService.cs
- MethodBody.cs
- ClosableStream.cs
- BitmapEffectCollection.cs
- FtpWebResponse.cs
- Walker.cs
- XmlDocumentViewSchema.cs
- DrawingBrush.cs
- ProvideValueServiceProvider.cs
- MessageBox.cs
- WebContext.cs
- SiteOfOriginContainer.cs
- AppDomainProtocolHandler.cs
- UnionQueryOperator.cs
- TargetConverter.cs
- HtmlAnchor.cs
- XmlSchemaAnnotated.cs
- ImageSourceValueSerializer.cs
- IPHostEntry.cs
- Msmq4SubqueuePoisonHandler.cs
- StorageAssociationSetMapping.cs
- ListViewItem.cs
- FileLoadException.cs
- ImageIndexEditor.cs
- RootDesignerSerializerAttribute.cs
- BinaryReader.cs
- ValidationResult.cs
- SafeMemoryMappedFileHandle.cs
- WebRequestModulesSection.cs
- EventLog.cs
- ExceptionUtil.cs
- Convert.cs
- Operand.cs
- SqlParameter.cs
- SystemIPGlobalStatistics.cs
- DataSet.cs
- StringBuilder.cs
- ResourceReferenceExpression.cs
- ChooseAction.cs
- ExecutedRoutedEventArgs.cs
- IpcChannelHelper.cs
- ApplicationHost.cs
- MachineKeyConverter.cs
- QueryCursorEventArgs.cs
- GenericIdentity.cs
- HttpRequestWrapper.cs
- SimplePropertyEntry.cs
- ISFTagAndGuidCache.cs
- InternalSendMessage.cs
- SchemaInfo.cs
- UIPropertyMetadata.cs
- EdmComplexTypeAttribute.cs
- PersonalizationState.cs
- FrameworkTextComposition.cs
- XmlResolver.cs
- SystemIcons.cs
- DictionarySectionHandler.cs
- Solver.cs
- ExpressionParser.cs
- SplineKeyFrames.cs
- WindowsStatusBar.cs
- PreloadedPackages.cs
- ObjectManager.cs
- XamlSerializer.cs
- StaticResourceExtension.cs
- DrawingCollection.cs
- fixedPageContentExtractor.cs
- TableLayoutRowStyleCollection.cs
- CheckBox.cs
- GradientStopCollection.cs
- SplitContainerDesigner.cs
- ProcessingInstructionAction.cs
- AddingNewEventArgs.cs
- HotCommands.cs
- CodeDirectiveCollection.cs
- DragSelectionMessageFilter.cs
- Size.cs
- DataColumnCollection.cs
- ManifestResourceInfo.cs
- WebPartTransformer.cs
- SecurityElement.cs
- OleDbConnection.cs
- CompositeActivityValidator.cs
- Base64Decoder.cs
- DefaultValueAttribute.cs
- RuntimeUtils.cs
- TreeView.cs