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
- FormatConvertedBitmap.cs
- ErrorItem.cs
- TextFormatterImp.cs
- ClientApiGenerator.cs
- RuleConditionDialog.Designer.cs
- SiblingIterators.cs
- GridEntry.cs
- NumberFormatter.cs
- HtmlHead.cs
- InplaceBitmapMetadataWriter.cs
- ImageFormat.cs
- SqlDataSourceEnumerator.cs
- XPathArrayIterator.cs
- FormViewUpdateEventArgs.cs
- ActivityExecutionContext.cs
- RectValueSerializer.cs
- SuppressMessageAttribute.cs
- ComponentRenameEvent.cs
- SectionUpdates.cs
- XamlPointCollectionSerializer.cs
- CertificateElement.cs
- BindingList.cs
- ConversionContext.cs
- QilInvokeEarlyBound.cs
- EncryptedType.cs
- AttributeCollection.cs
- HotSpotCollectionEditor.cs
- PropertyGroupDescription.cs
- Queue.cs
- DataGridItemCollection.cs
- DetailsViewInsertedEventArgs.cs
- HitTestDrawingContextWalker.cs
- HtmlTableRowCollection.cs
- RotateTransform.cs
- ToolboxControl.cs
- Menu.cs
- InitializationEventAttribute.cs
- Interfaces.cs
- ObservableCollection.cs
- ToolStripRendererSwitcher.cs
- WindowsTooltip.cs
- XsdBuilder.cs
- TextElementEnumerator.cs
- DispatcherHookEventArgs.cs
- MediaTimeline.cs
- WCFBuildProvider.cs
- RankException.cs
- TableItemProviderWrapper.cs
- BitmapEffectvisualstate.cs
- DescendantQuery.cs
- RuntimeArgumentHandle.cs
- WebEventCodes.cs
- DataGridViewRowCollection.cs
- MetadataSerializer.cs
- CustomError.cs
- Events.cs
- ImageFormatConverter.cs
- XsdBuildProvider.cs
- ColorPalette.cs
- FontStretches.cs
- FormatterServices.cs
- ResourceReader.cs
- ResourcePart.cs
- System.Data.OracleClient_BID.cs
- UserNameSecurityTokenAuthenticator.cs
- WorkflowViewStateService.cs
- WebPartMovingEventArgs.cs
- DLinqColumnProvider.cs
- ConstraintStruct.cs
- VerbConverter.cs
- OleDbError.cs
- WebUtil.cs
- BrowserCapabilitiesCompiler.cs
- CircleHotSpot.cs
- TraceSection.cs
- XmlDigitalSignatureProcessor.cs
- ContainsRowNumberChecker.cs
- XmlSchemaImport.cs
- RectangleConverter.cs
- Inline.cs
- LoginCancelEventArgs.cs
- PrintPageEvent.cs
- CodeIterationStatement.cs
- UIPermission.cs
- FusionWrap.cs
- GridToolTip.cs
- CompensateDesigner.cs
- SynchronizationValidator.cs
- StoryFragments.cs
- ParameterToken.cs
- StaticTextPointer.cs
- IsolatedStoragePermission.cs
- PolyBezierSegmentFigureLogic.cs
- XmlTextAttribute.cs
- StringWriter.cs
- SizeAnimationBase.cs
- Span.cs
- ConfigurationManagerInternal.cs
- ServicePointManager.cs
- ProcessingInstructionAction.cs