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
- AssertSection.cs
- QueryCacheEntry.cs
- SharedPerformanceCounter.cs
- BindingSource.cs
- CompilerInfo.cs
- OutputScopeManager.cs
- StoragePropertyMapping.cs
- BamlLocalizationDictionary.cs
- TimersDescriptionAttribute.cs
- SmtpReplyReaderFactory.cs
- ToolBarButtonDesigner.cs
- FormViewRow.cs
- EntityModelSchemaGenerator.cs
- SpeechSynthesizer.cs
- WindowsFormsLinkLabel.cs
- DataGridRow.cs
- ExpressionBuilderCollection.cs
- SiteMapSection.cs
- ComplexPropertyEntry.cs
- UrlAuthorizationModule.cs
- WindowsListViewItemStartMenu.cs
- NamedObjectList.cs
- CipherData.cs
- WindowsListViewItemCheckBox.cs
- FreezableDefaultValueFactory.cs
- DataServiceStreamResponse.cs
- CachedFontFace.cs
- IndexedEnumerable.cs
- DataSourceUtil.cs
- Double.cs
- XmlCollation.cs
- RemotingHelper.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CommonGetThemePartSize.cs
- HWStack.cs
- SQLByteStorage.cs
- Transform.cs
- QualificationDataAttribute.cs
- RepeaterItemCollection.cs
- FloatAverageAggregationOperator.cs
- Memoizer.cs
- Keyboard.cs
- SQlBooleanStorage.cs
- UInt16.cs
- SkinBuilder.cs
- ListViewTableCell.cs
- RegistrationProxy.cs
- StrongNamePublicKeyBlob.cs
- Pair.cs
- OleDbDataAdapter.cs
- TextEditorTyping.cs
- TraceUtils.cs
- DayRenderEvent.cs
- WebPartConnection.cs
- RecipientInfo.cs
- Terminate.cs
- assertwrapper.cs
- ElementNotAvailableException.cs
- GlyphRun.cs
- NetWebProxyFinder.cs
- WindowsRegion.cs
- TdsEnums.cs
- util.cs
- SchemaComplexType.cs
- AssemblyAttributes.cs
- DataFormats.cs
- DiscoveryService.cs
- LongValidator.cs
- MultilineStringConverter.cs
- LayoutExceptionEventArgs.cs
- __FastResourceComparer.cs
- ObservableDictionary.cs
- GridView.cs
- JpegBitmapDecoder.cs
- MimeMultiPart.cs
- HMACRIPEMD160.cs
- DataGridParentRows.cs
- AtomPub10ServiceDocumentFormatter.cs
- MD5CryptoServiceProvider.cs
- QilValidationVisitor.cs
- EncryptedType.cs
- TagPrefixInfo.cs
- ExtendedTransformFactory.cs
- OleCmdHelper.cs
- SiteOfOriginPart.cs
- EllipseGeometry.cs
- MatrixUtil.cs
- FilterEventArgs.cs
- ToolStripSplitButton.cs
- FilteredXmlReader.cs
- ScriptControlManager.cs
- WindowsPen.cs
- WebRequestModuleElement.cs
- NullableConverter.cs
- BitmapEffectDrawing.cs
- Partitioner.cs
- SystemIPAddressInformation.cs
- XmlSchemaValidationException.cs
- IItemContainerGenerator.cs
- RangeValueProviderWrapper.cs