Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SaveFileDialog.cs
- TableLayoutColumnStyleCollection.cs
- ChunkedMemoryStream.cs
- TextElementAutomationPeer.cs
- CacheEntry.cs
- ExtensionFile.cs
- PropertyManager.cs
- Line.cs
- MimeImporter.cs
- DataTableReaderListener.cs
- PropertyIDSet.cs
- Cursor.cs
- UriSchemeKeyedCollection.cs
- FigureParagraph.cs
- PipelineComponent.cs
- CompilationLock.cs
- CreatingCookieEventArgs.cs
- UpdateExpressionVisitor.cs
- RegistryConfigurationProvider.cs
- AnnotationComponentChooser.cs
- ProxySimple.cs
- XPathSelectionIterator.cs
- NodeFunctions.cs
- PathNode.cs
- DetailsViewModeEventArgs.cs
- Single.cs
- EncryptedData.cs
- SoapAttributeAttribute.cs
- SignatureToken.cs
- ISessionStateStore.cs
- StreamGeometryContext.cs
- MobileUserControlDesigner.cs
- ReliableDuplexSessionChannel.cs
- MembershipSection.cs
- SystemWebSectionGroup.cs
- DocumentsTrace.cs
- RandomNumberGenerator.cs
- UInt16Converter.cs
- PageWrapper.cs
- UnsafeNativeMethods.cs
- FrugalList.cs
- UdpChannelFactory.cs
- InvalidateEvent.cs
- TabItemWrapperAutomationPeer.cs
- KeyGestureValueSerializer.cs
- ResourceProviderFactory.cs
- Icon.cs
- WebPartDisplayModeEventArgs.cs
- AssemblyUtil.cs
- XappLauncher.cs
- OperationCanceledException.cs
- HtmlMeta.cs
- IdentifierCollection.cs
- ToolStripEditorManager.cs
- ChildTable.cs
- HTMLTextWriter.cs
- FormsAuthenticationEventArgs.cs
- Util.cs
- cryptoapiTransform.cs
- SystemWebSectionGroup.cs
- XAMLParseException.cs
- GridViewRowEventArgs.cs
- DataTransferEventArgs.cs
- WebControlsSection.cs
- SqlConnectionStringBuilder.cs
- CharEntityEncoderFallback.cs
- ObjectListCommandsPage.cs
- SchemaTypeEmitter.cs
- NTAccount.cs
- UserControl.cs
- OleAutBinder.cs
- WaitHandleCannotBeOpenedException.cs
- serverconfig.cs
- PersistChildrenAttribute.cs
- MapPathBasedVirtualPathProvider.cs
- AutomationPatternInfo.cs
- FastEncoderStatics.cs
- XmlWriterSettings.cs
- Compiler.cs
- DateTimeOffsetAdapter.cs
- HitTestFilterBehavior.cs
- Speller.cs
- RawStylusInputCustomData.cs
- ErrorHandlingAcceptor.cs
- DataGridViewHitTestInfo.cs
- DesignerSerializationOptionsAttribute.cs
- BlurBitmapEffect.cs
- SurrogateChar.cs
- ContentOperations.cs
- TypeSystem.cs
- Rotation3DAnimation.cs
- InputBuffer.cs
- NotImplementedException.cs
- XmlUtil.cs
- NotConverter.cs
- Delegate.cs
- RequestCache.cs
- EntityDataSourceContainerNameItem.cs
- Region.cs
- SimpleWebHandlerParser.cs