Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / TouchEventArgs.cs / 1305600 / TouchEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { public class TouchEventArgs : InputEventArgs { public TouchEventArgs(TouchDevice touchDevice, int timestamp) : base (touchDevice, timestamp) { } ////// The device associated with these event arguments. /// public TouchDevice TouchDevice { get { return (TouchDevice)Device; } } ////// Retrieves the current state related to postion of the TouchDevice. /// /// The element that defines the coordinate space of the returned data. ///A TouchPoint object that describes the position and other data regarding the TouchDevice. public TouchPoint GetTouchPoint(IInputElement relativeTo) { return TouchDevice.GetTouchPoint(relativeTo); } ////// Retrieves the positions that the TouchDevice went through between the /// last time a touch event occurred and this one. /// /// The elmeent that defines the coordinate space of the returned data. ///The positions that the TouchDevice went through. public TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo) { return TouchDevice.GetIntermediateTouchPoints(relativeTo); } ////// 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) { EventHandlerhandler = (EventHandler )genericHandler; handler(genericTarget, this); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { public class TouchEventArgs : InputEventArgs { public TouchEventArgs(TouchDevice touchDevice, int timestamp) : base (touchDevice, timestamp) { } /// /// The device associated with these event arguments. /// public TouchDevice TouchDevice { get { return (TouchDevice)Device; } } ////// Retrieves the current state related to postion of the TouchDevice. /// /// The element that defines the coordinate space of the returned data. ///A TouchPoint object that describes the position and other data regarding the TouchDevice. public TouchPoint GetTouchPoint(IInputElement relativeTo) { return TouchDevice.GetTouchPoint(relativeTo); } ////// Retrieves the positions that the TouchDevice went through between the /// last time a touch event occurred and this one. /// /// The elmeent that defines the coordinate space of the returned data. ///The positions that the TouchDevice went through. public TouchPointCollection GetIntermediateTouchPoints(IInputElement relativeTo) { return TouchDevice.GetIntermediateTouchPoints(relativeTo); } ////// 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) { EventHandlerhandler = (EventHandler )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
- XmlSchemaSimpleTypeList.cs
- XamlReader.cs
- BooleanAnimationUsingKeyFrames.cs
- SetStateDesigner.cs
- SqlUserDefinedAggregateAttribute.cs
- IFlowDocumentViewer.cs
- NamespaceDisplay.xaml.cs
- TablePattern.cs
- SplitterEvent.cs
- QueueNameHelper.cs
- NullReferenceException.cs
- SettingsPropertyValueCollection.cs
- ValueUtilsSmi.cs
- LicenseContext.cs
- XamlParser.cs
- IfAction.cs
- StrokeNodeOperations.cs
- UrlAuthorizationModule.cs
- IriParsingElement.cs
- Gdiplus.cs
- SchemaMerger.cs
- HostedElements.cs
- XmlIlGenerator.cs
- DiscardableAttribute.cs
- TdsParameterSetter.cs
- DESCryptoServiceProvider.cs
- DetailsViewUpdatedEventArgs.cs
- OracleMonthSpan.cs
- TypeSystemProvider.cs
- WindowsPen.cs
- WebServiceData.cs
- StandardCommandToolStripMenuItem.cs
- CodeIdentifiers.cs
- IgnorePropertiesAttribute.cs
- WebPartConnectionCollection.cs
- HtmlUtf8RawTextWriter.cs
- XappLauncher.cs
- TokenBasedSet.cs
- GradientStop.cs
- Brush.cs
- RegexNode.cs
- SafeCertificateStore.cs
- ToolstripProfessionalRenderer.cs
- NetworkAddressChange.cs
- CacheRequest.cs
- ClientSettingsSection.cs
- ProgressPage.cs
- ForceCopyBuildProvider.cs
- SmtpReplyReader.cs
- WebRequest.cs
- StateBag.cs
- HostDesigntimeLicenseContext.cs
- XmlSerializationReader.cs
- Fonts.cs
- DetailsViewDeletedEventArgs.cs
- Crc32.cs
- ExceptionNotification.cs
- SqlDependencyListener.cs
- DependencyObjectPropertyDescriptor.cs
- MailAddressCollection.cs
- ResizeGrip.cs
- StructuredProperty.cs
- Solver.cs
- TextClipboardData.cs
- Dictionary.cs
- TimeoutTimer.cs
- AbandonedMutexException.cs
- SchemaObjectWriter.cs
- FullTextBreakpoint.cs
- SizeF.cs
- Int16AnimationBase.cs
- Shared.cs
- WebDescriptionAttribute.cs
- TextComposition.cs
- BaseServiceProvider.cs
- Int64KeyFrameCollection.cs
- cookie.cs
- MsmqBindingBase.cs
- SemaphoreSecurity.cs
- PseudoWebRequest.cs
- MenuCommand.cs
- MessageDecoder.cs
- ConnectionsZone.cs
- SiteMembershipCondition.cs
- ColumnHeader.cs
- ThemeDirectoryCompiler.cs
- HostedElements.cs
- DataGridTextBoxColumn.cs
- BitmapEffectGroup.cs
- XmlSerializationGeneratedCode.cs
- ExtensibleClassFactory.cs
- SQLCharsStorage.cs
- UnsettableComboBox.cs
- TemplateControlParser.cs
- TextTreeFixupNode.cs
- OrthographicCamera.cs
- DataRecordInternal.cs
- DetailsViewInsertedEventArgs.cs
- _IPv4Address.cs
- Slider.cs