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
- FormsAuthentication.cs
- TCEAdapterGenerator.cs
- TabControl.cs
- safemediahandle.cs
- NamespaceDisplay.xaml.cs
- SoapSchemaMember.cs
- RelatedView.cs
- Currency.cs
- CodeLabeledStatement.cs
- FileReservationCollection.cs
- ContextDataSource.cs
- List.cs
- MarkupObject.cs
- XmlAttributeAttribute.cs
- HttpCachePolicyElement.cs
- DesignerAttributeInfo.cs
- _RequestLifetimeSetter.cs
- Tokenizer.cs
- PrimitiveXmlSerializers.cs
- WebSysDisplayNameAttribute.cs
- SimpleType.cs
- DataGridViewAccessibleObject.cs
- TrackingLocationCollection.cs
- Cloud.cs
- BoolExpressionVisitors.cs
- ButtonAutomationPeer.cs
- XXXInfos.cs
- DataGridRowDetailsEventArgs.cs
- SecurityPermission.cs
- DataBoundControlParameterTarget.cs
- File.cs
- DeclarativeCatalogPart.cs
- RemotingAttributes.cs
- Axis.cs
- WebPartConnectionCollection.cs
- FileLevelControlBuilderAttribute.cs
- CodeGenerator.cs
- TimeManager.cs
- EventMappingSettingsCollection.cs
- GridViewPageEventArgs.cs
- TableParagraph.cs
- AnimationLayer.cs
- LogArchiveSnapshot.cs
- ObjectContextServiceProvider.cs
- StringComparer.cs
- BrowserCapabilitiesFactoryBase.cs
- WebRequestModuleElement.cs
- NameValueFileSectionHandler.cs
- EllipseGeometry.cs
- FunctionMappingTranslator.cs
- ToolBarButton.cs
- AnnotationObservableCollection.cs
- Win32.cs
- ScrollData.cs
- WorkflowHostingResponseContext.cs
- EmptyControlCollection.cs
- UrlMappingsSection.cs
- Binding.cs
- RelationshipManager.cs
- SettingsBase.cs
- TextPointer.cs
- hebrewshape.cs
- StyleCollection.cs
- XmlAnyElementAttributes.cs
- AuthorizationRuleCollection.cs
- CodeIterationStatement.cs
- SoapCodeExporter.cs
- mediapermission.cs
- FilteredDataSetHelper.cs
- CapacityStreamGeometryContext.cs
- GridViewRow.cs
- NavigationPropertyEmitter.cs
- WorkflowServiceBehavior.cs
- XsdValidatingReader.cs
- dsa.cs
- CriticalHandle.cs
- FormatException.cs
- Button.cs
- HtmlTableCellCollection.cs
- ZipIOBlockManager.cs
- DataRelationCollection.cs
- ToggleButtonAutomationPeer.cs
- PenContexts.cs
- UpdateRecord.cs
- Model3DCollection.cs
- DbProviderManifest.cs
- InvalidCastException.cs
- QueryPrefixOp.cs
- TrackingMemoryStream.cs
- StringUtil.cs
- SamlAssertionKeyIdentifierClause.cs
- SecurityDocument.cs
- SafeSecurityHelper.cs
- XmlLinkedNode.cs
- IPCCacheManager.cs
- WindowsGraphics.cs
- FamilyTypeface.cs
- WorkflowTimerService.cs
- InputGestureCollection.cs
- HtmlHead.cs