Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Input / Stylus / Tablet.cs / 1 / 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.
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
- StorageComplexTypeMapping.cs
- CellParagraph.cs
- GenerateHelper.cs
- BufferedGraphicsManager.cs
- DesignerRegionCollection.cs
- SchemaImporterExtension.cs
- StyleReferenceConverter.cs
- DataSetMappper.cs
- SafeFileMappingHandle.cs
- DecimalMinMaxAggregationOperator.cs
- CodeNamespace.cs
- SpellerError.cs
- HttpModulesSection.cs
- WindowsRebar.cs
- SortKey.cs
- RegisteredHiddenField.cs
- Base64Decoder.cs
- ReturnEventArgs.cs
- CopyAttributesAction.cs
- SecurityElement.cs
- ToolStripDropDownClosedEventArgs.cs
- UserControlAutomationPeer.cs
- DataGridTextBox.cs
- ThreadInterruptedException.cs
- FormatStringEditor.cs
- MenuStrip.cs
- FunctionNode.cs
- CollectionBase.cs
- Parser.cs
- EntityChangedParams.cs
- TypeHelpers.cs
- GradientStop.cs
- BasicHttpSecurity.cs
- FeatureAttribute.cs
- TemplateKey.cs
- unsafenativemethodsother.cs
- TemplateBindingExpressionConverter.cs
- XPathConvert.cs
- EventToken.cs
- DispatcherProcessingDisabled.cs
- ButtonBase.cs
- LinqDataSourceUpdateEventArgs.cs
- FontResourceCache.cs
- CommentEmitter.cs
- Geometry.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Decoder.cs
- SuppressIldasmAttribute.cs
- ParserHooks.cs
- Point3DValueSerializer.cs
- AutomationProperty.cs
- Point3D.cs
- TabItemAutomationPeer.cs
- PenContexts.cs
- NamespaceDecl.cs
- NetSectionGroup.cs
- CodeCatchClause.cs
- InstanceCollisionException.cs
- RelationshipWrapper.cs
- NativeMethods.cs
- ChannelDispatcherCollection.cs
- RawStylusSystemGestureInputReport.cs
- ReturnValue.cs
- SettingsBindableAttribute.cs
- ToolStripArrowRenderEventArgs.cs
- SamlAssertionKeyIdentifierClause.cs
- PointLight.cs
- SiteMembershipCondition.cs
- BamlLocalizableResource.cs
- FixedSOMPageElement.cs
- Pkcs7Recipient.cs
- AdCreatedEventArgs.cs
- PanelDesigner.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataTableReader.cs
- EdmSchemaError.cs
- HttpResponseWrapper.cs
- Object.cs
- NamespaceDisplayAutomationPeer.cs
- HtmlMeta.cs
- WindowsUpDown.cs
- xamlnodes.cs
- RightNameExpirationInfoPair.cs
- ProtectedConfigurationSection.cs
- WindowsGraphicsWrapper.cs
- ListMarkerSourceInfo.cs
- AlgoModule.cs
- GeometryConverter.cs
- SourceItem.cs
- ValidationEventArgs.cs
- XmlExtensionFunction.cs
- EnumerationRangeValidationUtil.cs
- IdleTimeoutMonitor.cs
- CodeDOMProvider.cs
- WebResourceAttribute.cs
- FederatedMessageSecurityOverHttpElement.cs
- FormatterServicesNoSerializableCheck.cs
- EncoderFallback.cs
- TiffBitmapEncoder.cs
- MasterPageParser.cs