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
- lengthconverter.cs
- Guid.cs
- DefaultBinder.cs
- ThumbAutomationPeer.cs
- FormViewDeleteEventArgs.cs
- SerializerProvider.cs
- XhtmlBasicValidationSummaryAdapter.cs
- HeaderCollection.cs
- Stack.cs
- VirtualPath.cs
- counter.cs
- EnumValidator.cs
- RsaSecurityTokenAuthenticator.cs
- SmtpFailedRecipientException.cs
- ResourcePool.cs
- ListDataHelper.cs
- TranslateTransform3D.cs
- SchemaMapping.cs
- httpapplicationstate.cs
- ArrayTypeMismatchException.cs
- MetaData.cs
- Listbox.cs
- InkCanvasFeedbackAdorner.cs
- ContentIterators.cs
- ReversePositionQuery.cs
- DelegateInArgument.cs
- PauseStoryboard.cs
- XPathSingletonIterator.cs
- HttpRequest.cs
- SocketPermission.cs
- DispatcherHooks.cs
- RegexCompilationInfo.cs
- CorePropertiesFilter.cs
- UntypedNullExpression.cs
- ListContractAdapter.cs
- CookielessData.cs
- CrossAppDomainChannel.cs
- UpdatePanelTriggerCollection.cs
- DocumentPageHost.cs
- PropertyGridCommands.cs
- MessageHeaderException.cs
- OleDbRowUpdatedEvent.cs
- RecipientInfo.cs
- ConfigurationSectionGroupCollection.cs
- _RequestCacheProtocol.cs
- PrintPreviewDialog.cs
- Operators.cs
- SettingsPropertyNotFoundException.cs
- ContainerControl.cs
- UpdateEventArgs.cs
- Margins.cs
- ValueUnavailableException.cs
- EntityDataSourceSelectingEventArgs.cs
- StylusSystemGestureEventArgs.cs
- ListViewDeletedEventArgs.cs
- SoapSchemaImporter.cs
- PolyLineSegmentFigureLogic.cs
- UpdateEventArgs.cs
- HeaderLabel.cs
- TextEndOfSegment.cs
- IgnorePropertiesAttribute.cs
- WindowsGraphics2.cs
- AssemblyName.cs
- GroupDescription.cs
- ImageConverter.cs
- TcpHostedTransportConfiguration.cs
- StatusBarItem.cs
- SqlTypesSchemaImporter.cs
- InternalDispatchObject.cs
- TreeView.cs
- BindValidationContext.cs
- AsyncResult.cs
- DefaultValueTypeConverter.cs
- GeometryConverter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CompositionTarget.cs
- ObjectDataSourceFilteringEventArgs.cs
- TabletDeviceInfo.cs
- HtmlInputRadioButton.cs
- UntrustedRecipientException.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- bidPrivateBase.cs
- Underline.cs
- AppDomainProtocolHandler.cs
- DataSourceViewSchemaConverter.cs
- ConfigurationElementProperty.cs
- WebServiceResponseDesigner.cs
- LocalClientSecuritySettings.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlQualifiedName.cs
- ClearTypeHintValidation.cs
- SecurityPolicySection.cs
- DiagnosticTraceSchemas.cs
- ReferenceEqualityComparer.cs
- WindowsEditBoxRange.cs
- CannotUnloadAppDomainException.cs
- AutomationPatternInfo.cs
- WebControlToolBoxItem.cs
- LogoValidationException.cs
- MemberInfoSerializationHolder.cs