Code:
/ 4.0 / 4.0 / 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. 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
- ArrangedElement.cs
- PackWebResponse.cs
- DebugManager.cs
- BuildProvidersCompiler.cs
- ObjectStateManager.cs
- StringArrayConverter.cs
- DataGridViewLayoutData.cs
- SafeFileMappingHandle.cs
- ServiceDefaults.cs
- ResourcesChangeInfo.cs
- InterleavedZipPartStream.cs
- Button.cs
- TemplateControl.cs
- TextPattern.cs
- FixedPosition.cs
- RowsCopiedEventArgs.cs
- DetailsViewPageEventArgs.cs
- DataControlImageButton.cs
- LambdaReference.cs
- EventMappingSettings.cs
- CorrelationManager.cs
- DataGrid.cs
- GeneralTransform3D.cs
- TailCallAnalyzer.cs
- MarkedHighlightComponent.cs
- ListBoxDesigner.cs
- Enum.cs
- MultiSelector.cs
- CodeAttributeArgument.cs
- SqlUtils.cs
- LinqDataSourceDeleteEventArgs.cs
- MappedMetaModel.cs
- SparseMemoryStream.cs
- StringInfo.cs
- CollectionDataContractAttribute.cs
- FlowLayout.cs
- ErrorHandler.cs
- Model3D.cs
- DSACryptoServiceProvider.cs
- TypeUnloadedException.cs
- XmlSchemaParticle.cs
- DocumentPage.cs
- EventBookmark.cs
- Pair.cs
- ListBindingHelper.cs
- TreeBuilderBamlTranslator.cs
- LinqMaximalSubtreeNominator.cs
- EncodingInfo.cs
- AdCreatedEventArgs.cs
- BuilderElements.cs
- DialogBaseForm.cs
- LongValidatorAttribute.cs
- ArrangedElement.cs
- DesignTimeVisibleAttribute.cs
- PenContext.cs
- CallbackValidatorAttribute.cs
- BuiltInExpr.cs
- SafeFileMapViewHandle.cs
- Matrix.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Material.cs
- BitmapEffectDrawingContextState.cs
- MembershipSection.cs
- CLSCompliantAttribute.cs
- DataListGeneralPage.cs
- InternalRelationshipCollection.cs
- EntityContainerRelationshipSet.cs
- XPathEmptyIterator.cs
- FixedSOMLineRanges.cs
- WebCategoryAttribute.cs
- HashCodeCombiner.cs
- ProviderUtil.cs
- XmlNullResolver.cs
- Dump.cs
- DataGridViewLinkColumn.cs
- mediaeventshelper.cs
- XComponentModel.cs
- ArrayWithOffset.cs
- ObjectSelectorEditor.cs
- GeometryCombineModeValidation.cs
- PointLight.cs
- SystemWebCachingSectionGroup.cs
- HostingPreferredMapPath.cs
- QueryStringHandler.cs
- Drawing.cs
- HttpChannelHelper.cs
- RegexRunner.cs
- PasswordDeriveBytes.cs
- DbDataAdapter.cs
- Queue.cs
- PerformanceCounterPermissionEntryCollection.cs
- ModuleConfigurationInfo.cs
- XmlAttributes.cs
- IgnoreSectionHandler.cs
- DetailsViewInsertEventArgs.cs
- GeneratedCodeAttribute.cs
- TriggerAction.cs
- PartialTrustHelpers.cs
- ItemsPresenter.cs
- Closure.cs