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
- SafeProcessHandle.cs
- WebBrowserNavigatedEventHandler.cs
- xdrvalidator.cs
- BaseCAMarshaler.cs
- TriggerBase.cs
- DependentList.cs
- StandardCommands.cs
- Label.cs
- SectionUpdates.cs
- ContentType.cs
- followingsibling.cs
- TerminatorSinks.cs
- LongPath.cs
- DataSourceDescriptorCollection.cs
- SqlDataSourceCommandEventArgs.cs
- XmlWrappingReader.cs
- DLinqTableProvider.cs
- DefaultBindingPropertyAttribute.cs
- MouseGesture.cs
- TabPage.cs
- FormsIdentity.cs
- BooleanExpr.cs
- ListDictionaryInternal.cs
- CodeTypeMemberCollection.cs
- EncoderParameter.cs
- HeaderElement.cs
- Attributes.cs
- AttributeCollection.cs
- ProxyGenerator.cs
- ConcurrentQueue.cs
- ActivityInterfaces.cs
- TreeNodeMouseHoverEvent.cs
- HttpWrapper.cs
- SetIterators.cs
- SolidColorBrush.cs
- StringOutput.cs
- ValueUnavailableException.cs
- SaveWorkflowAsyncResult.cs
- InvokeBase.cs
- Certificate.cs
- IOThreadTimer.cs
- ConvertTextFrag.cs
- Focus.cs
- FontCollection.cs
- TraceContext.cs
- SQLResource.cs
- Inflater.cs
- ServiceRoute.cs
- UnsafePeerToPeerMethods.cs
- RootDesignerSerializerAttribute.cs
- PagedDataSource.cs
- AxHost.cs
- ColorConverter.cs
- WebPartDisplayModeEventArgs.cs
- Symbol.cs
- MatrixValueSerializer.cs
- TableCell.cs
- PropertyEmitterBase.cs
- UInt64.cs
- Compensate.cs
- objectquery_tresulttype.cs
- DropSource.cs
- TableLayoutStyle.cs
- InternalTypeHelper.cs
- NumberFormatInfo.cs
- Fonts.cs
- NetStream.cs
- RelationalExpressions.cs
- IPEndPointCollection.cs
- Registry.cs
- DictionaryBase.cs
- FtpCachePolicyElement.cs
- BitmapEffect.cs
- XamlContextStack.cs
- _RequestCacheProtocol.cs
- UidManager.cs
- DataBindingsDialog.cs
- ExpressionBuilder.cs
- DbProviderFactory.cs
- NamedElement.cs
- VisualBasicImportReference.cs
- DataGridToolTip.cs
- FormCollection.cs
- DescendentsWalker.cs
- ReadOnlyDictionary.cs
- InlinedAggregationOperatorEnumerator.cs
- WebMessageEncodingElement.cs
- DefaultValidator.cs
- PlanCompiler.cs
- NamespaceInfo.cs
- Convert.cs
- RecordManager.cs
- HostVisual.cs
- WebPartCloseVerb.cs
- ReadingWritingEntityEventArgs.cs
- BaseCollection.cs
- SecurityResources.cs
- RichTextBoxConstants.cs
- WindowsListViewGroupHelper.cs
- NonVisualControlAttribute.cs