Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Touch.cs / 1305600 / Touch.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace System.Windows.Input { public static class Touch { internal static readonly RoutedEvent PreviewTouchDownEvent = EventManager.RegisterRoutedEvent("PreviewTouchDown", RoutingStrategy.Tunnel, typeof(EventHandler), typeof(Touch)); internal static readonly RoutedEvent TouchDownEvent = EventManager.RegisterRoutedEvent("TouchDown", RoutingStrategy.Bubble, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent PreviewTouchMoveEvent = EventManager.RegisterRoutedEvent("PreviewTouchMove", RoutingStrategy.Tunnel, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent TouchMoveEvent = EventManager.RegisterRoutedEvent("TouchMove", RoutingStrategy.Bubble, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent PreviewTouchUpEvent = EventManager.RegisterRoutedEvent("PreviewTouchUp", RoutingStrategy.Tunnel, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent TouchUpEvent = EventManager.RegisterRoutedEvent("TouchUp", RoutingStrategy.Bubble, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent GotTouchCaptureEvent = EventManager.RegisterRoutedEvent("GotTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent LostTouchCaptureEvent = EventManager.RegisterRoutedEvent("LostTouchCapture", RoutingStrategy.Bubble, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent TouchEnterEvent = EventManager.RegisterRoutedEvent("TouchEnter", RoutingStrategy.Direct, typeof(EventHandler ), typeof(Touch)); internal static readonly RoutedEvent TouchLeaveEvent = EventManager.RegisterRoutedEvent("TouchLeave", RoutingStrategy.Direct, typeof(EventHandler ), typeof(Touch)); /// /// Raised when there is an update to the list of touch devices. /// ////// This API is provided for compatibility with Silverlight, but due to different /// device implementations, this event will be called in WPF whenever any change /// occurs to any touch device instead of on a frame basis. /// public static event TouchFrameEventHandler FrameReported; internal static void ReportFrame() { if (FrameReported != null) { TouchFrameEventArgs args = new TouchFrameEventArgs(Environment.TickCount); FrameReported(null, args); } } } } // 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
- FolderBrowserDialogDesigner.cs
- SqlCacheDependencySection.cs
- CngKeyBlobFormat.cs
- EntityTransaction.cs
- WebPartTransformer.cs
- ChildDocumentBlock.cs
- PropertyDescriptorComparer.cs
- followingquery.cs
- PriorityChain.cs
- QueryCacheEntry.cs
- SizeAnimation.cs
- DES.cs
- XPathAncestorQuery.cs
- ProofTokenCryptoHandle.cs
- VolatileResourceManager.cs
- GenerateTemporaryTargetAssembly.cs
- ContentDisposition.cs
- Converter.cs
- CryptoApi.cs
- DataGrid.cs
- CellParagraph.cs
- SystemResourceKey.cs
- XmlReflectionImporter.cs
- Normalization.cs
- SubMenuStyleCollection.cs
- ProcessThreadCollection.cs
- BackEase.cs
- PixelFormat.cs
- CodeFieldReferenceExpression.cs
- contentDescriptor.cs
- ViewCellRelation.cs
- ClientType.cs
- TableLayoutRowStyleCollection.cs
- ValueSerializer.cs
- ValidationSettings.cs
- TypeForwardedToAttribute.cs
- ExpressionReplacer.cs
- Vector3D.cs
- LineServices.cs
- SystemUdpStatistics.cs
- PermissionListSet.cs
- DetailsViewDeleteEventArgs.cs
- KeyConstraint.cs
- BuilderInfo.cs
- IpcManager.cs
- StaticDataManager.cs
- ItemsChangedEventArgs.cs
- PropertySourceInfo.cs
- EasingKeyFrames.cs
- ViewPort3D.cs
- AddInBase.cs
- WSMessageEncoding.cs
- ToolStripGrip.cs
- SiteMapNode.cs
- HtmlButton.cs
- PersistenceException.cs
- UsernameTokenFactoryCredential.cs
- FormViewInsertEventArgs.cs
- DiagnosticTraceSource.cs
- DataBoundControl.cs
- WebServiceData.cs
- WeakEventManager.cs
- SiteMapProvider.cs
- ConfigurationManagerHelper.cs
- RuleSet.cs
- DataGridViewTextBoxEditingControl.cs
- DataRelation.cs
- ToolStripEditorManager.cs
- FileAuthorizationModule.cs
- DataBoundControlHelper.cs
- IdnElement.cs
- RijndaelManaged.cs
- TreeNodeMouseHoverEvent.cs
- WorkflowApplicationAbortedException.cs
- ImageListStreamer.cs
- RoleExceptions.cs
- UpdateException.cs
- DesignRelation.cs
- Model3DGroup.cs
- XmlReflectionImporter.cs
- StylusLogic.cs
- PaperSize.cs
- InfoCard.cs
- entityreference_tresulttype.cs
- CrossAppDomainChannel.cs
- GACMembershipCondition.cs
- NamedElement.cs
- DatatypeImplementation.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- XmlEventCache.cs
- SynchronizationHandlesCodeDomSerializer.cs
- ResourceContainer.cs
- ScriptRegistrationManager.cs
- infer.cs
- PenThreadWorker.cs
- ParserStreamGeometryContext.cs
- CodeTypeDeclaration.cs
- SpecialNameAttribute.cs
- SemanticResolver.cs
- StructuralObject.cs