Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / Stylus / RawStylusActions.cs / 1 / 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
- DashStyle.cs
- IItemContainerGenerator.cs
- InstanceOwnerException.cs
- SerTrace.cs
- CommittableTransaction.cs
- Attribute.cs
- HttpResponseHeader.cs
- RNGCryptoServiceProvider.cs
- MediaTimeline.cs
- ErrorFormatter.cs
- AsyncResult.cs
- HashAlgorithm.cs
- XmlMembersMapping.cs
- AutomationPatternInfo.cs
- Vector3DCollectionValueSerializer.cs
- EditableTreeList.cs
- XPathNodeList.cs
- PrePrepareMethodAttribute.cs
- WindowsListViewSubItem.cs
- FunctionNode.cs
- OutputChannel.cs
- StorageFunctionMapping.cs
- ProxyWebPartManager.cs
- ConsoleTraceListener.cs
- XmlDownloadManager.cs
- UInt64Converter.cs
- HtmlInputSubmit.cs
- PageAsyncTaskManager.cs
- SQlBooleanStorage.cs
- Convert.cs
- SamlDoNotCacheCondition.cs
- DoubleLinkList.cs
- DbCommandDefinition.cs
- xml.cs
- DataGridViewTextBoxEditingControl.cs
- Overlapped.cs
- InvalidEnumArgumentException.cs
- QueryLifecycle.cs
- AppSettingsExpressionEditor.cs
- RootProjectionNode.cs
- NumberFormatInfo.cs
- BehaviorService.cs
- XmlChildNodes.cs
- WebHttpDispatchOperationSelectorData.cs
- Label.cs
- CombinedTcpChannel.cs
- EventDescriptor.cs
- SizeChangedInfo.cs
- DynamicQueryableWrapper.cs
- GacUtil.cs
- Bitmap.cs
- IPCCacheManager.cs
- DbDataAdapter.cs
- SqlClientPermission.cs
- CheckBoxPopupAdapter.cs
- NegotiationTokenAuthenticatorStateCache.cs
- HtmlControlPersistable.cs
- ReadOnlyMetadataCollection.cs
- DBSqlParser.cs
- DelegateTypeInfo.cs
- EdmRelationshipRoleAttribute.cs
- PrintController.cs
- InvalidDataException.cs
- QilFactory.cs
- AppSettingsExpressionBuilder.cs
- ProcessManager.cs
- SqlNodeAnnotations.cs
- AdapterDictionary.cs
- StrokeNode.cs
- _TLSstream.cs
- Oci.cs
- ValueSerializer.cs
- InvokePatternIdentifiers.cs
- StructuredTypeEmitter.cs
- ConfigurationPermission.cs
- CAGDesigner.cs
- MultiView.cs
- SqlSelectStatement.cs
- ColumnMap.cs
- RowVisual.cs
- TablePattern.cs
- LiteralControl.cs
- TableItemPatternIdentifiers.cs
- FontStretch.cs
- WmlCalendarAdapter.cs
- Vector3DCollectionValueSerializer.cs
- AssemblyGen.cs
- ChildrenQuery.cs
- ReflectionPermission.cs
- SqlFunctions.cs
- XomlDesignerLoader.cs
- UnicodeEncoding.cs
- Clipboard.cs
- CopyCodeAction.cs
- ConfigXmlDocument.cs
- StrongNameKeyPair.cs
- MembershipValidatePasswordEventArgs.cs
- UncommonField.cs
- EventLogEntry.cs
- ConfigurationManagerInternalFactory.cs