Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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) { // 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. 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
- FtpRequestCacheValidator.cs
- OleDbConnectionInternal.cs
- XmlAnyAttributeAttribute.cs
- Win32MouseDevice.cs
- ButtonBaseAutomationPeer.cs
- ManagementObjectSearcher.cs
- MinimizableAttributeTypeConverter.cs
- SafePEFileHandle.cs
- HeaderUtility.cs
- CompModSwitches.cs
- ErasingStroke.cs
- DiscoveryClientProtocol.cs
- WebPartTransformerAttribute.cs
- ContextDataSourceView.cs
- RC2CryptoServiceProvider.cs
- SharedStatics.cs
- HtmlInputControl.cs
- MobilePage.cs
- IriParsingElement.cs
- OleDbParameterCollection.cs
- CardSpacePolicyElement.cs
- AuthenticateEventArgs.cs
- ItemAutomationPeer.cs
- HealthMonitoringSection.cs
- NamespaceQuery.cs
- UserControlCodeDomTreeGenerator.cs
- PersonalizationProviderHelper.cs
- XamlDebuggerXmlReader.cs
- InternalMappingException.cs
- PartialCachingAttribute.cs
- ToolStripSettings.cs
- Animatable.cs
- LongMinMaxAggregationOperator.cs
- SmtpFailedRecipientsException.cs
- TreeViewItemAutomationPeer.cs
- DrawingCollection.cs
- CombinedGeometry.cs
- LayoutEditorPart.cs
- odbcmetadatacollectionnames.cs
- FileDialogCustomPlaces.cs
- SortDescriptionCollection.cs
- HttpModule.cs
- OciEnlistContext.cs
- _HTTPDateParse.cs
- AssemblyNameProxy.cs
- InternalCache.cs
- SystemIPv6InterfaceProperties.cs
- CrossContextChannel.cs
- SQLInt32.cs
- Rect.cs
- IndicShape.cs
- ComponentRenameEvent.cs
- UIElementHelper.cs
- SqlBuilder.cs
- XmlSchemaSimpleContent.cs
- WhitespaceRuleReader.cs
- XmlLanguage.cs
- LinearKeyFrames.cs
- AttachedPropertyDescriptor.cs
- CardSpaceSelector.cs
- MobileControlsSectionHelper.cs
- EditorPartDesigner.cs
- CompatibleComparer.cs
- SessionEndedEventArgs.cs
- VerificationAttribute.cs
- Size3D.cs
- XmlSchemaAttributeGroup.cs
- WindowsAuthenticationEventArgs.cs
- Int64Storage.cs
- ControlTemplate.cs
- SamlAdvice.cs
- PocoPropertyAccessorStrategy.cs
- LogicalChannelCollection.cs
- DesignSurfaceEvent.cs
- Identity.cs
- WSDualHttpSecurityMode.cs
- CompilationSection.cs
- ACE.cs
- SmtpNtlmAuthenticationModule.cs
- FileChangesMonitor.cs
- VariableAction.cs
- StackSpiller.Generated.cs
- Stopwatch.cs
- QilPatternVisitor.cs
- NameValueSectionHandler.cs
- IteratorDescriptor.cs
- X509UI.cs
- SingleObjectCollection.cs
- Math.cs
- ActivityExecutionFilter.cs
- RetrieveVirtualItemEventArgs.cs
- GridViewEditEventArgs.cs
- Int32CAMarshaler.cs
- HostedTransportConfigurationBase.cs
- RegisteredScript.cs
- ProfileGroupSettingsCollection.cs
- ListBindableAttribute.cs
- Blend.cs
- GridPatternIdentifiers.cs
- IUnknownConstantAttribute.cs