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
- FilterException.cs
- WebPartCatalogAddVerb.cs
- DesignerToolboxInfo.cs
- SerializationInfoEnumerator.cs
- DiscreteKeyFrames.cs
- GridView.cs
- CommunicationObjectFaultedException.cs
- ListControl.cs
- SqlMethods.cs
- HttpListener.cs
- JavaScriptString.cs
- XmlNamespaceManager.cs
- SharedStream.cs
- XmlSchemaAppInfo.cs
- oledbmetadatacollectionnames.cs
- XmlIlGenerator.cs
- VoiceChangeEventArgs.cs
- FrugalList.cs
- TdsParserStaticMethods.cs
- SeparatorAutomationPeer.cs
- XmlSchemaSet.cs
- DataRelation.cs
- MemoryFailPoint.cs
- OutputScope.cs
- AncestorChangedEventArgs.cs
- File.cs
- SqlRetyper.cs
- ProcessActivityTreeOptions.cs
- DescendentsWalkerBase.cs
- ConfigurationPermission.cs
- TextTreeTextNode.cs
- WebPartDisplayModeCancelEventArgs.cs
- DataGridViewBand.cs
- AnimatedTypeHelpers.cs
- ServiceBusyException.cs
- SelfIssuedSamlTokenFactory.cs
- CqlParserHelpers.cs
- TraceListeners.cs
- SqlTrackingWorkflowInstance.cs
- ModifiableIteratorCollection.cs
- DesignerHost.cs
- SplitContainer.cs
- AnnotationService.cs
- InnerItemCollectionView.cs
- OciEnlistContext.cs
- Grant.cs
- CollectionViewGroupInternal.cs
- DiscoveryProxy.cs
- WebPartDisplayMode.cs
- AssemblyAttributes.cs
- EncryptedPackageFilter.cs
- HistoryEventArgs.cs
- Win32Native.cs
- Char.cs
- FixedElement.cs
- Accessible.cs
- Identity.cs
- SettingsBase.cs
- OracleSqlParser.cs
- AsmxEndpointPickerExtension.cs
- ParallelActivityDesigner.cs
- ContextQuery.cs
- COMException.cs
- ViewLoader.cs
- ITreeGenerator.cs
- QilXmlReader.cs
- CharEnumerator.cs
- AsymmetricSignatureFormatter.cs
- EntityTransaction.cs
- DesignTimeVisibleAttribute.cs
- SingleAnimation.cs
- IdentifierCreationService.cs
- ProfilePropertyNameValidator.cs
- XmlSchemaAnyAttribute.cs
- DataRow.cs
- JulianCalendar.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ScriptBehaviorDescriptor.cs
- CqlLexerHelpers.cs
- ThreadExceptionEvent.cs
- DataPager.cs
- ListViewItemEventArgs.cs
- CalendarButtonAutomationPeer.cs
- ThicknessAnimationBase.cs
- MailSettingsSection.cs
- NaturalLanguageHyphenator.cs
- FloatUtil.cs
- XmlCharCheckingReader.cs
- CreateUserErrorEventArgs.cs
- GlyphTypeface.cs
- SizeFConverter.cs
- DataSourceCache.cs
- DataSourceSelectArguments.cs
- XmlSchemaSimpleContent.cs
- SecurityKeyType.cs
- DrawItemEvent.cs
- OpenFileDialog.cs
- XmlValidatingReaderImpl.cs
- WsdlBuildProvider.cs
- XmlSchemaExternal.cs