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
- XmlValueConverter.cs
- sqlstateclientmanager.cs
- MemberCollection.cs
- SettingsPropertyCollection.cs
- TrackBarRenderer.cs
- InplaceBitmapMetadataWriter.cs
- NullableConverter.cs
- EventLogEntryCollection.cs
- Timer.cs
- CannotUnloadAppDomainException.cs
- AspNetSynchronizationContext.cs
- FilteredReadOnlyMetadataCollection.cs
- SkipStoryboardToFill.cs
- SystemBrushes.cs
- AbsoluteQuery.cs
- BrowserInteropHelper.cs
- IIS7UserPrincipal.cs
- EventHandlersStore.cs
- IndependentAnimationStorage.cs
- SiteMapNodeItemEventArgs.cs
- KeyBinding.cs
- GlyphTypeface.cs
- CodeParameterDeclarationExpression.cs
- TextBounds.cs
- ProfileEventArgs.cs
- ISAPIWorkerRequest.cs
- XmlDataImplementation.cs
- DesignRelation.cs
- TrackingSection.cs
- BaseProcessProtocolHandler.cs
- BlockingCollection.cs
- FunctionDetailsReader.cs
- DbProviderServices.cs
- TabPanel.cs
- SystemGatewayIPAddressInformation.cs
- XmlSchemaAll.cs
- VariantWrapper.cs
- FilterQuery.cs
- CfgRule.cs
- EdmEntityTypeAttribute.cs
- ListBoxItemWrapperAutomationPeer.cs
- NameValuePair.cs
- DynamicControl.cs
- nulltextnavigator.cs
- XmlArrayAttribute.cs
- Rotation3D.cs
- GridViewPageEventArgs.cs
- ToolStripItemRenderEventArgs.cs
- CurrentTimeZone.cs
- EntityRecordInfo.cs
- XslVisitor.cs
- AnnotationService.cs
- XmlDocumentType.cs
- ResetableIterator.cs
- InvalidEnumArgumentException.cs
- TargetConverter.cs
- XmlFormatMapping.cs
- SubpageParaClient.cs
- Visitors.cs
- PageBuildProvider.cs
- PageClientProxyGenerator.cs
- GetWinFXPath.cs
- SrgsNameValueTag.cs
- IOException.cs
- HebrewCalendar.cs
- RepeatBehavior.cs
- StorageEntityTypeMapping.cs
- DataError.cs
- PreservationFileReader.cs
- DefaultValueConverter.cs
- CodeDOMUtility.cs
- XmlSerializationReader.cs
- PartialTrustVisibleAssemblyCollection.cs
- RSAProtectedConfigurationProvider.cs
- UIServiceHelper.cs
- Atom10FormatterFactory.cs
- ListItemCollection.cs
- CSharpCodeProvider.cs
- TextRange.cs
- DeploymentExceptionMapper.cs
- AuthenticateEventArgs.cs
- HierarchicalDataSourceDesigner.cs
- Splitter.cs
- BinaryNode.cs
- ToolBarButton.cs
- ReadWriteObjectLock.cs
- SweepDirectionValidation.cs
- HttpErrorTraceRecord.cs
- SqlDataSourceWizardForm.cs
- SqlError.cs
- ListDictionaryInternal.cs
- DictionaryKeyPropertyAttribute.cs
- securitycriticaldataformultiplegetandset.cs
- XamlSerializer.cs
- DebugController.cs
- ConstantSlot.cs
- NotCondition.cs
- InvokePatternIdentifiers.cs
- XmlSchemaValidator.cs
- DataGridPageChangedEventArgs.cs