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
- WindowsGraphicsCacheManager.cs
- UxThemeWrapper.cs
- CodeBinaryOperatorExpression.cs
- EntityConnectionStringBuilder.cs
- RijndaelManaged.cs
- OleStrCAMarshaler.cs
- RuntimeEnvironment.cs
- WindowsFormsSynchronizationContext.cs
- XmlQueryContext.cs
- ExpressionBindingCollection.cs
- Attributes.cs
- Size3D.cs
- DataGridViewBand.cs
- PointCollection.cs
- InteropBitmapSource.cs
- TypeUtil.cs
- PersonalizationAdministration.cs
- ProcessHostFactoryHelper.cs
- RoutedEventValueSerializer.cs
- HtmlElement.cs
- PathData.cs
- Process.cs
- ToolStripLocationCancelEventArgs.cs
- ManagedFilter.cs
- SafeIUnknown.cs
- WebAdminConfigurationHelper.cs
- RegistrySecurity.cs
- ApplicationId.cs
- CallbackValidatorAttribute.cs
- EventDescriptor.cs
- invalidudtexception.cs
- AssemblyBuilder.cs
- SupportingTokenProviderSpecification.cs
- TargetConverter.cs
- Fault.cs
- SafeIUnknown.cs
- RegexCaptureCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlNamespaceManager.cs
- InstanceKeyNotReadyException.cs
- NamespaceDecl.cs
- PropertyHelper.cs
- CodeDomConfigurationHandler.cs
- MemoryStream.cs
- Matrix3DConverter.cs
- IPPacketInformation.cs
- ObjectSecurity.cs
- RangeValidator.cs
- Part.cs
- ReflectEventDescriptor.cs
- FontStyles.cs
- RenderOptions.cs
- Control.cs
- ExtendedProperty.cs
- PublisherIdentityPermission.cs
- NavigationWindowAutomationPeer.cs
- BasePattern.cs
- Crc32Helper.cs
- DesignTimeParseData.cs
- AlignmentYValidation.cs
- WeakKeyDictionary.cs
- StrongTypingException.cs
- XmlException.cs
- TabItemWrapperAutomationPeer.cs
- TextEditor.cs
- InstallerTypeAttribute.cs
- DetailsViewDeleteEventArgs.cs
- ColorInterpolationModeValidation.cs
- DataGridViewCheckBoxColumn.cs
- OutputCacheProfile.cs
- FontStyle.cs
- UpdatePanelTriggerCollection.cs
- FontDialog.cs
- ProviderSettingsCollection.cs
- ChtmlTextWriter.cs
- JumpPath.cs
- initElementDictionary.cs
- FrameworkContentElementAutomationPeer.cs
- ThrowOnMultipleAssignment.cs
- TreeNodeStyle.cs
- RequestedSignatureDialog.cs
- PrintPreviewDialog.cs
- CursorConverter.cs
- CqlParser.cs
- LockedActivityGlyph.cs
- Transform3D.cs
- DirectoryObjectSecurity.cs
- ExpressionDumper.cs
- DateTimeSerializationSection.cs
- XmlSchemaAll.cs
- SafeLibraryHandle.cs
- ConsoleCancelEventArgs.cs
- DrawingGroup.cs
- WorkflowOwnershipException.cs
- ElementsClipboardData.cs
- MetadataCache.cs
- WithParamAction.cs
- BatchStream.cs
- HttpCachePolicy.cs
- StateItem.cs