Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / Stylus / StylusDownEventArgs.cs / 1 / StylusDownEventArgs.cs
using System; using System.Collections; using System.ComponentModel; using System.Windows.Media; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// //////Event argument used to subscribe to StylusDown events. /// public class StylusDownEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusDownEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// public StylusDownEventArgs( StylusDevice stylusDevice, int timestamp) : base(stylusDevice, timestamp) { } ////// Read access to the stylus tap count. /// public int TapCount { get {return StylusDevice.TapCount;} } ///////////////////////////////////////////////////////////////////// ////// 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) { StylusDownEventHandler handler = (StylusDownEventHandler)genericHandler; handler(genericTarget, this); } } } // 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 StylusDown events. /// public class StylusDownEventArgs : StylusEventArgs { ///////////////////////////////////////////////////////////////////// ////// Initializes a new instance of the StylusDownEventArgs class. /// /// /// The logical Stylus device associated with this event. /// /// /// The time when the input occured. /// public StylusDownEventArgs( StylusDevice stylusDevice, int timestamp) : base(stylusDevice, timestamp) { } ////// Read access to the stylus tap count. /// public int TapCount { get {return StylusDevice.TapCount;} } ///////////////////////////////////////////////////////////////////// ////// 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) { StylusDownEventHandler handler = (StylusDownEventHandler)genericHandler; handler(genericTarget, this); } } } // 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
- Barrier.cs
- FixedPageAutomationPeer.cs
- ColumnClickEvent.cs
- BinaryReader.cs
- NavigatorInput.cs
- PropertyGrid.cs
- SqlBulkCopy.cs
- FigureParagraph.cs
- TextStore.cs
- EventWaitHandleSecurity.cs
- SimpleWebHandlerParser.cs
- LinkedList.cs
- StorageModelBuildProvider.cs
- InputProcessorProfilesLoader.cs
- StringBlob.cs
- PeerName.cs
- MapPathBasedVirtualPathProvider.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- CodeAccessPermission.cs
- Serializer.cs
- AdornerPresentationContext.cs
- InputLanguageCollection.cs
- PointLight.cs
- CodeObjectCreateExpression.cs
- PackUriHelper.cs
- ContentElementAutomationPeer.cs
- FigureHelper.cs
- LinqDataSourceDisposeEventArgs.cs
- TableLayoutCellPaintEventArgs.cs
- KeyedCollection.cs
- DetailsViewDeleteEventArgs.cs
- SecurityState.cs
- MonthCalendar.cs
- HelpHtmlBuilder.cs
- Select.cs
- BuiltInPermissionSets.cs
- DataViewManagerListItemTypeDescriptor.cs
- HwndHost.cs
- BaseAddressPrefixFilterElement.cs
- DBConnectionString.cs
- Point3D.cs
- HandoffBehavior.cs
- StringCollection.cs
- ConfigXmlElement.cs
- StorageConditionPropertyMapping.cs
- HtmlContainerControl.cs
- AppSettingsExpressionBuilder.cs
- Propagator.Evaluator.cs
- PageRanges.cs
- MetaData.cs
- CharacterMetricsDictionary.cs
- CounterCreationDataCollection.cs
- X509UI.cs
- EventLogPermission.cs
- DataGridViewButtonColumn.cs
- ProcessHost.cs
- ListItemCollection.cs
- OuterGlowBitmapEffect.cs
- SamlAuthorizationDecisionStatement.cs
- FeatureSupport.cs
- OdbcPermission.cs
- TextServicesLoader.cs
- TimeSpan.cs
- PolyBezierSegmentFigureLogic.cs
- TemplateKeyConverter.cs
- ProcessManager.cs
- CanonicalFontFamilyReference.cs
- StreamInfo.cs
- AutomationElement.cs
- XmlSchemaInfo.cs
- DialogWindow.cs
- UnsafeNativeMethods.cs
- OdbcDataAdapter.cs
- ScriptControlDescriptor.cs
- DataControlLinkButton.cs
- TableRowGroup.cs
- MessageOperationFormatter.cs
- SettingsSavedEventArgs.cs
- SoapIgnoreAttribute.cs
- AppSettingsExpressionEditor.cs
- Int32RectValueSerializer.cs
- WrappingXamlSchemaContext.cs
- MultiByteCodec.cs
- FormattedText.cs
- SqlBulkCopyColumnMappingCollection.cs
- SoapExtensionReflector.cs
- DoubleLink.cs
- SchemaNotation.cs
- UIElement.cs
- FileStream.cs
- ThreadStartException.cs
- Point3DValueSerializer.cs
- Utils.cs
- DelayDesigner.cs
- DataGridViewDataConnection.cs
- TdsValueSetter.cs
- datacache.cs
- NativeMethods.cs
- ObjectDataSourceDisposingEventArgs.cs
- WorkflowApplication.cs