Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusButtonEventArgs.cs / 1305600 / 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) { // ISSUE_XiaoTu: Do we need any validation here? _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
- NotificationContext.cs
- XPathSelfQuery.cs
- LinqDataSourceContextData.cs
- Matrix3D.cs
- TypeConstant.cs
- IndicShape.cs
- IxmlLineInfo.cs
- SerializationInfoEnumerator.cs
- TraceContextEventArgs.cs
- WhitespaceRuleLookup.cs
- ChineseLunisolarCalendar.cs
- unsafeIndexingFilterStream.cs
- SignatureSummaryDialog.cs
- Transform.cs
- DesignerPainter.cs
- EnumCodeDomSerializer.cs
- FrameworkContentElement.cs
- Win32Native.cs
- PointConverter.cs
- DataMisalignedException.cs
- SignHashRequest.cs
- Label.cs
- ExceptionValidationRule.cs
- AlternateView.cs
- ValueTypeFieldReference.cs
- XmlSchemaCollection.cs
- Aes.cs
- InvalidFilterCriteriaException.cs
- PerformanceCounterPermissionEntry.cs
- Semaphore.cs
- OleDbConnectionFactory.cs
- LiteralTextContainerControlBuilder.cs
- GridEntryCollection.cs
- QueryContinueDragEventArgs.cs
- BitmapEffectInput.cs
- EntityAdapter.cs
- SliderAutomationPeer.cs
- DataSourceSelectArguments.cs
- ApplyTemplatesAction.cs
- Constraint.cs
- CheckBox.cs
- HideDisabledControlAdapter.cs
- CompositeFontFamily.cs
- UIElementParagraph.cs
- TagMapCollection.cs
- HitTestParameters3D.cs
- SchemaTypeEmitter.cs
- TextSelectionHighlightLayer.cs
- ByteFacetDescriptionElement.cs
- IsolatedStoragePermission.cs
- XPathParser.cs
- ThreadStateException.cs
- streamingZipPartStream.cs
- BitmapEffectOutputConnector.cs
- TextBox.cs
- GenericsInstances.cs
- AsymmetricAlgorithm.cs
- DesignSurfaceManager.cs
- ConfigurationElementCollection.cs
- StreamWriter.cs
- DataServiceProviderWrapper.cs
- DateTimeValueSerializerContext.cs
- TypeElementCollection.cs
- CrossContextChannel.cs
- InvokeHandlers.cs
- FontInfo.cs
- SqlFunctionAttribute.cs
- IPGlobalProperties.cs
- RawStylusSystemGestureInputReport.cs
- CodeSnippetExpression.cs
- JsonReaderDelegator.cs
- MessageDecoder.cs
- Stack.cs
- StaticSiteMapProvider.cs
- DiagnosticsConfigurationHandler.cs
- DocumentViewerBase.cs
- DurableInstanceProvider.cs
- TabRenderer.cs
- TypeInfo.cs
- LocalizableResourceBuilder.cs
- NamespaceDisplay.xaml.cs
- DataBoundControlAdapter.cs
- EntityDataSourceChangedEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- Utils.cs
- SqlTransaction.cs
- CodeSnippetTypeMember.cs
- SHA512Managed.cs
- NamespaceCollection.cs
- Msmq4PoisonHandler.cs
- XsdBuildProvider.cs
- DataRelationCollection.cs
- MouseCaptureWithinProperty.cs
- DragEventArgs.cs
- ContractReference.cs
- Literal.cs
- DnsPermission.cs
- PathFigure.cs
- PropertyChangedEventManager.cs
- SqlDataReaderSmi.cs