Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ExtensionDataObject.cs
- ManagementOptions.cs
- PerfCounterSection.cs
- FontConverter.cs
- PackUriHelper.cs
- ClientFormsAuthenticationMembershipProvider.cs
- Int32Rect.cs
- EncodingInfo.cs
- CqlGenerator.cs
- XmlQuerySequence.cs
- SettingsAttributeDictionary.cs
- RadioButtonList.cs
- NetworkInterface.cs
- FreezableCollection.cs
- TextBox.cs
- CompositeFontFamily.cs
- BrowserDefinitionCollection.cs
- FileCodeGroup.cs
- GenericAuthenticationEventArgs.cs
- LogReserveAndAppendState.cs
- PropertyManager.cs
- FixedSOMContainer.cs
- BufferedGraphicsManager.cs
- SelectedGridItemChangedEvent.cs
- Animatable.cs
- OutputWindow.cs
- HostSecurityManager.cs
- DisplayNameAttribute.cs
- HwndStylusInputProvider.cs
- AuthorizationRuleCollection.cs
- XmlSchemaAnyAttribute.cs
- ResumeStoryboard.cs
- FileSystemEventArgs.cs
- WebConfigurationHostFileChange.cs
- BCLDebug.cs
- InfiniteTimeSpanConverter.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- VarRemapper.cs
- XPathNodeList.cs
- ExtendedPropertyDescriptor.cs
- LicenseProviderAttribute.cs
- DataGridRow.cs
- HitTestDrawingContextWalker.cs
- StandardTransformFactory.cs
- DebugView.cs
- MenuAutomationPeer.cs
- LabelEditEvent.cs
- StrokeFIndices.cs
- SrgsOneOf.cs
- SystemWebCachingSectionGroup.cs
- ScrollContentPresenter.cs
- SystemInformation.cs
- OutputCacheSettings.cs
- MetadataItemEmitter.cs
- TextPenaltyModule.cs
- DefinitionProperties.cs
- HttpModuleActionCollection.cs
- EdmToObjectNamespaceMap.cs
- LoadedOrUnloadedOperation.cs
- Serializer.cs
- ClickablePoint.cs
- SByte.cs
- PartialCachingAttribute.cs
- streamingZipPartStream.cs
- RoutedPropertyChangedEventArgs.cs
- SharedUtils.cs
- UrlPropertyAttribute.cs
- VirtualizedItemProviderWrapper.cs
- ToolStripContentPanelDesigner.cs
- AnnotationResource.cs
- RolePrincipal.cs
- CopyEncoder.cs
- TraceSource.cs
- DateTimeConverter2.cs
- CustomValidator.cs
- FloaterParaClient.cs
- PeerContact.cs
- Config.cs
- CheckBoxFlatAdapter.cs
- TileBrush.cs
- BooleanConverter.cs
- FileDialogCustomPlacesCollection.cs
- StringBlob.cs
- DataError.cs
- TabControl.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DSASignatureDeformatter.cs
- UrlPath.cs
- ColumnMapVisitor.cs
- CryptoApi.cs
- ConfigurationException.cs
- DoubleLink.cs
- DependencyPropertyValueSerializer.cs
- LookupBindingPropertiesAttribute.cs
- WeakReference.cs
- Journal.cs
- XsdCachingReader.cs
- ReliableMessagingHelpers.cs
- WebPartManagerInternals.cs
- QilScopedVisitor.cs