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
- SqlCachedBuffer.cs
- PageBuildProvider.cs
- Point3DValueSerializer.cs
- List.cs
- NodeFunctions.cs
- OperatorExpressions.cs
- ObjectDataSourceView.cs
- BlockCollection.cs
- ColorConverter.cs
- PrintPreviewDialog.cs
- BaseServiceProvider.cs
- MarkupProperty.cs
- NamespaceCollection.cs
- OleDbInfoMessageEvent.cs
- PropertyInformationCollection.cs
- httpserverutility.cs
- PathBox.cs
- SerializationInfo.cs
- HtmlButton.cs
- Pool.cs
- FtpWebResponse.cs
- LazyLoadBehavior.cs
- Activator.cs
- BinHexEncoding.cs
- ResourceDescriptionAttribute.cs
- AppDomainAttributes.cs
- SQLDecimalStorage.cs
- NumberFunctions.cs
- WpfWebRequestHelper.cs
- HttpResponseBase.cs
- Menu.cs
- ValidationEventArgs.cs
- PageCatalogPart.cs
- RelatedEnd.cs
- RemoteHelper.cs
- SelfIssuedAuthProofToken.cs
- ModelUIElement3D.cs
- KeyConstraint.cs
- SelectionRangeConverter.cs
- HostDesigntimeLicenseContext.cs
- validationstate.cs
- RemoteWebConfigurationHostStream.cs
- LongSumAggregationOperator.cs
- SingleResultAttribute.cs
- LinkedResource.cs
- Typography.cs
- NonVisualControlAttribute.cs
- SqlDependency.cs
- ThreadSafeList.cs
- SourceElementsCollection.cs
- Camera.cs
- IsolationInterop.cs
- DataGridViewRowEventArgs.cs
- ExtensibleClassFactory.cs
- OneOfScalarConst.cs
- Polyline.cs
- Math.cs
- DataControlImageButton.cs
- EndpointConfigContainer.cs
- LinkedList.cs
- CorruptStoreException.cs
- SizeLimitedCache.cs
- WindowVisualStateTracker.cs
- FormatterConverter.cs
- ListViewItemSelectionChangedEvent.cs
- MetafileHeaderWmf.cs
- StrokeNodeOperations2.cs
- OdbcDataReader.cs
- Model3DGroup.cs
- PaperSource.cs
- GrammarBuilder.cs
- InfoCardPolicy.cs
- UnsafeMethods.cs
- DataRecordInternal.cs
- CharacterBufferReference.cs
- ToolStripItemRenderEventArgs.cs
- TransactionChannelFactory.cs
- TableAdapterManagerHelper.cs
- FontUnitConverter.cs
- Pool.cs
- ControlCollection.cs
- SqlServices.cs
- TCEAdapterGenerator.cs
- DependencyObjectType.cs
- URLEditor.cs
- MenuBindingsEditor.cs
- _HeaderInfoTable.cs
- ActivationServices.cs
- DefaultValueAttribute.cs
- fixedPageContentExtractor.cs
- HtmlMeta.cs
- PartitionResolver.cs
- rsa.cs
- HostnameComparisonMode.cs
- DataViewListener.cs
- InputGestureCollection.cs
- XmlMapping.cs
- EmulateRecognizeCompletedEventArgs.cs
- DataBindingHandlerAttribute.cs
- GenericIdentity.cs