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
- MarkupExtensionParser.cs
- DocumentPaginator.cs
- PagerSettings.cs
- ConditionalAttribute.cs
- GatewayDefinition.cs
- TextBlock.cs
- RenamedEventArgs.cs
- XmlBinaryReader.cs
- ConsumerConnectionPoint.cs
- PointHitTestResult.cs
- SourceSwitch.cs
- OleDbReferenceCollection.cs
- NetMsmqBindingCollectionElement.cs
- IOThreadTimer.cs
- WindowsSpinner.cs
- Enlistment.cs
- Terminate.cs
- TextTreeText.cs
- Journal.cs
- TemplateAction.cs
- OdbcConnection.cs
- PropertyValue.cs
- CustomAttributeFormatException.cs
- LambdaReference.cs
- SoapIgnoreAttribute.cs
- QualifiedId.cs
- safelink.cs
- FontCollection.cs
- MimePart.cs
- PropertyEmitter.cs
- XmlCountingReader.cs
- SkewTransform.cs
- UpDownBase.cs
- TableParaClient.cs
- HwndSource.cs
- BinHexDecoder.cs
- MsmqMessage.cs
- UIElementParaClient.cs
- CodePageUtils.cs
- CompilerErrorCollection.cs
- ImpersonateTokenRef.cs
- ContractNamespaceAttribute.cs
- entitydatasourceentitysetnameconverter.cs
- Token.cs
- GlobalizationAssembly.cs
- HandleExceptionArgs.cs
- ViewCellSlot.cs
- XsltArgumentList.cs
- Win32SafeHandles.cs
- ObservableDictionary.cs
- Module.cs
- GorillaCodec.cs
- WebMessageFormatHelper.cs
- DBCommand.cs
- Animatable.cs
- SafeRightsManagementQueryHandle.cs
- PublishLicense.cs
- TaskFormBase.cs
- InstallerTypeAttribute.cs
- AsyncResult.cs
- CollectionViewGroupRoot.cs
- AuthenticatedStream.cs
- PassportAuthenticationEventArgs.cs
- IriParsingElement.cs
- XmlReader.cs
- NavigationService.cs
- StaticResourceExtension.cs
- EventManager.cs
- ImageBrush.cs
- FigureHelper.cs
- EdmValidator.cs
- SurrogateSelector.cs
- TransformerConfigurationWizardBase.cs
- xdrvalidator.cs
- HtmlInputRadioButton.cs
- KeyValueConfigurationCollection.cs
- _SslState.cs
- Rectangle.cs
- DataBoundLiteralControl.cs
- SqlDataSourceStatusEventArgs.cs
- _SSPIWrapper.cs
- ByteStream.cs
- ResumeStoryboard.cs
- EntityProviderServices.cs
- LoadGrammarCompletedEventArgs.cs
- MaterialGroup.cs
- SectionRecord.cs
- OutputCacheProfile.cs
- GeometryCombineModeValidation.cs
- ScriptingWebServicesSectionGroup.cs
- IndexedWhereQueryOperator.cs
- CachedPathData.cs
- SortQueryOperator.cs
- ProcessModelSection.cs
- WizardSideBarListControlItem.cs
- ExpressionDumper.cs
- IImplicitResourceProvider.cs
- ButtonField.cs
- DBConnection.cs
- ContextMarshalException.cs