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
- CreateBookmarkScope.cs
- SafeNativeMethods.cs
- OletxResourceManager.cs
- AttributeQuery.cs
- HtmlElementEventArgs.cs
- ComponentDesigner.cs
- WeakEventTable.cs
- MenuItemBindingCollection.cs
- Int32.cs
- LazyLoadBehavior.cs
- XmlElement.cs
- SliderAutomationPeer.cs
- UpDownBase.cs
- RootDesignerSerializerAttribute.cs
- ObjectDataSource.cs
- CommandDevice.cs
- SHA256.cs
- cache.cs
- SharedPerformanceCounter.cs
- DocumentScope.cs
- CompleteWizardStep.cs
- SecurityManager.cs
- SettingsPropertyValue.cs
- StringPropertyBuilder.cs
- StringWriter.cs
- BaseProcessProtocolHandler.cs
- DictionaryEditChange.cs
- CalendarDesigner.cs
- RuntimeConfigLKG.cs
- D3DImage.cs
- iisPickupDirectory.cs
- SqlDuplicator.cs
- HtmlFormParameterReader.cs
- QueryOperationResponseOfT.cs
- Pair.cs
- SubclassTypeValidator.cs
- TypeReference.cs
- DependencyPropertyConverter.cs
- Visitors.cs
- TranslateTransform.cs
- PackageRelationshipSelector.cs
- DropTarget.cs
- CodeTypeDeclaration.cs
- Timer.cs
- TagPrefixCollection.cs
- RepeatBehaviorConverter.cs
- SerializationAttributes.cs
- Normalizer.cs
- SharedDp.cs
- CustomAttribute.cs
- IdentityNotMappedException.cs
- HostingEnvironmentException.cs
- CFStream.cs
- XmlSerializerVersionAttribute.cs
- Pair.cs
- UnicastIPAddressInformationCollection.cs
- OletxVolatileEnlistment.cs
- UnsafeNativeMethodsTablet.cs
- TextEditor.cs
- MenuItem.cs
- TextPointerBase.cs
- CharacterMetrics.cs
- HitTestParameters.cs
- ServiceModelReg.cs
- ToolstripProfessionalRenderer.cs
- ScrollBarAutomationPeer.cs
- ValidationResult.cs
- TTSEngineProxy.cs
- CryptoStream.cs
- DataTemplateKey.cs
- SqlMethodAttribute.cs
- XmlQueryContext.cs
- RadioButton.cs
- BaseUriHelper.cs
- SoapTypeAttribute.cs
- BaseCodePageEncoding.cs
- Drawing.cs
- SecurityTokenAuthenticator.cs
- TextInfo.cs
- OleDbConnectionFactory.cs
- ParserStreamGeometryContext.cs
- ConfigXmlCDataSection.cs
- MonitoringDescriptionAttribute.cs
- AssertFilter.cs
- DataBindingList.cs
- TextModifierScope.cs
- loginstatus.cs
- FixedSOMFixedBlock.cs
- BufferedGraphics.cs
- SqlDataSourceConfigureSelectPanel.cs
- UnaryNode.cs
- CubicEase.cs
- WebChannelFactory.cs
- SQLDoubleStorage.cs
- Expression.cs
- MobileContainerDesigner.cs
- TabOrder.cs
- ClaimSet.cs
- DocumentXPathNavigator.cs
- ContentPosition.cs