Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- ObfuscateAssemblyAttribute.cs
- Identity.cs
- CompiledRegexRunner.cs
- Variable.cs
- GeometryGroup.cs
- DefaultHttpHandler.cs
- RowToFieldTransformer.cs
- basemetadatamappingvisitor.cs
- VisualStyleTypesAndProperties.cs
- XmlSerializerVersionAttribute.cs
- MimeWriter.cs
- ScrollContentPresenter.cs
- EnterpriseServicesHelper.cs
- CompressStream.cs
- Parser.cs
- SqlNotificationEventArgs.cs
- XDRSchema.cs
- Lease.cs
- DataGridViewCellStyleConverter.cs
- CrossContextChannel.cs
- MemberInfoSerializationHolder.cs
- TypedReference.cs
- PointConverter.cs
- StringToken.cs
- x509store.cs
- UseAttributeSetsAction.cs
- DriveNotFoundException.cs
- SecUtil.cs
- Version.cs
- GraphicsPathIterator.cs
- SqlDataSourceCommandEventArgs.cs
- ImmComposition.cs
- GPRECT.cs
- ScrollEvent.cs
- PasswordRecovery.cs
- XmlRawWriter.cs
- StopRoutingHandler.cs
- ObjectStateManager.cs
- SmtpSection.cs
- UpDownEvent.cs
- VectorCollectionValueSerializer.cs
- RemotingClientProxy.cs
- VisualBrush.cs
- ReceiveErrorHandling.cs
- SelectionPattern.cs
- TextServicesDisplayAttribute.cs
- DbConnectionPoolOptions.cs
- EventProviderWriter.cs
- SafeArrayTypeMismatchException.cs
- TextSpan.cs
- RequestSecurityTokenForGetBrowserToken.cs
- ExceptionCollection.cs
- XmlValidatingReaderImpl.cs
- ButtonColumn.cs
- SessionEndingCancelEventArgs.cs
- WorkflowDefinitionContext.cs
- UrlPropertyAttribute.cs
- LicenseProviderAttribute.cs
- SubqueryRules.cs
- RemotingSurrogateSelector.cs
- WebDescriptionAttribute.cs
- ResourceProperty.cs
- RangeValidator.cs
- LineProperties.cs
- CopyAction.cs
- GridViewHeaderRowPresenter.cs
- EntityViewContainer.cs
- CompositionDesigner.cs
- ConstrainedDataObject.cs
- SpeakInfo.cs
- SrgsElementFactory.cs
- NumericUpDownAccelerationCollection.cs
- _NtlmClient.cs
- DataKeyArray.cs
- EncoderReplacementFallback.cs
- ListViewSelectEventArgs.cs
- FrameworkPropertyMetadata.cs
- Image.cs
- ScrollContentPresenter.cs
- RegexInterpreter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TableStyle.cs
- CacheOutputQuery.cs
- WhitespaceRule.cs
- ResourceWriter.cs
- ExtendLockAsyncResult.cs
- Annotation.cs
- CodeCatchClause.cs
- OleDbFactory.cs
- IriParsingElement.cs
- Event.cs
- ThemeInfoAttribute.cs
- OleAutBinder.cs
- SoapTypeAttribute.cs
- XmlSerializableServices.cs
- RuntimeResourceSet.cs
- RootAction.cs
- MissingSatelliteAssemblyException.cs
- DateTimeOffsetAdapter.cs
- CommunicationObjectManager.cs