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
- UInt32Storage.cs
- CompilerGlobalScopeAttribute.cs
- ReceiveActivityDesignerTheme.cs
- Context.cs
- CompiledQuery.cs
- FunctionImportMapping.cs
- FactoryGenerator.cs
- SimpleWorkerRequest.cs
- MexServiceChannelBuilder.cs
- FontFamilyIdentifier.cs
- StrokeNodeData.cs
- LinqDataSourceStatusEventArgs.cs
- CacheEntry.cs
- PagedDataSource.cs
- RefreshEventArgs.cs
- CreateUserWizardStep.cs
- Animatable.cs
- StorageMappingItemCollection.cs
- MsmqTransportSecurityElement.cs
- ArgumentOutOfRangeException.cs
- DataControlButton.cs
- DictationGrammar.cs
- XdrBuilder.cs
- SmiContextFactory.cs
- ValidateNames.cs
- BoundsDrawingContextWalker.cs
- DataGridViewEditingControlShowingEventArgs.cs
- IPipelineRuntime.cs
- XmlArrayItemAttribute.cs
- LinkLabel.cs
- serverconfig.cs
- ValueType.cs
- RuntimeHandles.cs
- AutomationElementCollection.cs
- ServiceTimeoutsBehavior.cs
- TextTreeTextNode.cs
- Binding.cs
- CheckBoxBaseAdapter.cs
- _DisconnectOverlappedAsyncResult.cs
- ListViewAutomationPeer.cs
- PowerModeChangedEventArgs.cs
- HttpContextServiceHost.cs
- XslCompiledTransform.cs
- SaveFileDialog.cs
- WebBrowserPermission.cs
- RunInstallerAttribute.cs
- SmtpTransport.cs
- GregorianCalendarHelper.cs
- EventInfo.cs
- LinearGradientBrush.cs
- WorkflowMarkupElementEventArgs.cs
- CreateUserErrorEventArgs.cs
- SHA1Managed.cs
- Focus.cs
- TraceEventCache.cs
- TableSectionStyle.cs
- ErrorTableItemStyle.cs
- DrawToolTipEventArgs.cs
- ProxyManager.cs
- PropertyBuilder.cs
- Byte.cs
- CompareInfo.cs
- Visual3D.cs
- SelectionBorderGlyph.cs
- DbProviderFactoriesConfigurationHandler.cs
- RuleInfoComparer.cs
- ConfigurationPermission.cs
- FileSecurity.cs
- BinaryConverter.cs
- MetadataCollection.cs
- XmlSerializationGeneratedCode.cs
- PersonalizationProviderCollection.cs
- WebPartChrome.cs
- PointCollectionValueSerializer.cs
- HostingEnvironmentSection.cs
- XhtmlStyleClass.cs
- PnrpPermission.cs
- ValidatingReaderNodeData.cs
- cache.cs
- SizeChangedInfo.cs
- TextViewDesigner.cs
- EntityDataSourceWizardForm.cs
- CategoryList.cs
- WindowsListView.cs
- BaseParagraph.cs
- DataBoundControlHelper.cs
- Automation.cs
- OdbcException.cs
- figurelengthconverter.cs
- DSASignatureFormatter.cs
- XmlArrayItemAttribute.cs
- CompModSwitches.cs
- RuntimeIdentifierPropertyAttribute.cs
- SetStateEventArgs.cs
- SafeNativeMethods.cs
- XmlSchemaComplexType.cs
- InvokePatternIdentifiers.cs
- XmlAnyElementAttributes.cs
- SQLDoubleStorage.cs
- FixedSOMTableRow.cs