Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / Tablet.cs / 1305600 / Tablet.cs
using System;
using System.Windows;
using System.Windows.Threading;
using System.Security;
namespace System.Windows.Input
{
/////////////////////////////////////////////////////////////////////////
///
/// Class containing only static methods to access tablet info.
///
public static class Tablet
{
/////////////////////////////////////////////////////////////////////
///
/// Read-only access to the Tablet device associated with the current event
/// for the current input manager.
///
public static TabletDevice CurrentTabletDevice
{
get
{
StylusDevice stylus = Stylus.CurrentStylusDevice;
if (stylus == null)
return null;
return stylus.TabletDevice;
}
}
/////////////////////////////////////////////////////////////////////
///
/// Returns the collection of Tablet Devices defined on this tablet.
///
///
/// Critical: calls into SecurityCritical code (Stylus.TabletDevices)
/// PublicOK: - asserts for unmanaged code access (via SUC) to create TabletDevices.
/// - returns our collection of TabletDevices which we want public.
///
public static TabletDeviceCollection TabletDevices
{
[SecurityCritical]
get
{
return StylusLogic.CurrentStylusLogic.TabletDevices;
}
}
}
}
// 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
- PropertiesTab.cs
- XmlCharType.cs
- DependencyPropertyDescriptor.cs
- SelectionPatternIdentifiers.cs
- ProcessThread.cs
- XmlTextReader.cs
- UserControl.cs
- UserThread.cs
- Activity.cs
- HtmlElementCollection.cs
- CollectionChangedEventManager.cs
- BitmapVisualManager.cs
- AttributeProviderAttribute.cs
- TrackingMemoryStream.cs
- MsmqIntegrationBindingElement.cs
- SqlXmlStorage.cs
- XmlMtomWriter.cs
- InstanceLockedException.cs
- SqlUdtInfo.cs
- InvocationExpression.cs
- DataAccessor.cs
- ExpandedWrapper.cs
- VerificationException.cs
- SqlNodeAnnotation.cs
- SHA256Managed.cs
- ClientScriptManager.cs
- AdRotator.cs
- BamlCollectionHolder.cs
- NullableFloatMinMaxAggregationOperator.cs
- WebPartCloseVerb.cs
- AddInServer.cs
- TextView.cs
- SmiConnection.cs
- PersonalizationAdministration.cs
- MasterPage.cs
- XmlArrayItemAttribute.cs
- EncryptedXml.cs
- SqlDataSourceEnumerator.cs
- EdmMember.cs
- documentsequencetextview.cs
- SimpleMailWebEventProvider.cs
- CalendarDateRangeChangingEventArgs.cs
- CLRBindingWorker.cs
- ExpressionDumper.cs
- DataTableClearEvent.cs
- categoryentry.cs
- Int16Storage.cs
- ArrangedElement.cs
- TextRange.cs
- HexParser.cs
- DataSpaceManager.cs
- OutputCacheProfileCollection.cs
- WorkflowIdleElement.cs
- ScrollItemProviderWrapper.cs
- GeometryConverter.cs
- CalendarDesigner.cs
- PartialCachingControl.cs
- TargetException.cs
- SByteStorage.cs
- FileStream.cs
- dtdvalidator.cs
- Animatable.cs
- TypeToArgumentTypeConverter.cs
- SystemIPGlobalProperties.cs
- Int16KeyFrameCollection.cs
- CharKeyFrameCollection.cs
- SafeNativeMemoryHandle.cs
- EmptyCollection.cs
- GenericParameterDataContract.cs
- NamespaceTable.cs
- WorkflowRuntimeEndpoint.cs
- TemplateAction.cs
- __ComObject.cs
- SegmentInfo.cs
- UseLicense.cs
- SharedPerformanceCounter.cs
- AtomicFile.cs
- ConfigPathUtility.cs
- PreloadHost.cs
- NotificationContext.cs
- TextSimpleMarkerProperties.cs
- AnnotationService.cs
- StreamGeometry.cs
- FormatException.cs
- SoapSchemaExporter.cs
- ProfilePropertySettingsCollection.cs
- tibetanshape.cs
- ImageAutomationPeer.cs
- DirectoryObjectSecurity.cs
- HostedTcpTransportManager.cs
- SiteMembershipCondition.cs
- ClientApiGenerator.cs
- TemplateBindingExpressionConverter.cs
- DeviceContext.cs
- SoapWriter.cs
- CodeSubDirectory.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- Decorator.cs
- KeysConverter.cs
- XmlProcessingInstruction.cs