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
- UserMapPath.cs
- MultiPropertyDescriptorGridEntry.cs
- ToolStripDropTargetManager.cs
- InputLanguageEventArgs.cs
- CapiNative.cs
- InputManager.cs
- ValidatingReaderNodeData.cs
- FormsAuthenticationCredentials.cs
- PagesSection.cs
- CallbackValidator.cs
- ReliabilityContractAttribute.cs
- ColumnWidthChangedEvent.cs
- XmlReaderDelegator.cs
- CompilationUtil.cs
- XPathNavigatorReader.cs
- RuntimeHelpers.cs
- Win32Native.cs
- Function.cs
- tibetanshape.cs
- AuthenticationException.cs
- NavigationExpr.cs
- IndependentAnimationStorage.cs
- ChineseLunisolarCalendar.cs
- DataColumnPropertyDescriptor.cs
- DBBindings.cs
- UnsafeNativeMethodsTablet.cs
- WindowsComboBox.cs
- ExpressionBinding.cs
- AttachmentService.cs
- EmptyWithCancelationCheckWorkItem.cs
- ObjectAnimationUsingKeyFrames.cs
- IgnoreSectionHandler.cs
- QueryStatement.cs
- DoWhileDesigner.xaml.cs
- LinqDataSourceView.cs
- DebugHandleTracker.cs
- FormViewPagerRow.cs
- StatusBarDrawItemEvent.cs
- MachineKey.cs
- DesignerObjectListAdapter.cs
- StoryFragments.cs
- ResourceReader.cs
- DataColumnChangeEvent.cs
- Add.cs
- SuppressedPackageProperties.cs
- DiscoveryCallbackBehavior.cs
- EntityStoreSchemaGenerator.cs
- SerTrace.cs
- ResetableIterator.cs
- XamlVector3DCollectionSerializer.cs
- Exceptions.cs
- DataSvcMapFileSerializer.cs
- SqlDataSourceStatusEventArgs.cs
- ThreadNeutralSemaphore.cs
- SoundPlayerAction.cs
- NavigationProperty.cs
- Image.cs
- ListViewEditEventArgs.cs
- WindowInteropHelper.cs
- OptimizerPatterns.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ArgumentDesigner.xaml.cs
- ReadOnlyState.cs
- FreezableCollection.cs
- PrintPreviewDialog.cs
- LinearGradientBrush.cs
- Signature.cs
- XmlBinaryReaderSession.cs
- RawStylusSystemGestureInputReport.cs
- FilteredAttributeCollection.cs
- LinearGradientBrush.cs
- DateTimePicker.cs
- RequestCacheValidator.cs
- WebAdminConfigurationHelper.cs
- ResXResourceSet.cs
- IsolatedStorage.cs
- SQLGuid.cs
- AttachedAnnotation.cs
- MenuEventArgs.cs
- DynamicScriptObject.cs
- ImageMap.cs
- LinkTarget.cs
- SetUserLanguageRequest.cs
- BindingManagerDataErrorEventArgs.cs
- Highlights.cs
- BookmarkResumptionRecord.cs
- DesignDataSource.cs
- PropertyDescriptorCollection.cs
- PropertyPathWorker.cs
- TransportContext.cs
- RoutedUICommand.cs
- ExportOptions.cs
- PolicyStatement.cs
- MenuBindingsEditor.cs
- CqlParser.cs
- Parameter.cs
- ServiceModelPerformanceCounters.cs
- DataGridViewSelectedCellCollection.cs
- DataIdProcessor.cs
- MultipleViewPattern.cs