Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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.
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
- CellConstantDomain.cs
- PathParser.cs
- compensatingcollection.cs
- COM2Properties.cs
- AddInControllerImpl.cs
- MessageDecoder.cs
- ValueOfAction.cs
- Task.cs
- CodeVariableReferenceExpression.cs
- DataGridViewAdvancedBorderStyle.cs
- Decimal.cs
- EmptyStringExpandableObjectConverter.cs
- PrinterSettings.cs
- QilXmlReader.cs
- ScriptResourceDefinition.cs
- DbParameterHelper.cs
- DemultiplexingDispatchMessageFormatter.cs
- Int64.cs
- LicenseProviderAttribute.cs
- HttpRawResponse.cs
- ActivitySurrogate.cs
- IpcChannelHelper.cs
- PerformanceCounterPermission.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TemplateInstanceAttribute.cs
- UnknownBitmapDecoder.cs
- ExecutionContext.cs
- SvcMapFileLoader.cs
- StringDictionary.cs
- ClientCultureInfo.cs
- UpdateTranslator.cs
- OleAutBinder.cs
- DataGridViewTopRowAccessibleObject.cs
- ByeOperationCD1AsyncResult.cs
- LocatorManager.cs
- CqlIdentifiers.cs
- SchemaEntity.cs
- ImmutableAssemblyCacheEntry.cs
- SafeFileMappingHandle.cs
- WriteLine.cs
- NotificationContext.cs
- DecimalStorage.cs
- Convert.cs
- UserControlParser.cs
- VarRemapper.cs
- CacheDict.cs
- ListViewTableRow.cs
- BooleanAnimationUsingKeyFrames.cs
- ByteBufferPool.cs
- CodeObjectCreateExpression.cs
- ExpressionDumper.cs
- AuthenticationSection.cs
- XmlSchemaDocumentation.cs
- EventProperty.cs
- IChannel.cs
- RemotingSurrogateSelector.cs
- ControlParameter.cs
- ToolTipAutomationPeer.cs
- columnmapkeybuilder.cs
- DataViewSettingCollection.cs
- FormViewCommandEventArgs.cs
- hebrewshape.cs
- CursorConverter.cs
- tooltip.cs
- _ConnectStream.cs
- util.cs
- FolderLevelBuildProvider.cs
- XmlSchemaAnnotated.cs
- SpeechRecognizer.cs
- RelOps.cs
- LayoutInformation.cs
- InputLangChangeEvent.cs
- CaseInsensitiveHashCodeProvider.cs
- CompilerHelpers.cs
- LinkUtilities.cs
- AspNetSynchronizationContext.cs
- ParserContext.cs
- Themes.cs
- FilterRepeater.cs
- OleServicesContext.cs
- Coordinator.cs
- TreeViewTemplateSelector.cs
- CommandEventArgs.cs
- FamilyTypefaceCollection.cs
- LinqExpressionNormalizer.cs
- ToolStripScrollButton.cs
- CopyAction.cs
- AtlasWeb.Designer.cs
- ParagraphVisual.cs
- ClipboardData.cs
- RequestQueryParser.cs
- InheritanceContextChangedEventManager.cs
- StandardOleMarshalObject.cs
- BitFlagsGenerator.cs
- Hashtable.cs
- SimpleApplicationHost.cs
- FileUtil.cs
- NullableBoolConverter.cs
- DataSourceXmlSubItemAttribute.cs
- RpcAsyncResult.cs