Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1 / 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)
{
//
_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
- HtmlMeta.cs
- GeometryModel3D.cs
- DbMetaDataCollectionNames.cs
- XmlNamespaceMapping.cs
- Screen.cs
- WebPartChrome.cs
- CDSsyncETWBCLProvider.cs
- VarInfo.cs
- SchemaSetCompiler.cs
- HyperlinkAutomationPeer.cs
- Fonts.cs
- DeobfuscatingStream.cs
- XmlSchemaComplexType.cs
- DataGridViewComboBoxEditingControl.cs
- ProgressPage.cs
- Span.cs
- ToolStripSettings.cs
- DocumentGridPage.cs
- AdjustableArrowCap.cs
- TemplateControl.cs
- TcpConnectionPoolSettings.cs
- SafeArrayTypeMismatchException.cs
- GridViewSelectEventArgs.cs
- HtmlInputImage.cs
- IDQuery.cs
- _NativeSSPI.cs
- SqlConnectionStringBuilder.cs
- SettingsSection.cs
- CollectionType.cs
- Transform3DGroup.cs
- ChannelDemuxer.cs
- XmlWhitespace.cs
- NativeMethods.cs
- WrappedReader.cs
- Stroke.cs
- MsmqChannelFactoryBase.cs
- SizeAnimationClockResource.cs
- MobileUserControl.cs
- WebServiceTypeData.cs
- SecurityManager.cs
- IDReferencePropertyAttribute.cs
- GroupItem.cs
- WebPartZoneBase.cs
- FormViewUpdateEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- FlowLayoutPanelDesigner.cs
- BaseComponentEditor.cs
- ProxyHwnd.cs
- GeneralTransform3DTo2DTo3D.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AssemblyAttributesGoHere.cs
- DataGridViewColumnTypePicker.cs
- DriveInfo.cs
- SqlCacheDependencySection.cs
- SqlError.cs
- CodeVariableDeclarationStatement.cs
- MessageSecurityProtocol.cs
- WebPartMenuStyle.cs
- StaticSiteMapProvider.cs
- HyperlinkAutomationPeer.cs
- KnownTypesHelper.cs
- XPathDocument.cs
- WindowsSecurityTokenAuthenticator.cs
- TextProperties.cs
- GeneralTransformGroup.cs
- ToolStripOverflow.cs
- InstanceDataCollection.cs
- SimpleWorkerRequest.cs
- UInt32Storage.cs
- ContentPosition.cs
- DetailsViewDeleteEventArgs.cs
- WindowsMenu.cs
- String.cs
- coordinator.cs
- FactoryMaker.cs
- Pair.cs
- RemotingConfigParser.cs
- ProcessThread.cs
- XmlDataSourceView.cs
- SafeLocalMemHandle.cs
- TdsParserSessionPool.cs
- TypeDelegator.cs
- Rfc2898DeriveBytes.cs
- TemplatePropertyEntry.cs
- ServerType.cs
- JsonEncodingStreamWrapper.cs
- MatchAttribute.cs
- SqlErrorCollection.cs
- TakeOrSkipQueryOperator.cs
- initElementDictionary.cs
- HostingPreferredMapPath.cs
- VsPropertyGrid.cs
- BitmapEffectDrawingContextWalker.cs
- CommandArguments.cs
- ECDiffieHellmanCng.cs
- SystemColors.cs
- XmlStreamStore.cs
- TabPage.cs
- DatagridviewDisplayedBandsData.cs
- OdbcPermission.cs