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
- PropertyGridCommands.cs
- DrawingAttributes.cs
- DataObjectCopyingEventArgs.cs
- securitycriticaldataformultiplegetandset.cs
- Listbox.cs
- ConfigsHelper.cs
- DrawingContextWalker.cs
- ITextView.cs
- Parsers.cs
- ApplicationCommands.cs
- Solver.cs
- AppDomain.cs
- MouseActionConverter.cs
- Clipboard.cs
- WebPartVerb.cs
- ReflectPropertyDescriptor.cs
- DataControlReference.cs
- EventLog.cs
- BuildResult.cs
- DecoderFallback.cs
- SchemaHelper.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- MenuItemBindingCollection.cs
- LineServicesRun.cs
- CodeSubDirectoriesCollection.cs
- PropertyTab.cs
- InputLanguageManager.cs
- Slider.cs
- ImageCodecInfoPrivate.cs
- ItemType.cs
- MetafileHeaderWmf.cs
- InvalidDataException.cs
- ByteKeyFrameCollection.cs
- Vector3DValueSerializer.cs
- CheckBoxList.cs
- EmptyEnumerator.cs
- FileIOPermission.cs
- GridEntry.cs
- IgnoreSection.cs
- TypeSource.cs
- RegexInterpreter.cs
- ElasticEase.cs
- LambdaCompiler.Lambda.cs
- EventSinkActivityDesigner.cs
- OleDbConnection.cs
- RowToFieldTransformer.cs
- BoolExpressionVisitors.cs
- PointCollection.cs
- EventRoute.cs
- DrawingAttributes.cs
- X509SecurityToken.cs
- XmlSchemaObjectTable.cs
- IntranetCredentialPolicy.cs
- ElementNotEnabledException.cs
- MimeFormatter.cs
- SerializerWriterEventHandlers.cs
- brushes.cs
- VisemeEventArgs.cs
- XmlWellformedWriter.cs
- CachedCompositeFamily.cs
- ToolStripTemplateNode.cs
- TrackingValidationObjectDictionary.cs
- EncodingInfo.cs
- OleDbError.cs
- DesignerTransaction.cs
- LinearGradientBrush.cs
- XmlSchemaCompilationSettings.cs
- FontWeightConverter.cs
- RMEnrollmentPage3.cs
- ExtendLockCommand.cs
- CustomError.cs
- ChannelDemuxer.cs
- ExpressionConverter.cs
- ObjectQueryProvider.cs
- SecurityManager.cs
- MarshalDirectiveException.cs
- GroupBoxRenderer.cs
- DesignerTransaction.cs
- DataGridAddNewRow.cs
- WebControlsSection.cs
- UpdateExpressionVisitor.cs
- ObjectConverter.cs
- WS2007HttpBindingCollectionElement.cs
- DiagnosticStrings.cs
- GridViewRow.cs
- HandlerWithFactory.cs
- InlineObject.cs
- MdiWindowListStrip.cs
- MappingException.cs
- LockCookie.cs
- TopClause.cs
- SystemColorTracker.cs
- ScalarType.cs
- OletxDependentTransaction.cs
- EntityStoreSchemaGenerator.cs
- baseaxisquery.cs
- ScriptRef.cs
- TemplateParser.cs
- WebBrowserPermission.cs
- WebControlAdapter.cs