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
- XmlProcessingInstruction.cs
- TextTreeText.cs
- CorrelationTokenInvalidatedHandler.cs
- EntityContainerEmitter.cs
- CompilerResults.cs
- MaterialGroup.cs
- DateTimeStorage.cs
- ByteStorage.cs
- EnvelopedPkcs7.cs
- SmtpCommands.cs
- UIAgentMonitor.cs
- EntityDesignPluralizationHandler.cs
- MoveSizeWinEventHandler.cs
- TransactionFilter.cs
- AutoGeneratedField.cs
- IImplicitResourceProvider.cs
- SqlFacetAttribute.cs
- TextDecorationLocationValidation.cs
- CodeCompiler.cs
- DataGridViewCellMouseEventArgs.cs
- WebContentFormatHelper.cs
- SymbolPair.cs
- BaseDataList.cs
- UInt16.cs
- ExecutorLocksHeldException.cs
- XhtmlBasicSelectionListAdapter.cs
- TrustManager.cs
- EndpointInfoCollection.cs
- XmlAttribute.cs
- TypeListConverter.cs
- RegistryConfigurationProvider.cs
- SchemaDeclBase.cs
- RemoveStoryboard.cs
- mansign.cs
- Completion.cs
- CacheSection.cs
- ListViewEditEventArgs.cs
- ConfigurationElement.cs
- DataListItem.cs
- VirtualizingStackPanel.cs
- FlagsAttribute.cs
- CodeExporter.cs
- SqlTransaction.cs
- SupportingTokenAuthenticatorSpecification.cs
- XmlReader.cs
- AdRotator.cs
- SchemaType.cs
- ScriptingSectionGroup.cs
- WhitespaceRuleReader.cs
- PageOutputQuality.cs
- Utility.cs
- ContainerFilterService.cs
- WebRequestModuleElement.cs
- DefaultValueAttribute.cs
- ToolStripContainer.cs
- ChangeNode.cs
- Trace.cs
- InputScopeConverter.cs
- HtmlInputCheckBox.cs
- WebResponse.cs
- ReadonlyMessageFilter.cs
- ManualResetEvent.cs
- ObjectReaderCompiler.cs
- TransformGroup.cs
- HttpStreams.cs
- EntityExpressionVisitor.cs
- DataMemberFieldEditor.cs
- Line.cs
- BindingsSection.cs
- SspiSafeHandles.cs
- Stylus.cs
- DelegatingTypeDescriptionProvider.cs
- IfJoinedCondition.cs
- EntityTypeEmitter.cs
- InvalidProgramException.cs
- UnionCodeGroup.cs
- BufferBuilder.cs
- HttpListenerPrefixCollection.cs
- ScriptManager.cs
- ImageAttributes.cs
- SingleKeyFrameCollection.cs
- ClientTargetCollection.cs
- WebCategoryAttribute.cs
- HttpProfileGroupBase.cs
- BinaryUtilClasses.cs
- EntityWithKeyStrategy.cs
- HtmlFormWrapper.cs
- FacetChecker.cs
- XmlUTF8TextWriter.cs
- IsolatedStorageFilePermission.cs
- coordinator.cs
- GenericArgumentsUpdater.cs
- TreeNodeEventArgs.cs
- MemberPath.cs
- InternalConfigEventArgs.cs
- DeploymentExceptionMapper.cs
- NetworkInterface.cs
- HandlerMappingMemo.cs
- HttpListener.cs
- GestureRecognizer.cs