Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PageHandlerFactory.cs
- MetadataCache.cs
- ScrollEventArgs.cs
- OpenTypeLayoutCache.cs
- EntryPointNotFoundException.cs
- ConstrainedDataObject.cs
- LambdaCompiler.Address.cs
- EncoderExceptionFallback.cs
- NavigationService.cs
- Membership.cs
- StateDesigner.Helpers.cs
- XmlSchemaGroupRef.cs
- FixedSOMSemanticBox.cs
- ProfileManager.cs
- WebPartConnectionsCancelEventArgs.cs
- TargetException.cs
- MasterPageBuildProvider.cs
- ContextProperty.cs
- Wizard.cs
- SystemResourceKey.cs
- StreamReader.cs
- iisPickupDirectory.cs
- ForceCopyBuildProvider.cs
- ReflectTypeDescriptionProvider.cs
- InteropBitmapSource.cs
- ComboBoxAutomationPeer.cs
- XmlSchemaSimpleContentRestriction.cs
- AsymmetricKeyExchangeFormatter.cs
- CustomValidator.cs
- DummyDataSource.cs
- FrugalMap.cs
- CorePropertiesFilter.cs
- ContextMarshalException.cs
- HtmlInputPassword.cs
- Behavior.cs
- XmlResolver.cs
- SchemaObjectWriter.cs
- FunctionGenerator.cs
- HtmlTable.cs
- RuleAttributes.cs
- CheckBox.cs
- wgx_render.cs
- RegisteredArrayDeclaration.cs
- SynchronizationContext.cs
- CodeParameterDeclarationExpressionCollection.cs
- ThicknessKeyFrameCollection.cs
- ConnectionManager.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Symbol.cs
- SqlNodeAnnotations.cs
- OutputChannel.cs
- CSharpCodeProvider.cs
- ExpandableObjectConverter.cs
- XhtmlBasicCommandAdapter.cs
- Int64Storage.cs
- EntityDataSourceContextDisposingEventArgs.cs
- XmlAttributeProperties.cs
- TypeBuilder.cs
- XmlAnyElementAttribute.cs
- ObjectDataSourceView.cs
- TabPage.cs
- BaseAddressPrefixFilterElementCollection.cs
- Control.cs
- SafeViewOfFileHandle.cs
- AvtEvent.cs
- SemanticResolver.cs
- WebServiceClientProxyGenerator.cs
- InvalidFilterCriteriaException.cs
- DeleteMemberBinder.cs
- IssuedTokenParametersElement.cs
- RoleManagerModule.cs
- ListViewTableRow.cs
- BitmapCodecInfo.cs
- StyleSheet.cs
- DecimalConstantAttribute.cs
- TraceData.cs
- SafeLocalMemHandle.cs
- SystemResources.cs
- CategoryNameCollection.cs
- CacheChildrenQuery.cs
- XmlIlVisitor.cs
- XmlSchemaImport.cs
- NetworkInterface.cs
- DataControlImageButton.cs
- DescendantOverDescendantQuery.cs
- MetabaseServerConfig.cs
- EventLogPermission.cs
- CodeTypeOfExpression.cs
- CharacterHit.cs
- SelectionPattern.cs
- QuotedPrintableStream.cs
- FilteredAttributeCollection.cs
- XmlSchemaSubstitutionGroup.cs
- PropertyDescriptor.cs
- PopupControlService.cs
- XPathDocumentNavigator.cs
- AlignmentXValidation.cs
- WebPartConnectionCollection.cs
- ParameterCollection.cs
- RepeaterItemEventArgs.cs