Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / RawStylusActions.cs / 1305600 / RawStylusActions.cs
using System; namespace System.Windows.Input { ////// The raw actions being reported from the stylus. /// ////// Note that multiple actions can be reported at once. /// [Flags] internal enum RawStylusActions { ////// NoAction /// None = 0x000, ////// The stylus became active in the application. The application /// may need to refresh its stylus state. /// Activate = 0x001, ////// The stylus became inactive in the application. The application /// may need to clear its stylus state. /// Deactivate = 0x002, ////// The stylus just came in contact with the digitizer /// Down = 0x004, ////// The stylus just lost contact with the digitizer /// Up = 0x008, ////// The stylus is sending more data while in contact with the digitizer. /// Move = 0x010, ////// The stylus is sending more data while hovering in-air over the digitizer. /// InAirMove = 0x020, ////// The stylus is now in range of the digitizer. /// InRange = 0x040, ////// The stylus is now out of range of the digitizer. /// OutOfRange = 0x080, ////// The stylus is now out of range of the digitizer. /// SystemGesture = 0x100, } ////// Internal helper for validating RawStylusActions /// internal static class RawStylusActionsHelper { private static readonly RawStylusActions MaxActions = RawStylusActions.None | RawStylusActions.Activate | RawStylusActions.Deactivate | RawStylusActions.Down | RawStylusActions.Up | RawStylusActions.Move | RawStylusActions.InAirMove | RawStylusActions.InRange | RawStylusActions.OutOfRange | RawStylusActions.SystemGesture; internal static bool IsValid(RawStylusActions action) { if (action < RawStylusActions.None || action > MaxActions) { return false; } return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { ////// The raw actions being reported from the stylus. /// ////// Note that multiple actions can be reported at once. /// [Flags] internal enum RawStylusActions { ////// NoAction /// None = 0x000, ////// The stylus became active in the application. The application /// may need to refresh its stylus state. /// Activate = 0x001, ////// The stylus became inactive in the application. The application /// may need to clear its stylus state. /// Deactivate = 0x002, ////// The stylus just came in contact with the digitizer /// Down = 0x004, ////// The stylus just lost contact with the digitizer /// Up = 0x008, ////// The stylus is sending more data while in contact with the digitizer. /// Move = 0x010, ////// The stylus is sending more data while hovering in-air over the digitizer. /// InAirMove = 0x020, ////// The stylus is now in range of the digitizer. /// InRange = 0x040, ////// The stylus is now out of range of the digitizer. /// OutOfRange = 0x080, ////// The stylus is now out of range of the digitizer. /// SystemGesture = 0x100, } ////// Internal helper for validating RawStylusActions /// internal static class RawStylusActionsHelper { private static readonly RawStylusActions MaxActions = RawStylusActions.None | RawStylusActions.Activate | RawStylusActions.Deactivate | RawStylusActions.Down | RawStylusActions.Up | RawStylusActions.Move | RawStylusActions.InAirMove | RawStylusActions.InRange | RawStylusActions.OutOfRange | RawStylusActions.SystemGesture; internal static bool IsValid(RawStylusActions action) { if (action < RawStylusActions.None || action > MaxActions) { return false; } return true; } } } // 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
- CodeRemoveEventStatement.cs
- CompositeActivityCodeGenerator.cs
- HtmlEncodedRawTextWriter.cs
- ControlPersister.cs
- Internal.cs
- ResourceExpressionBuilder.cs
- InvalidEnumArgumentException.cs
- EmptyStringExpandableObjectConverter.cs
- RoutedEventHandlerInfo.cs
- BinaryFormatter.cs
- XmlSecureResolver.cs
- TraceUtility.cs
- ConsumerConnectionPoint.cs
- ArraySubsetEnumerator.cs
- ActivityDesignerLayoutSerializers.cs
- StringInfo.cs
- MultipartContentParser.cs
- ImageSourceValueSerializer.cs
- BooleanConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- TextTreeRootTextBlock.cs
- DesignerRegionMouseEventArgs.cs
- HandlerFactoryCache.cs
- IInstanceTable.cs
- StandardOleMarshalObject.cs
- DataGrid.cs
- DataGridColumnCollectionEditor.cs
- ObjectDataSourceSelectingEventArgs.cs
- MessageQueuePermission.cs
- Oid.cs
- ExceptionRoutedEventArgs.cs
- TreeNodeStyle.cs
- DoubleLink.cs
- Overlapped.cs
- ReflectionServiceProvider.cs
- CodeTypeDeclarationCollection.cs
- CodeDomSerializationProvider.cs
- UserPreferenceChangedEventArgs.cs
- FillErrorEventArgs.cs
- SystemUnicastIPAddressInformation.cs
- PolygonHotSpot.cs
- Baml2006KeyRecord.cs
- TableDesigner.cs
- XmlCountingReader.cs
- WindowsToolbar.cs
- InfoCardClaim.cs
- WebHeaderCollection.cs
- ITextView.cs
- StringAnimationBase.cs
- PersonalizablePropertyEntry.cs
- BaseTemplateParser.cs
- ModelItem.cs
- DefaultTraceListener.cs
- MsmqBindingElementBase.cs
- EmptyReadOnlyDictionaryInternal.cs
- Point3DAnimationUsingKeyFrames.cs
- AnimationTimeline.cs
- SystemColors.cs
- CompleteWizardStep.cs
- PublisherIdentityPermission.cs
- SingleSelectRootGridEntry.cs
- RedirectionProxy.cs
- CanonicalizationDriver.cs
- RequestQueue.cs
- BulletChrome.cs
- DeploymentSection.cs
- VisualStateChangedEventArgs.cs
- ParserContext.cs
- SymbolMethod.cs
- VectorConverter.cs
- DataColumnSelectionConverter.cs
- FlowSwitchLink.cs
- ProvidePropertyAttribute.cs
- RuntimeConfigLKG.cs
- GiveFeedbackEvent.cs
- CounterSampleCalculator.cs
- DataRecordInfo.cs
- MobileControlDesigner.cs
- Match.cs
- ColorConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ControlIdConverter.cs
- Point3D.cs
- PathGeometry.cs
- PropertyEmitterBase.cs
- EditorAttribute.cs
- MsmqIntegrationProcessProtocolHandler.cs
- CodeSubDirectoriesCollection.cs
- CfgParser.cs
- TagPrefixCollection.cs
- GeometryCombineModeValidation.cs
- TextSerializer.cs
- InternalsVisibleToAttribute.cs
- PlatformCulture.cs
- Icon.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ObjectDataSourceEventArgs.cs
- EmissiveMaterial.cs
- SystemColors.cs
- CustomPopupPlacement.cs