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
- TextElementEditingBehaviorAttribute.cs
- CompilerCollection.cs
- ToolStripItemCollection.cs
- ArglessEventHandlerProxy.cs
- ConfigXmlWhitespace.cs
- Regex.cs
- ReadOnlyObservableCollection.cs
- ResourceAttributes.cs
- SoapSchemaMember.cs
- TextServicesManager.cs
- ColumnTypeConverter.cs
- BufferAllocator.cs
- DataGridViewSortCompareEventArgs.cs
- XmlComment.cs
- SrgsRulesCollection.cs
- PropertyInfoSet.cs
- SourceItem.cs
- ControlDesignerState.cs
- DrawingBrush.cs
- ListParaClient.cs
- SelectorItemAutomationPeer.cs
- ForEachAction.cs
- PrintDialog.cs
- TemplatedMailWebEventProvider.cs
- TimeoutStream.cs
- Type.cs
- SqlNodeAnnotation.cs
- FixedSOMFixedBlock.cs
- ProfileService.cs
- DtcInterfaces.cs
- OleDbConnectionFactory.cs
- EventLogPermissionHolder.cs
- SignerInfo.cs
- BezierSegment.cs
- GeometryCombineModeValidation.cs
- TextServicesLoader.cs
- metadatamappinghashervisitor.cs
- OracleInternalConnection.cs
- InvalidPipelineStoreException.cs
- Mapping.cs
- TextDecorationUnitValidation.cs
- CodeNamespaceImportCollection.cs
- HasCopySemanticsAttribute.cs
- TemplateNameScope.cs
- ByteStreamMessage.cs
- JoinSymbol.cs
- EventMappingSettingsCollection.cs
- GcHandle.cs
- SerializationEventsCache.cs
- ObjectSecurity.cs
- EntityContainerRelationshipSetEnd.cs
- TableDetailsRow.cs
- RuntimeHelpers.cs
- SqlClientPermission.cs
- DictionaryTraceRecord.cs
- HTTPNotFoundHandler.cs
- SqlXmlStorage.cs
- ChangePassword.cs
- FunctionQuery.cs
- UiaCoreApi.cs
- ProfileGroupSettingsCollection.cs
- LicenseManager.cs
- System.Data.OracleClient_BID.cs
- LayeredChannelFactory.cs
- HMACSHA1.cs
- PermissionAttributes.cs
- SelectionChangedEventArgs.cs
- ComboBox.cs
- ErrorProvider.cs
- ButtonColumn.cs
- CacheEntry.cs
- FactoryRecord.cs
- cookie.cs
- OutputCacheSettings.cs
- WebContext.cs
- Material.cs
- RemoteHelper.cs
- Currency.cs
- Buffer.cs
- TemplateBindingExtension.cs
- PageEventArgs.cs
- ListBase.cs
- EncryptedReference.cs
- GridToolTip.cs
- ZoneIdentityPermission.cs
- ElementHostAutomationPeer.cs
- StringCollectionMarkupSerializer.cs
- XmlCountingReader.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HTMLTextWriter.cs
- StatusBarPanelClickEvent.cs
- Model3DGroup.cs
- shaperfactoryquerycacheentry.cs
- ApplyTemplatesAction.cs
- BamlLocalizabilityResolver.cs
- TypefaceMetricsCache.cs
- TagMapInfo.cs
- UIElementPropertyUndoUnit.cs
- APCustomTypeDescriptor.cs
- AsyncPostBackErrorEventArgs.cs