Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Input / Stylus / RawStylusSystemGestureInputReport.cs / 1 / RawStylusSystemGestureInputReport.cs
using System; using System.ComponentModel; using System.Security; using System.Security.Permissions; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Input { ///////////////////////////////////////////////////////////////////////// ////// [TBS] /// internal class RawStylusSystemGestureInputReport : RawStylusInputReport { // We don't want to publically expose the double tap system gesture so we define it here. internal const SystemGesture InternalSystemGestureDoubleTap = (SystemGesture)0x11; ///////////////////////////////////////////////////////////////////// ////// Constructs an instance of the RawStylusSystemGestureInputReport class. /// /// /// The mode in which the input is being provided. /// /// /// The time when the input occured. /// /// /// The PresentationSource over which the stylus moved. /// /// /// PenContext that generated this event. /// /// /// tablet id. /// /// /// Stylus device id. /// /// /// System Gesture. /// /// /// X location of the system gesture (in tablet device coordindates). /// /// /// Y location of the system gesture (in tablet device coordindates). /// /// /// Button state info data. /// ////// Critical:This handles critical data in the form of PresentationSource /// TreatAsSafe:There are demands on the critical data(PresentationSource) /// [SecurityCritical,SecurityTreatAsSafe] internal RawStylusSystemGestureInputReport( InputMode mode, int timestamp, PresentationSource inputSource, PenContext penContext, int tabletId, int stylusDeviceId, SystemGesture systemGesture, int gestureX, int gestureY, int buttonState) : base( mode, timestamp, inputSource, penContext, RawStylusActions.SystemGesture, tabletId, stylusDeviceId, new int[] {}) { if (systemGesture != SystemGesture.None && systemGesture != SystemGesture.Tap && systemGesture != SystemGesture.RightTap && systemGesture != SystemGesture.Drag && systemGesture != SystemGesture.RightDrag && systemGesture != SystemGesture.HoldEnter && systemGesture != SystemGesture.HoldLeave && systemGesture != SystemGesture.HoverEnter && systemGesture != SystemGesture.HoverLeave && systemGesture != InternalSystemGestureDoubleTap && systemGesture != SystemGesture.Flick) { throw new InvalidEnumArgumentException(SR.Get( SRID.Enum_Invalid, "systemGesture")); } _id = systemGesture; _gestureX = gestureX; _gestureY = gestureY; _buttonState = buttonState; } ///////////////////////////////////////////////////////////////////// ////// Read-only access to the stylus gesture id. /// internal SystemGesture SystemGesture { get { return _id; } } ///////////////////////////////////////////////////////////////////// ////// Read-only access to the X location of the system gesture /// in tablet device coordinates. /// internal int GestureX { get { return _gestureX; } } ///////////////////////////////////////////////////////////////////// ////// Read-only access to the Y location of the system gesture /// in tablet device coordinates. /// internal int GestureY { get { return _gestureY; } } ///////////////////////////////////////////////////////////////////// ////// Read-only access to the button state info (useful for flicks). /// internal int ButtonState { get { return _buttonState; } } ///////////////////////////////////////////////////////////////////// SystemGesture _id; int _gestureX;// gesture location in tablet device coordinates int _gestureY; int _buttonState; } } // 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
- AccessDataSourceView.cs
- ControlPaint.cs
- FacetEnabledSchemaElement.cs
- ResourceDisplayNameAttribute.cs
- CodeMemberMethod.cs
- OdbcReferenceCollection.cs
- InvokeProviderWrapper.cs
- CacheEntry.cs
- WebPartConnectionsDisconnectVerb.cs
- BypassElement.cs
- Vector3D.cs
- SqlProfileProvider.cs
- ProxyHelper.cs
- AnonymousIdentificationSection.cs
- LayoutSettings.cs
- DataContext.cs
- SecondaryIndexDefinition.cs
- ProcessHost.cs
- SimpleHandlerBuildProvider.cs
- ServiceManagerHandle.cs
- Point4D.cs
- SoundPlayerAction.cs
- MdbDataFileEditor.cs
- BulletedListEventArgs.cs
- DescendentsWalkerBase.cs
- ContainerAction.cs
- precedingsibling.cs
- SecureEnvironment.cs
- Function.cs
- printdlgexmarshaler.cs
- MarkupObject.cs
- MethodImplAttribute.cs
- FormatVersion.cs
- ProfileGroupSettings.cs
- RayMeshGeometry3DHitTestResult.cs
- IDQuery.cs
- WSHttpSecurityElement.cs
- DrawingImage.cs
- TextPattern.cs
- EditBehavior.cs
- PopOutPanel.cs
- Vector.cs
- GenericEnumerator.cs
- ChannelToken.cs
- Object.cs
- WebPartDeleteVerb.cs
- ReflectionUtil.cs
- CodeAccessSecurityEngine.cs
- X509CertificateValidator.cs
- AnchoredBlock.cs
- XmlSchemaSimpleContentExtension.cs
- BitmapCodecInfoInternal.cs
- StylusPointPropertyInfoDefaults.cs
- ErrorRuntimeConfig.cs
- Journal.cs
- CoreChannel.cs
- MetadataSource.cs
- MetadataItemEmitter.cs
- ProcessThread.cs
- SchemaLookupTable.cs
- CodeMemberMethod.cs
- CanonicalFormWriter.cs
- Fault.cs
- AutomationTextAttribute.cs
- ProfileServiceManager.cs
- PageHandlerFactory.cs
- DataGridItemCollection.cs
- SecurityTokenParametersEnumerable.cs
- ExpressionBuilderCollection.cs
- MethodBuilder.cs
- DetailsViewRowCollection.cs
- ColorTransformHelper.cs
- Knowncolors.cs
- SqlError.cs
- WebUtil.cs
- RequestContextBase.cs
- VectorAnimation.cs
- NamespaceTable.cs
- InternalCache.cs
- RIPEMD160.cs
- BidOverLoads.cs
- WpfSharedBamlSchemaContext.cs
- LinqDataSourceEditData.cs
- OdbcConnectionPoolProviderInfo.cs
- ObjectFullSpanRewriter.cs
- SizeAnimation.cs
- SystemFonts.cs
- Bits.cs
- AppModelKnownContentFactory.cs
- Comparer.cs
- DllNotFoundException.cs
- util.cs
- x509utils.cs
- WebPartZone.cs
- ColorDialog.cs
- DataBoundControl.cs
- EditorZoneAutoFormat.cs
- SqlCacheDependencyDatabase.cs
- PermissionAttributes.cs
- AssemblyBuilder.cs