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
- Convert.cs
- NGCSerializer.cs
- TextBoxBase.cs
- X509Utils.cs
- XdrBuilder.cs
- CommandPlan.cs
- TextSerializer.cs
- SoapExtension.cs
- BufferedGraphics.cs
- ErrorFormatterPage.cs
- Metafile.cs
- MultiView.cs
- RepeatButtonAutomationPeer.cs
- ToolboxService.cs
- DataGridViewToolTip.cs
- StackBuilderSink.cs
- XmlObjectSerializerWriteContextComplex.cs
- JsonDeserializer.cs
- MonikerProxyAttribute.cs
- FixedHighlight.cs
- Vector3DAnimationUsingKeyFrames.cs
- SqlPersonalizationProvider.cs
- JsonDataContract.cs
- SurrogateChar.cs
- FixedTextPointer.cs
- ReadOnlyCollection.cs
- HtmlSelect.cs
- X509SubjectKeyIdentifierClause.cs
- ParentUndoUnit.cs
- CollectionViewProxy.cs
- CodeMemberMethod.cs
- MailMessageEventArgs.cs
- odbcmetadatafactory.cs
- CookieProtection.cs
- AspNetSynchronizationContext.cs
- StylusPlugInCollection.cs
- ObjectStateManager.cs
- EmptyEnumerator.cs
- StringHelper.cs
- SimpleHandlerFactory.cs
- GeometryConverter.cs
- ScrollData.cs
- StateMachineDesignerPaint.cs
- TemplateManager.cs
- TimerElapsedEvenArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- PrintingPermission.cs
- AuthorizationSection.cs
- ScriptManager.cs
- PropertyChangingEventArgs.cs
- Metadata.cs
- ListBoxItem.cs
- XmlResolver.cs
- Rights.cs
- SpeechSynthesizer.cs
- MobileUITypeEditor.cs
- RelationshipEndCollection.cs
- AmbientLight.cs
- HandlerBase.cs
- LabelTarget.cs
- RegisteredScript.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XmlSigningNodeWriter.cs
- SQLMoneyStorage.cs
- ResourceDictionaryCollection.cs
- PropertyValueUIItem.cs
- OutputCacheSettingsSection.cs
- FixedFlowMap.cs
- CheckBoxRenderer.cs
- Symbol.cs
- SoapFormatterSinks.cs
- ImportedNamespaceContextItem.cs
- Misc.cs
- ReferencedType.cs
- DivideByZeroException.cs
- SqlBulkCopyColumnMapping.cs
- OdbcReferenceCollection.cs
- TreeNodeMouseHoverEvent.cs
- FrameworkTemplate.cs
- WindowsGraphics2.cs
- TargetException.cs
- FormatSettings.cs
- BitmapEffectInput.cs
- QueryOperatorEnumerator.cs
- Receive.cs
- TextRenderer.cs
- MonitorWrapper.cs
- ButtonField.cs
- ExpressionReplacer.cs
- ClientConfigPaths.cs
- InitializationEventAttribute.cs
- Operator.cs
- ManipulationCompletedEventArgs.cs
- UserControlBuildProvider.cs
- ImageIndexConverter.cs
- WasHttpModulesInstallComponent.cs
- GridViewEditEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- Baml6Assembly.cs