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
- EndpointDiscoveryMetadata11.cs
- DBSqlParserTable.cs
- WindowsGrip.cs
- StreamInfo.cs
- Point3D.cs
- WindowsListViewItemStartMenu.cs
- SmtpDateTime.cs
- DataServiceContext.cs
- Thickness.cs
- GenericWebPart.cs
- DataPointer.cs
- SkipQueryOptionExpression.cs
- WindowsToolbarItemAsMenuItem.cs
- ApplicationSecurityInfo.cs
- SchemaImporterExtensionElementCollection.cs
- objectquery_tresulttype.cs
- PropertyPushdownHelper.cs
- DoubleLinkListEnumerator.cs
- DocumentViewerAutomationPeer.cs
- IWorkflowDebuggerService.cs
- HijriCalendar.cs
- SizeIndependentAnimationStorage.cs
- DecodeHelper.cs
- GetLastErrorDetailsRequest.cs
- RequestCacheValidator.cs
- NullableIntMinMaxAggregationOperator.cs
- StringExpressionSet.cs
- DeploymentExceptionMapper.cs
- CheckBoxRenderer.cs
- XamlRtfConverter.cs
- _WinHttpWebProxyDataBuilder.cs
- ToolStripArrowRenderEventArgs.cs
- MsmqProcessProtocolHandler.cs
- ControlPropertyNameConverter.cs
- BitArray.cs
- Enum.cs
- OutputWindow.cs
- ProfessionalColors.cs
- StringArrayConverter.cs
- QuadTree.cs
- TreeViewDesigner.cs
- PageThemeParser.cs
- WebServiceParameterData.cs
- MenuScrollingVisibilityConverter.cs
- ConfigurationValues.cs
- DataColumnMapping.cs
- RegexFCD.cs
- ExpandCollapseProviderWrapper.cs
- NullReferenceException.cs
- StaticContext.cs
- HierarchicalDataSourceControl.cs
- FormattedTextSymbols.cs
- XComponentModel.cs
- TableRow.cs
- ObjectIDGenerator.cs
- SystemDropShadowChrome.cs
- ListMarkerSourceInfo.cs
- TemplateBamlRecordReader.cs
- XmlDictionary.cs
- HttpServerVarsCollection.cs
- TextElementEnumerator.cs
- GrammarBuilderBase.cs
- KeyedHashAlgorithm.cs
- KeyManager.cs
- PartialTrustVisibleAssemblyCollection.cs
- URIFormatException.cs
- ResponseStream.cs
- CommandField.cs
- MetadataArtifactLoaderCompositeFile.cs
- SizeLimitedCache.cs
- TraceContextRecord.cs
- FormClosedEvent.cs
- RsaSecurityTokenAuthenticator.cs
- ProcessInfo.cs
- ADMembershipProvider.cs
- Util.cs
- SqlRewriteScalarSubqueries.cs
- XPathDocument.cs
- IODescriptionAttribute.cs
- Vector.cs
- BamlStream.cs
- ComplusTypeValidator.cs
- SharedStatics.cs
- StdRegProviderWrapper.cs
- uribuilder.cs
- ToolStripItemEventArgs.cs
- IndexedGlyphRun.cs
- PnrpPermission.cs
- EntityDataSourceStatementEditorForm.cs
- TextRenderingModeValidation.cs
- EncodingConverter.cs
- SiteMapPath.cs
- ImageMapEventArgs.cs
- metadatamappinghashervisitor.cs
- AnimationLayer.cs
- Binding.cs
- XmlSchemaFacet.cs
- CalendarDay.cs
- MetabaseServerConfig.cs
- DataServiceProviderMethods.cs