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
- SafeFileMappingHandle.cs
- Util.cs
- LinearKeyFrames.cs
- MetadataUtilsSmi.cs
- RectValueSerializer.cs
- SettingsPropertyValueCollection.cs
- FirstMatchCodeGroup.cs
- TextPointer.cs
- ModuleBuilderData.cs
- SecurityChannel.cs
- IncomingWebResponseContext.cs
- KnownIds.cs
- TextSelection.cs
- BaseCollection.cs
- ObjectCloneHelper.cs
- NonClientArea.cs
- TextRange.cs
- CommandExpr.cs
- AppliedDeviceFiltersEditor.cs
- KeySpline.cs
- StylusDownEventArgs.cs
- LocationUpdates.cs
- ScrollChrome.cs
- DispatcherHookEventArgs.cs
- XmlRawWriter.cs
- CategoryNameCollection.cs
- ServiceConfigurationTraceRecord.cs
- ResXDataNode.cs
- SafeReversePInvokeHandle.cs
- EventMemberCodeDomSerializer.cs
- RemoteWebConfigurationHostServer.cs
- DataGridViewCellCollection.cs
- BadImageFormatException.cs
- codemethodreferenceexpression.cs
- WmlMobileTextWriter.cs
- QuaternionValueSerializer.cs
- EmbeddedObject.cs
- ProcessHostMapPath.cs
- SeekableReadStream.cs
- Char.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MoveSizeWinEventHandler.cs
- SqlFunctionAttribute.cs
- RoutedUICommand.cs
- ContentElementAutomationPeer.cs
- DesignerVerb.cs
- EmptyStringExpandableObjectConverter.cs
- PolyLineSegment.cs
- InternalSafeNativeMethods.cs
- AuthorizationSection.cs
- LoginName.cs
- ValueProviderWrapper.cs
- Trace.cs
- DataGridParentRows.cs
- PackageProperties.cs
- DataControlFieldCell.cs
- InputDevice.cs
- Underline.cs
- WmlFormAdapter.cs
- DataGridViewCheckBoxColumn.cs
- dbdatarecord.cs
- KeyValuePair.cs
- SingleResultAttribute.cs
- SchemaObjectWriter.cs
- ResolveDuplex11AsyncResult.cs
- ShapeTypeface.cs
- SelectedDatesCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- TrackingValidationObjectDictionary.cs
- MachineKey.cs
- SettingsSavedEventArgs.cs
- Pointer.cs
- TraceUtility.cs
- IPipelineRuntime.cs
- FilterQuery.cs
- RelatedEnd.cs
- MgmtResManager.cs
- UdpRetransmissionSettings.cs
- TableDetailsCollection.cs
- ReceiveSecurityHeaderEntry.cs
- BooleanSwitch.cs
- __FastResourceComparer.cs
- ObjectNotFoundException.cs
- DesignerView.cs
- TextLine.cs
- FullTextBreakpoint.cs
- Timeline.cs
- ExpressionBindings.cs
- JournalEntry.cs
- AutomationProperties.cs
- XmlObjectSerializerWriteContext.cs
- BitmapPalette.cs
- MappingMetadataHelper.cs
- DbUpdateCommandTree.cs
- BinHexEncoder.cs
- TreeNodeBindingCollection.cs
- CqlLexerHelpers.cs
- MobileComponentEditorPage.cs
- DbProviderFactories.cs
- SpeechDetectedEventArgs.cs